summaryrefslogtreecommitdiff
path: root/lib/tests/meson.build
blob: 74efce396cec6a9f07c2ff2df08207cee2c05a3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
lib_tests = [
	'igt_assert',
	'igt_can_fail',
	'igt_can_fail_simple',
	'igt_exit_handler',
	'igt_fork',
	'igt_fork_helper',
	'igt_hdmi_inject',
	'igt_list_only',
	'igt_invalid_subtest_name',
	'igt_no_exit',
	'igt_segfault',
	'igt_simulation',
	'igt_stats',
	'igt_subtest_group',
]

lib_fail_tests = [
	'igt_no_subtest',
	'igt_simple_test_subtests',
	'igt_timeout',
]

foreach lib_test : lib_tests
	exec = executable(lib_test, lib_test + '.c', install : false,
			dependencies : igt_deps)
	test('lib: ' + lib_test, exec)
endforeach

foreach lib_test : lib_fail_tests
	exec = executable(lib_test, lib_test + '.c', install : false,
			dependencies : igt_deps)
	test('lib: ' + lib_test, exec, should_fail : true)
endforeach