xref: /aosp_15_r20/external/igt-gpu-tools/lib/tests/meson.build (revision d83cc019efdc2edc6c4b16e9034a3ceb8d35d77c)
1lib_tests = [
2	'igt_assert',
3	'igt_can_fail',
4	'igt_can_fail_simple',
5	'igt_conflicting_args',
6	'igt_describe',
7	'igt_edid',
8	'igt_exit_handler',
9	'igt_fork',
10	'igt_fork_helper',
11	'igt_list_only',
12	'igt_invalid_subtest_name',
13	'igt_no_exit',
14	'igt_segfault',
15	'igt_simulation',
16	'igt_stats',
17	'igt_subtest_group',
18]
19
20lib_fail_tests = [
21	'igt_no_subtest',
22	'igt_simple_test_subtests',
23	'igt_timeout',
24]
25
26lib_tests_deps = igt_deps
27
28if chamelium.found()
29	lib_deps += chamelium
30	lib_tests += 'igt_audio'
31endif
32
33foreach lib_test : lib_tests
34	exec = executable(lib_test, lib_test + '.c', install : false,
35			dependencies : igt_deps)
36	test('lib: ' + lib_test, exec)
37endforeach
38
39foreach lib_test : lib_fail_tests
40	exec = executable(lib_test, lib_test + '.c', install : false,
41			dependencies : igt_deps)
42	test('lib: ' + lib_test, exec, should_fail : true)
43endforeach
44