xref: /openbmc/qemu/tests/decode/meson.build (revision c6a5fc2ac76c5ab709896ee1b0edd33685a67ed1)
1656666dcSRichard Hendersonerr_tests = [
2656666dcSRichard Henderson    'err_argset1.decode',
3656666dcSRichard Henderson    'err_argset2.decode',
4656666dcSRichard Henderson    'err_field1.decode',
5656666dcSRichard Henderson    'err_field2.decode',
6656666dcSRichard Henderson    'err_field3.decode',
7656666dcSRichard Henderson    'err_field4.decode',
8656666dcSRichard Henderson    'err_field5.decode',
9656666dcSRichard Henderson    'err_field6.decode',
10276d77deSPeter Maydell    'err_field7.decode',
11276d77deSPeter Maydell    'err_field8.decode',
12276d77deSPeter Maydell    'err_field9.decode',
13276d77deSPeter Maydell    'err_field10.decode',
14656666dcSRichard Henderson    'err_init1.decode',
15656666dcSRichard Henderson    'err_init2.decode',
16656666dcSRichard Henderson    'err_init3.decode',
17656666dcSRichard Henderson    'err_init4.decode',
18656666dcSRichard Henderson    'err_overlap1.decode',
19656666dcSRichard Henderson    'err_overlap2.decode',
20656666dcSRichard Henderson    'err_overlap3.decode',
21656666dcSRichard Henderson    'err_overlap4.decode',
22656666dcSRichard Henderson    'err_overlap5.decode',
23656666dcSRichard Henderson    'err_overlap6.decode',
24656666dcSRichard Henderson    'err_overlap7.decode',
25656666dcSRichard Henderson    'err_overlap8.decode',
26656666dcSRichard Henderson    'err_overlap9.decode',
27656666dcSRichard Henderson    'err_pattern_group_empty.decode',
28656666dcSRichard Henderson    'err_pattern_group_ident1.decode',
29656666dcSRichard Henderson    'err_pattern_group_ident2.decode',
30656666dcSRichard Henderson    'err_pattern_group_nest1.decode',
31656666dcSRichard Henderson    'err_pattern_group_nest2.decode',
32656666dcSRichard Henderson    'err_pattern_group_nest3.decode',
33656666dcSRichard Henderson    'err_pattern_group_overlap1.decode',
34656666dcSRichard Henderson    'err_width1.decode',
35656666dcSRichard Henderson    'err_width2.decode',
36656666dcSRichard Henderson    'err_width3.decode',
37656666dcSRichard Henderson    'err_width4.decode',
38656666dcSRichard Henderson]
39656666dcSRichard Henderson
40656666dcSRichard Hendersonsucc_tests = [
41656666dcSRichard Henderson    'succ_argset_type1.decode',
42656666dcSRichard Henderson    'succ_function.decode',
43656666dcSRichard Henderson    'succ_ident1.decode',
44276d77deSPeter Maydell    'succ_named_field.decode',
45656666dcSRichard Henderson    'succ_pattern_group_nest1.decode',
46656666dcSRichard Henderson    'succ_pattern_group_nest2.decode',
47656666dcSRichard Henderson    'succ_pattern_group_nest3.decode',
48656666dcSRichard Henderson    'succ_pattern_group_nest4.decode',
49656666dcSRichard Henderson]
50656666dcSRichard Henderson
51656666dcSRichard Hendersonsuite = 'decodetree'
52656666dcSRichard Hendersondecodetree = find_program(meson.project_source_root() / 'scripts/decodetree.py')
53656666dcSRichard Henderson
54656666dcSRichard Hendersonforeach t: err_tests
55656666dcSRichard Henderson    test(fs.replace_suffix(t, ''),
56*c6a5fc2aSRichard Henderson         decodetree, args: ['--output-null', '--test-for-error', files(t)],
57656666dcSRichard Henderson         suite: suite)
58656666dcSRichard Hendersonendforeach
59656666dcSRichard Henderson
60656666dcSRichard Hendersonforeach t: succ_tests
61656666dcSRichard Henderson    test(fs.replace_suffix(t, ''),
62*c6a5fc2aSRichard Henderson         decodetree, args: ['--output-null', files(t)],
63656666dcSRichard Henderson         suite: suite)
64656666dcSRichard Hendersonendforeach
65