Home
last modified time | relevance | path

Searched refs:igt_assert_eq (Results 1 – 25 of 160) sorted by relevance

1234567

/external/igt-gpu-tools/tests/i915/
Dgem_ctx_sseu.c148 igt_assert_eq(__gem_context_get_param(fd, &arg), -EINVAL); in test_engines()
151 igt_assert_eq(__gem_context_get_param(fd, &arg), -EINVAL); in test_engines()
154 igt_assert_eq(__gem_context_get_param(fd, &arg), -EINVAL); in test_engines()
168 igt_assert_eq(ret, 0); in test_engines()
171 igt_assert_eq(ret, -EINVAL); in test_engines()
192 igt_assert_eq(__gem_context_set_param(fd, &arg), -EINVAL); in test_engines()
195 igt_assert_eq(__gem_context_set_param(fd, &arg), -EINVAL); in test_engines()
198 igt_assert_eq(__gem_context_set_param(fd, &arg), -EINVAL); in test_engines()
214 igt_assert_eq(ret, -EINVAL); in test_engines()
246 igt_assert_eq(__gem_context_get_param(fd, &arg), -EINVAL); in test_invalid_args()
[all …]
Di915_query.c55 igt_assert_eq(__i915_query_items(fd, items, n_items), 0); \
59 igt_assert_eq(__i915_query_items(fd, items, n_items), -err); \
75 igt_assert_eq(__i915_query(fd, NULL), -EFAULT); in test_query_garbage()
76 igt_assert_eq(__i915_query(fd, (void *) -1), -EFAULT); in test_query_garbage()
84 igt_assert_eq(__i915_query(fd, &query), -EINVAL); in test_query_garbage()
109 igt_assert_eq(items[0].length, -EINVAL); in test_query_garbage_items()
120 igt_assert_eq(items[1].length, -EINVAL); in test_query_garbage_items()
131 igt_assert_eq(items[0].length, -EINVAL); in test_query_garbage_items()
142 igt_assert_eq(items[0].length, -EFAULT); in test_query_garbage_items()
146 igt_assert_eq(items[0].length, -EFAULT); in test_query_garbage_items()
[all …]
Dgem_ctx_engines.c68 igt_assert_eq(__gem_context_set_param(i915, &param), 0); in invalid_engines()
71 igt_assert_eq(__gem_context_set_param(i915, &param), -EINVAL); in invalid_engines()
74 igt_assert_eq(__gem_context_set_param(i915, &param), -EINVAL); in invalid_engines()
77 igt_assert_eq(__gem_context_set_param(i915, &param), -EINVAL); in invalid_engines()
80 igt_assert_eq(__gem_context_set_param(i915, &param), 0); in invalid_engines()
94 igt_assert_eq(__gem_context_set_param(i915, &param), -ENOENT); in invalid_engines()
97 igt_assert_eq(__gem_context_set_param(i915, &param), -ENOENT); in invalid_engines()
105 igt_assert_eq(__gem_context_set_param(i915, &param), -EFAULT); in invalid_engines()
108 igt_assert_eq(__gem_context_set_param(i915, &param), 0); in invalid_engines()
111 igt_assert_eq(__gem_context_set_param(i915, &param), -EFAULT); in invalid_engines()
[all …]
Dgem_reloc_overflow.c125 igt_assert_eq(__gem_execbuf(fd, &execbuf), -EINVAL); in source_offset_tests()
147 igt_assert_eq(__gem_execbuf(fd, &execbuf), -EINVAL); in source_offset_tests()
157 igt_assert_eq(__gem_execbuf(fd, &execbuf), -EINVAL); in source_offset_tests()
167 igt_assert_eq(__gem_execbuf(fd, &execbuf), -EINVAL); in source_offset_tests()
187 igt_assert_eq(__gem_execbuf(fd, &execbuf), -EFAULT); in reloc_tests()
196 igt_assert_eq(__gem_execbuf(fd, &execbuf), -EFAULT); in reloc_tests()
200 igt_assert_eq(__gem_execbuf(fd, &execbuf), -EFAULT); in reloc_tests()
217 igt_assert_eq(__gem_execbuf(fd, &execbuf), -EINVAL); in reloc_tests()
223 igt_assert_eq(__gem_execbuf(fd, &execbuf), -EINVAL); in reloc_tests()
229 igt_assert_eq(__gem_execbuf(fd, &execbuf), -EINVAL); in reloc_tests()
[all …]
Dgem_vm_create.c88 igt_assert_eq(vm_create_ioctl(i915, &ctl), 0); in invalid_create()
92 igt_assert_eq(vm_create_ioctl(i915, &ctl), 0); in invalid_create()
97 igt_assert_eq(vm_create_ioctl(i915, &ctl), -EINVAL); in invalid_create()
101 igt_assert_eq(vm_create_ioctl(i915, &ctl), -EFAULT); in invalid_create()
103 igt_assert_eq(vm_create_ioctl(i915, &ctl), -EINVAL); in invalid_create()
111 igt_assert_eq(vm_destroy_ioctl(i915, &ctl), -ENOENT); in invalid_destroy()
113 igt_assert_eq(vm_create_ioctl(i915, &ctl), 0); in invalid_destroy()
114 igt_assert_eq(vm_destroy_ioctl(i915, &ctl), 0); in invalid_destroy()
115 igt_assert_eq(vm_destroy_ioctl(i915, &ctl), -ENOENT); in invalid_destroy()
117 igt_assert_eq(vm_create_ioctl(i915, &ctl), 0); in invalid_destroy()
[all …]
Dgem_flink_basic.c54 igt_assert_eq(ret, 0); in test_flink()
58 igt_assert_eq(ret, 0); in test_flink()
62 igt_assert_eq(ret, 0); in test_flink()
79 igt_assert_eq(ret, 0); in test_double_flink()
83 igt_assert_eq(ret, 0); in test_double_flink()
87 igt_assert_eq(ret, 0); in test_double_flink()
135 igt_assert_eq(ret, 0); in test_flink_lifetime()
139 igt_assert_eq(ret, 0); in test_flink_lifetime()
144 igt_assert_eq(ret, 0); in test_flink_lifetime()
153 igt_assert_eq(ret, 0); in test_flink_lifetime()
Dgem_ctx_clone.c66 igt_assert_eq(ctx_create_ioctl(i915, &create), 0); in invalid_clone()
70 igt_assert_eq(ctx_create_ioctl(i915, &create), -EINVAL); in invalid_clone()
74 igt_assert_eq(ctx_create_ioctl(i915, &create), -EFAULT); in invalid_clone()
76 igt_assert_eq(ctx_create_ioctl(i915, &create), -E2BIG); in invalid_clone()
80 igt_assert_eq(ctx_create_ioctl(i915, &create), -ENOENT); in invalid_clone()
105 igt_assert_eq(ctx_create_ioctl(i915, &create), 0); in clone_flags()
116 igt_assert_eq((int)set.param.value, expected); in clone_flags()
124 igt_assert_eq(ctx_create_ioctl(i915, &create), 0); in clone_flags()
131 igt_assert_eq((int)set.param.value, expected); in clone_flags()
139 igt_assert_eq(ctx_create_ioctl(i915, &create), 0); in clone_flags()
[all …]
Dgem_wait.c54 igt_assert_eq(__gem_wait(fd, &wait), -EINVAL); in invalid_flags()
64 igt_assert_eq(__gem_wait(fd, &wait), -ENOENT); in invalid_buf()
84 igt_assert_eq(__gem_wait(fd, &wait), -ETIME); in basic()
99 igt_assert_eq(__gem_wait(fd, &wait), -ETIME); in basic()
105 igt_assert_eq(__gem_wait(fd, &wait), -ETIME); in basic()
112 igt_assert_eq(__gem_wait(fd, &wait), -ETIME); in basic()
117 igt_assert_eq(__gem_wait(fd, &wait), 0); in basic()
121 igt_assert_eq(__gem_wait(fd, &wait), 0); in basic()
126 igt_assert_eq(__gem_wait(fd, &wait), 0); in basic()
/external/igt-gpu-tools/tests/
Dkms_prop_blob.c165 igt_assert_eq(validate_prop(fd, prop_id), 0); in test_lifetime()
166 igt_assert_eq(validate_prop(fd2, prop_id), 0); in test_lifetime()
169 igt_assert_eq(destroy_prop(fd2, prop_id), EPERM); in test_lifetime()
173 igt_assert_eq(validate_prop(fd2, prop_id2), 0); in test_lifetime()
174 igt_assert_eq(destroy_prop(fd2, prop_id2), 0); in test_lifetime()
175 igt_assert_eq(validate_prop(fd2, prop_id2), ENOENT); in test_lifetime()
176 igt_assert_eq(validate_prop(fd, prop_id2), ENOENT); in test_lifetime()
180 igt_assert_eq(validate_prop(fd, prop_id2), 0); in test_lifetime()
181 igt_assert_eq(close(fd2), 0); in test_lifetime()
182 igt_assert_eq(validate_prop(fd, prop_id2), ENOENT); in test_lifetime()
[all …]
Dkms_lease.c298 igt_assert_eq(make_lease(data, &lease), 0); in simple_lease()
303 igt_assert_eq(0, prepare_crtc(&lease, data->connector_id, data->crtc_id)); in simple_lease()
346 igt_assert_eq(0, prepare_crtc(&data->master, data->connector_id, data->crtc_id)); in page_flip_implicit_plane()
366 igt_assert_eq(drmModePageFlip(mcl.fd, data->crtc_id, in page_flip_implicit_plane()
411 igt_assert_eq(0, prepare_crtc(&data->master, data->connector_id, data->crtc_id)); in setcrtc_implicit_plane()
423 igt_assert_eq(drmModeSetCrtc(mcl.fd, data->crtc_id, -1, in setcrtc_implicit_plane()
452 igt_assert_eq(0, prepare_crtc(&data->master, data->connector_id, data->crtc_id)); in cursor_implicit_plane()
463 igt_assert_eq(drmModeSetCursor(mcl.fd, data->crtc_id, 0, 0, 0), in cursor_implicit_plane()
569 igt_assert_eq(make_lease(data, &lease), 0); in lessee_list()
574 igt_assert_eq(list_lessees(lease.fd, &mll), 0); in lessee_list()
[all …]
Dsyncobj_wait.c55 igt_assert_eq(nanosleep(&t, NULL), 0); in sleep_nsec()
145 igt_assert_eq(__syncobj_wait(fd, &wait), -EINVAL); in test_wait_bad_flags()
152 igt_assert_eq(__syncobj_wait(fd, &wait), -EINVAL); in test_wait_zero_handles()
163 igt_assert_eq(__syncobj_wait(fd, &wait), -ENOENT); in test_wait_illegal_handle()
200 igt_assert_eq(syncobj_wait_err(fd, &syncobjs[0], 1, 0, 0), 0); in test_reset_one_illegal_handle()
201 igt_assert_eq(syncobj_wait_err(fd, &syncobjs[2], 1, 0, 0), 0); in test_reset_one_illegal_handle()
209 igt_assert_eq(syncobj_wait_err(fd, &syncobjs[0], 1, 0, 0), 0); in test_reset_one_illegal_handle()
210 igt_assert_eq(syncobj_wait_err(fd, &syncobjs[2], 1, 0, 0), 0); in test_reset_one_illegal_handle()
264 igt_assert_eq(syncobj_wait_err(fd, &syncobjs[0], 1, 0, 0), -EINVAL); in test_signal_one_illegal_handle()
265 igt_assert_eq(syncobj_wait_err(fd, &syncobjs[2], 1, 0, 0), -EINVAL); in test_signal_one_illegal_handle()
[all …]
Dkms_vblank.c141 igt_assert_eq(wait_vblank(fd, &vbl), 0); in run_test()
157 igt_assert_eq(read(fd, &buf, sizeof(buf)), sizeof(buf)); in run_test()
198 igt_assert_eq(wait_vblank(fd, &vbl), 0); in crtc_id_subtest()
200 igt_assert_eq(read(fd, &buf, sizeof(buf)), sizeof(buf)); in crtc_id_subtest()
201 igt_assert_eq(buf.crtc_id, expected_crtc_id); in crtc_id_subtest()
207 igt_assert_eq(read(fd, &buf, sizeof(buf)), sizeof(buf)); in crtc_id_subtest()
208 igt_assert_eq(buf.crtc_id, expected_crtc_id); in crtc_id_subtest()
216 igt_assert_eq(read(fd, &buf, sizeof(buf)), sizeof(buf)); in crtc_id_subtest()
217 igt_assert_eq(buf.crtc_id, expected_crtc_id); in crtc_id_subtest()
237 igt_assert_eq(wait_vblank(fd, &vbl), 0); in accuracy()
[all …]
Dkms_pipe_b_c_ivb.c153 igt_assert_eq(ret, 0); in test_dpms()
175 igt_assert_eq(ret, 0); in test_lane_reduction()
178 igt_assert_eq(ret, 0); in test_lane_reduction()
181 igt_assert_eq(ret, 0); in test_lane_reduction()
198 igt_assert_eq(ret, 0); in test_disable_pipe_B()
201 igt_assert_eq(ret, 0); in test_disable_pipe_B()
204 igt_assert_eq(ret, 0); in test_disable_pipe_B()
207 igt_assert_eq(ret, 0); in test_disable_pipe_B()
224 igt_assert_eq(ret, 0); in test_from_C_to_B_with_3_lanes()
227 igt_assert_eq(ret, 0); in test_from_C_to_B_with_3_lanes()
[all …]
Dsyncobj_basic.c56 igt_assert_eq(__syncobj_handle_to_fd(fd, &handle), -EINVAL); in test_bad_handle_to_fd()
68 igt_assert_eq(__syncobj_fd_to_handle(fd, &handle), -EINVAL); in test_bad_fd_to_handle()
80 igt_assert_eq(__syncobj_fd_to_handle(fd, &handle), -EINVAL); in test_illegal_fd_to_handle()
89 igt_assert_eq(__syncobj_fd_to_handle(fd, &handle), -EINVAL); in test_bad_flags_fd_to_handle()
98 igt_assert_eq(__syncobj_handle_to_fd(fd, &handle), -EINVAL); in test_bad_flags_handle_to_fd()
107 igt_assert_eq(__syncobj_handle_to_fd(fd, &handle), -EINVAL); in test_bad_pad_handle_to_fd()
116 igt_assert_eq(__syncobj_fd_to_handle(fd, &handle), -EINVAL); in test_bad_pad_fd_to_handle()
154 igt_assert_eq(syncobj_wait_err(fd, &syncobj, 1, 0, 0), 0); in test_create_signaled()
Dkms_sequence.c184 igt_assert_eq(crtc_queue_sequence(fd, &cqs), 0); in run_test()
193 igt_assert_eq(read(fd, &buf, sizeof(buf)), sizeof(buf)); in run_test()
220 igt_assert_eq(crtc_get_sequence(fd, &cgs), 0); in sequence_get()
226 igt_assert_eq(crtc_get_sequence(fd, &cgs), 0); in sequence_get()
246 igt_assert_eq(crtc_get_sequence(fd, &cgs_start), 0); in sequence_queue()
254 igt_assert_eq(crtc_queue_sequence(fd, &cqs), 0); in sequence_queue()
255 igt_assert_eq(cqs.sequence, target); in sequence_queue()
260 igt_assert_eq(read(fd, &ev, sizeof(ev)), sizeof(ev)); in sequence_queue()
261 igt_assert_eq(ev.sequence, target); in sequence_queue()
265 igt_assert_eq(crtc_get_sequence(fd, &cgs_end), 0); in sequence_queue()
[all …]
Dtools_test.c60 igt_assert_eq(exec_return, IGT_EXIT_SUCCESS); in assert_cmd_success()
123 igt_assert_eq(line.found, 1);
145 igt_assert_eq(line.found, 1);
151 igt_assert_eq(igt_system_quiet("./intel_reg read 0x4030"),
154 igt_assert_eq(igt_system_quiet("./intel_reg dump"),
Dkms_force_connector_basic.c31 igt_assert_eq(m.hdisplay, h); igt_assert_eq(m.vdisplay, w); \
32 igt_assert_eq(m.vrefresh, r);
199 igt_assert_eq(drm_plane->fb_id, argb_fb.fb_id);
212 igt_assert_eq(temp->connection, DRM_MODE_CONNECTED);
228 igt_assert_eq(temp->connection, DRM_MODE_DISCONNECTED);
229 igt_assert_eq(0, temp->count_modes);
237 igt_assert_eq(temp->connection, start_connection);
270 igt_assert_eq(temp->count_modes, start_n_modes);
Dperf.c246 igt_assert_eq(write(pm_fd, &pm_value, sizeof(pm_value)), sizeof(pm_value)); in __perf_open()
270 igt_assert_eq(fscanf(f, "%"PRIu64, &val), 1); in read_u64_file()
461 igt_assert_eq(ret, 0); in scratch_buf_memset()
561 igt_assert_eq(format.n_a40, 0); in hsw_sanity_check_render_basic_reports()
784 igt_assert_eq(b, 0); in gen8_sanity_check_test_oa_reports()
788 igt_assert_eq(b, clock_delta); in gen8_sanity_check_test_oa_reports()
792 igt_assert_eq(b, clock_delta); in gen8_sanity_check_test_oa_reports()
1243 igt_assert_eq(header->pad, 0); /* Reserved */ in read_2_oa_reports()
1273 igt_assert_eq(header->type, DRM_I915_PERF_RECORD_SAMPLE); in read_2_oa_reports()
1275 igt_assert_eq(header->size, sample_size); in read_2_oa_reports()
[all …]
Dkms_properties.c98 igt_assert_eq(ret, 0); in max_bpc_prop_test()
104 igt_assert_eq(ret, 0); in max_bpc_prop_test()
161 igt_assert_eq(ret, 0); in test_properties()
167 igt_assert_eq(ret, 0); in test_properties()
180 igt_assert_eq(ret, 0); in test_properties()
345 igt_assert_eq(ret, -EINVAL); in test_invalid_properties()
354 igt_assert_eq(ret, -ENOENT); in test_invalid_properties()
391 igt_assert_eq(prop->count_values, 2); in validate_range_prop()
392 igt_assert_eq(prop->count_enum_blobs, 0); in validate_range_prop()
433 igt_assert_eq(prop->count_enum_blobs, prop->count_values); in validate_enum_prop()
[all …]
/external/igt-gpu-tools/tests/amdgpu/
Damd_basic.c186 igt_assert_eq(r, 0); in amdgpu_query_info_test()
190 igt_assert_eq(r, 0); in amdgpu_query_info_test()
211 igt_assert_eq(r, 0); in gpu_mem_alloc()
217 igt_assert_eq(r, 0); in gpu_mem_alloc()
220 igt_assert_eq(r, 0); in gpu_mem_alloc()
233 igt_assert_eq(r, 0); in gpu_mem_free()
236 igt_assert_eq(r, 0); in gpu_mem_free()
239 igt_assert_eq(r, 0); in gpu_mem_free()
372 igt_assert_eq(r, 0); in amdgpu_command_submission_gfx_separate_ibs()
378 igt_assert_eq(r, 0); in amdgpu_command_submission_gfx_separate_ibs()
[all …]
Damd_abm.c94 igt_assert_eq(ret, 0); in set_abm_level()
167 igt_assert_eq(ret, 0); in backlight_dpms_cycle()
178 igt_assert_eq(pwm_1, pwm_2); in backlight_dpms_cycle()
190 igt_assert_eq(ret, 0); in backlight_monotonic_basic()
219 igt_assert_eq(ret, 0); in backlight_monotonic_abm()
246 igt_assert_eq(ret, 0); in abm_enabled()
274 igt_assert_eq(ret, 0); in abm_gradual()
283 igt_assert_eq(prev_pwm, curr); in abm_gradual()
297 igt_assert_eq(prev_pwm, curr); in abm_gradual()
/external/igt-gpu-tools/runner/
Drunner_tests.c106 igt_assert_eq(size, multiple ? expected_multiple : expected_normal); in job_list_filter_test()
155 igt_assert_eq(one->abort_mask, two->abort_mask); in assert_settings_equal()
158 igt_assert_eq(one->dry_run, two->dry_run); in assert_settings_equal()
159 igt_assert_eq(one->sync, two->sync); in assert_settings_equal()
160 igt_assert_eq(one->log_level, two->log_level); in assert_settings_equal()
161 igt_assert_eq(one->overwrite, two->overwrite); in assert_settings_equal()
162 igt_assert_eq(one->multiple_mode, two->multiple_mode); in assert_settings_equal()
163 igt_assert_eq(one->inactivity_timeout, two->inactivity_timeout); in assert_settings_equal()
164 igt_assert_eq(one->use_watchdog, two->use_watchdog); in assert_settings_equal()
167 igt_assert_eq(one->piglit_style_dmesg, two->piglit_style_dmesg); in assert_settings_equal()
[all …]
Drunner_json_tests.c25 igt_assert_eq(err, json_tokener_success); in read_json()
96 igt_assert_eq(json_object_get_boolean(one), json_object_get_boolean(two)); in compare()
112 igt_assert_eq(json_object_object_length(one), json_object_object_length(two)); in compare()
116 igt_assert_eq(json_object_array_length(one), json_object_array_length(two)); in compare()
146 igt_assert_eq(json_object_put(resultsobj), 1); in run_results_and_compare()
147 igt_assert_eq(json_object_put(referenceobj), 1); in run_results_and_compare()
/external/igt-gpu-tools/tools/
Dintel_gvtg_test.c132 igt_assert_eq(system(command), 0); in create_guest()
137 igt_assert_eq(system(command), 0); in create_guest()
147 igt_assert_eq(system(command), 0); in create_guest()
164 igt_assert_eq(system(cmd), 0); in remove_vgpu()
176 igt_assert_eq(super_system("uuidgen", uuid, sizeof(uuid)), 0); in gen_uuid()
184 igt_assert_eq(super_system(cmd, guest_ip, sizeof(guest_ip)), 0); in fetch_ip_by_mac()
213 igt_assert_eq(system("dmesg -c > /dev/null"), 0); in clear_dmesg()
220 igt_assert_eq(super_system("dmesg|grep -E \"GPU HANG|gfx reset|BUG\"", in check_dmesg()
358 igt_assert_eq(ret, 0); in main()
/external/igt-gpu-tools/lib/
Digt_syncobj.c65 igt_assert_eq(__syncobj_create(fd, &handle, flags), 0); in syncobj_create()
91 igt_assert_eq(__syncobj_destroy(fd, handle), 0); in syncobj_destroy()
119 igt_assert_eq(__syncobj_handle_to_fd(fd, &args), 0); in syncobj_handle_to_fd()
149 igt_assert_eq(__syncobj_fd_to_handle(fd, &args), 0); in syncobj_fd_to_handle()
169 igt_assert_eq(__syncobj_fd_to_handle(fd, &args), 0); in syncobj_import_sync_file()
229 igt_assert_eq(ret, 0); in syncobj_wait()
260 igt_assert_eq(__syncobj_reset(fd, handles, count), 0); in syncobj_reset()
287 igt_assert_eq(__syncobj_signal(fd, handles, count), 0); in syncobj_signal()

1234567