xref: /openbmc/qemu/tests/decode/meson.build (revision 042d6b02)
1err_tests = [
2    'err_argset1.decode',
3    'err_argset2.decode',
4    'err_field1.decode',
5    'err_field2.decode',
6    'err_field3.decode',
7    'err_field4.decode',
8    'err_field5.decode',
9    'err_field6.decode',
10    'err_field7.decode',
11    'err_field8.decode',
12    'err_field9.decode',
13    'err_field10.decode',
14    'err_init1.decode',
15    'err_init2.decode',
16    'err_init3.decode',
17    'err_init4.decode',
18    'err_overlap1.decode',
19    'err_overlap2.decode',
20    'err_overlap3.decode',
21    'err_overlap4.decode',
22    'err_overlap5.decode',
23    'err_overlap6.decode',
24    'err_overlap7.decode',
25    'err_overlap8.decode',
26    'err_overlap9.decode',
27    'err_pattern_group_empty.decode',
28    'err_pattern_group_ident1.decode',
29    'err_pattern_group_ident2.decode',
30    'err_pattern_group_nest1.decode',
31    'err_pattern_group_nest2.decode',
32    'err_pattern_group_nest3.decode',
33    'err_pattern_group_overlap1.decode',
34    'err_width1.decode',
35    'err_width2.decode',
36    'err_width3.decode',
37    'err_width4.decode',
38]
39
40succ_tests = [
41    'succ_argset_type1.decode',
42    'succ_function.decode',
43    'succ_ident1.decode',
44    'succ_named_field.decode',
45    'succ_pattern_group_nest1.decode',
46    'succ_pattern_group_nest2.decode',
47    'succ_pattern_group_nest3.decode',
48    'succ_pattern_group_nest4.decode',
49]
50
51suite = 'decodetree'
52decodetree = find_program(meson.project_source_root() / 'scripts/decodetree.py')
53
54foreach t: err_tests
55    test(fs.replace_suffix(t, ''),
56         decodetree, args: ['--output-null', '--test-for-error', files(t)],
57         suite: suite)
58endforeach
59
60foreach t: succ_tests
61    test(fs.replace_suffix(t, ''),
62         decodetree, args: ['--output-null', files(t)],
63         suite: suite)
64endforeach
65