]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/meson.build
Merge pull request #15290 from keszybz/unrelated-fixes
[thirdparty/systemd.git] / test / meson.build
CommitLineData
3a726fcd 1# SPDX-License-Identifier: LGPL-2.1+
3a726fcd 2
80769cb6
ZJS
3testdata_dir = testsdir + '/testdata/'
4
5install_subdir('journal-data',
6 install_dir : testdata_dir)
7install_subdir('units',
8 install_dir : testdata_dir)
9install_subdir('test-execute',
10 install_dir : testdata_dir)
11install_subdir('test-path',
12 install_dir : testdata_dir)
13install_subdir('test-umount',
14 install_dir : testdata_dir)
fbaa1137
ZJS
15install_subdir('test-network-generator-conversion',
16 install_dir : testdata_dir)
9901a6ad
ZJS
17install_subdir('testsuite-04.units',
18 install_dir : testdata_dir)
1ed5556e
ZJS
19install_subdir('testsuite-06.units',
20 install_dir : testdata_dir)
8c6d58f6
ZJS
21install_subdir('testsuite-10.units',
22 install_dir : testdata_dir)
3ac189d8
ZJS
23install_subdir('testsuite-11.units',
24 install_dir : testdata_dir)
2b5981b4
ZJS
25install_subdir('testsuite-16.units',
26 install_dir : testdata_dir)
94370e62
ZJS
27install_subdir('testsuite-28.units',
28 install_dir : testdata_dir)
7eeeab20
ZJS
29install_subdir('testsuite-30.units',
30 install_dir : testdata_dir)
4ff3f251 31
c8475239
ZJS
32testsuite08_dir = testdata_dir + '/testsuite-08.units'
33install_data('testsuite-08.units/-.mount',
34 install_dir : testsuite08_dir)
35install_data('testsuite-08.units/systemd-remount-fs.service',
36 install_dir : testsuite08_dir)
37meson.add_install_script(meson_make_symlink,
38 './-.mount',
39 testsuite08_dir + '/root.mount')
40meson.add_install_script(meson_make_symlink,
41 '../-.mount',
42 testsuite08_dir + '/local-fs.target.wants/-.mount')
43
1ec57f33 44if conf.get('ENABLE_RESOLVE') == 1
80769cb6
ZJS
45 install_subdir('test-resolve',
46 install_dir : testdata_dir)
4ff3f251
ZJS
47endif
48
e5badaf3
ZJS
49install_data('create-busybox-container',
50 install_mode : 'rwxr-xr-x',
51 install_dir : testdata_dir)
52
fbaa1137
ZJS
53test_network_generator_conversion_sh = find_program('test-network-generator-conversion.sh')
54
1256c481
ZJS
55############################################################
56
6b97bf22 57rule_syntax_check_py = find_program('rule-syntax-check.py')
938be089
ZJS
58if want_tests != 'false'
59 test('rule-syntax-check',
60 rule_syntax_check_py,
61 args : all_rules)
62endif
6b97bf22
ZJS
63
64############################################################
65
1e99c1ee
MG
66if conf.get('HAVE_SYSV_COMPAT') == 1
67 sysv_generator_test_py = find_program('sysv-generator-test.py')
938be089
ZJS
68 if want_tests != 'false'
69 test('sysv-generator-test',
70 sysv_generator_test_py)
71 endif
1e99c1ee 72endif
b7191b2a
ZJS
73
74############################################################
75
3762f8e3
ZJS
76if install_tests
77 install_data('run-unit-tests.py',
78 install_mode : 'rwxr-xr-x',
79 install_dir : testsdir)
fbaa1137
ZJS
80 install_data('test-network-generator-conversion.sh',
81 install_mode : 'rwxr-xr-x',
82 install_dir : testsdir)
3762f8e3
ZJS
83endif
84
85############################################################
86
b7191b2a
ZJS
87# prepare test/sys tree
88sys_script_py = find_program('sys-script.py')
89custom_target(
90 'sys',
91 command : [sys_script_py, meson.current_build_dir()],
92 output : 'sys',
fd1939fb 93 build_by_default : want_tests != 'false')
b7191b2a 94
b1ffacb6
ZJS
95if perl.found()
96 udev_test_pl = find_program('udev-test.pl')
938be089
ZJS
97 if want_tests != 'false'
98 test('udev-test',
bb0e9604
FS
99 udev_test_pl,
100 timeout : 180)
938be089 101 endif
b1ffacb6
ZJS
102else
103 message('Skipping udev-test because perl is not available')
104endif
fdf666bc 105
1e99c1ee
MG
106if conf.get('ENABLE_HWDB') == 1
107 hwdb_test_sh = find_program('hwdb-test.sh')
938be089
ZJS
108 if want_tests != 'false'
109 test('hwdb-test',
110 hwdb_test_sh,
111 timeout : 90)
112 endif
1e99c1ee 113endif
b68dfb9e 114
c74a3f97 115subdir('fuzz')