]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/meson.build
tests: Check job ordering on execution cycles
[thirdparty/systemd.git] / test / meson.build
1 # SPDX-License-Identifier: LGPL-2.1+
2
3 test_data_files = '''
4 a.service
5 b.service
6 basic.target
7 c.service
8 d.service
9 daughter.service
10 dml.slice
11 dml-passthrough.slice
12 dml-passthrough-empty.service
13 dml-passthrough-set-dml.service
14 dml-passthrough-set-ml.service
15 dml-override.slice
16 dml-override-empty.service
17 dml-discard.slice
18 dml-discard-empty.service
19 dml-discard-set-ml.service
20 e.service
21 end.service
22 f.service
23 g.service
24 grandchild.service
25 h.service
26 hello-after-sleep.target
27 hello.service
28 hwdb/10-bad.hwdb
29 i.service
30 journal-data/journal-1.txt
31 journal-data/journal-2.txt
32 nomem.slice
33 nomemleaf.service
34 parent-deep.slice
35 parent.slice
36 sched_idle_bad.service
37 sched_idle_ok.service
38 sched_rr_bad.service
39 sched_rr_change.service
40 sched_rr_ok.service
41 shutdown.target
42 sleep.service
43 sockets.target
44 son.service
45 sysinit.target
46 test-execute/exec-basic.service
47 test-execute/exec-ambientcapabilities-merge-nfsnobody.service
48 test-execute/exec-ambientcapabilities-merge-nobody.service
49 test-execute/exec-ambientcapabilities-merge.service
50 test-execute/exec-ambientcapabilities-nfsnobody.service
51 test-execute/exec-ambientcapabilities-nobody.service
52 test-execute/exec-ambientcapabilities.service
53 test-execute/exec-bindpaths.service
54 test-execute/exec-capabilityboundingset-invert.service
55 test-execute/exec-capabilityboundingset-merge.service
56 test-execute/exec-capabilityboundingset-reset.service
57 test-execute/exec-capabilityboundingset-simple.service
58 test-execute/exec-cpuaffinity1.service
59 test-execute/exec-cpuaffinity2.service
60 test-execute/exec-cpuaffinity3.service
61 test-execute/exec-dynamicuser-fixeduser-adm.service
62 test-execute/exec-dynamicuser-fixeduser-games.service
63 test-execute/exec-dynamicuser-fixeduser-one-supplementarygroup.service
64 test-execute/exec-dynamicuser-fixeduser.service
65 test-execute/exec-dynamicuser-statedir-migrate-step1.service
66 test-execute/exec-dynamicuser-statedir-migrate-step2.service
67 test-execute/exec-dynamicuser-statedir.service
68 test-execute/exec-dynamicuser-supplementarygroups.service
69 test-execute/exec-environment-no-substitute.service
70 test-execute/exec-environment-empty.service
71 test-execute/exec-environment-multiple.service
72 test-execute/exec-environment.service
73 test-execute/exec-environmentfile.service
74 test-execute/exec-group-nfsnobody.service
75 test-execute/exec-group-nobody.service
76 test-execute/exec-group-nogroup.service
77 test-execute/exec-group.service
78 test-execute/exec-ignoresigpipe-no.service
79 test-execute/exec-ignoresigpipe-yes.service
80 test-execute/exec-inaccessiblepaths-mount-propagation.service
81 test-execute/exec-inaccessiblepaths-sys.service
82 test-execute/exec-ioschedulingclass-best-effort.service
83 test-execute/exec-ioschedulingclass-idle.service
84 test-execute/exec-ioschedulingclass-none.service
85 test-execute/exec-ioschedulingclass-realtime.service
86 test-execute/exec-oomscoreadjust-negative.service
87 test-execute/exec-oomscoreadjust-positive.service
88 test-execute/exec-passenvironment-absent.service
89 test-execute/exec-passenvironment-empty.service
90 test-execute/exec-passenvironment-repeated.service
91 test-execute/exec-passenvironment.service
92 test-execute/exec-personality-aarch64.service
93 test-execute/exec-personality-ppc64.service
94 test-execute/exec-personality-ppc64le.service
95 test-execute/exec-personality-s390.service
96 test-execute/exec-personality-x86-64.service
97 test-execute/exec-personality-x86.service
98 test-execute/exec-privatedevices-disabled-by-prefix.service
99 test-execute/exec-privatedevices-no-capability-mknod.service
100 test-execute/exec-privatedevices-no-capability-sys-rawio.service
101 test-execute/exec-privatedevices-no.service
102 test-execute/exec-privatedevices-yes-capability-mknod.service
103 test-execute/exec-privatedevices-yes-capability-sys-rawio.service
104 test-execute/exec-privatedevices-yes.service
105 test-execute/exec-privatenetwork-yes.service
106 test-execute/exec-privatetmp-no.service
107 test-execute/exec-privatetmp-yes.service
108 test-execute/exec-protecthome-tmpfs-vs-protectsystem-strict.service
109 test-execute/exec-protectkernelmodules-no-capabilities.service
110 test-execute/exec-protectkernelmodules-yes-capabilities.service
111 test-execute/exec-protectkernelmodules-yes-mount-propagation.service
112 test-execute/exec-readonlypaths-mount-propagation.service
113 test-execute/exec-readonlypaths-simple.service
114 test-execute/exec-readonlypaths-with-bindpaths.service
115 test-execute/exec-readonlypaths.service
116 test-execute/exec-readwritepaths-mount-propagation.service
117 test-execute/exec-restrictnamespaces-merge-all.service
118 test-execute/exec-restrictnamespaces-merge-and.service
119 test-execute/exec-restrictnamespaces-merge-or.service
120 test-execute/exec-restrictnamespaces-mnt-blacklist.service
121 test-execute/exec-restrictnamespaces-mnt.service
122 test-execute/exec-restrictnamespaces-no.service
123 test-execute/exec-restrictnamespaces-yes.service
124 test-execute/exec-runtimedirectory-mode.service
125 test-execute/exec-runtimedirectory-owner-nfsnobody.service
126 test-execute/exec-runtimedirectory-owner-nobody.service
127 test-execute/exec-runtimedirectory-owner-nogroup.service
128 test-execute/exec-runtimedirectory-owner.service
129 test-execute/exec-runtimedirectory.service
130 test-execute/exec-specifier-interpolation.service
131 test-execute/exec-specifier.service
132 test-execute/exec-specifier@.service
133 test-execute/exec-standardinput-data.service
134 test-execute/exec-standardinput-file.service
135 test-execute/exec-standardoutput-file.service
136 test-execute/exec-standardoutput-append.service
137 test-execute/exec-supplementarygroups-multiple-groups-default-group-user.service
138 test-execute/exec-supplementarygroups-multiple-groups-withgid.service
139 test-execute/exec-supplementarygroups-multiple-groups-withuid.service
140 test-execute/exec-supplementarygroups-single-group-user.service
141 test-execute/exec-supplementarygroups-single-group.service
142 test-execute/exec-supplementarygroups.service
143 test-execute/exec-systemcallerrornumber-name.service
144 test-execute/exec-systemcallerrornumber-number.service
145 test-execute/exec-systemcallfilter-failing.service
146 test-execute/exec-systemcallfilter-failing2.service
147 test-execute/exec-systemcallfilter-not-failing.service
148 test-execute/exec-systemcallfilter-not-failing2.service
149 test-execute/exec-systemcallfilter-system-user-nfsnobody.service
150 test-execute/exec-systemcallfilter-system-user-nobody.service
151 test-execute/exec-systemcallfilter-system-user.service
152 test-execute/exec-systemcallfilter-with-errno-multi.service
153 test-execute/exec-systemcallfilter-with-errno-name.service
154 test-execute/exec-systemcallfilter-with-errno-number.service
155 test-execute/exec-temporaryfilesystem-options.service
156 test-execute/exec-temporaryfilesystem-ro.service
157 test-execute/exec-temporaryfilesystem-rw.service
158 test-execute/exec-temporaryfilesystem-usr.service
159 test-execute/exec-umask-0177.service
160 test-execute/exec-umask-default.service
161 test-execute/exec-unsetenvironment.service
162 test-execute/exec-user-nfsnobody.service
163 test-execute/exec-user-nobody.service
164 test-execute/exec-user.service
165 test-execute/exec-workingdirectory.service
166 test-execute/exec-workingdirectory-trailing-dot.service
167 test-path/basic.target
168 test-path/path-changed.path
169 test-path/path-changed.service
170 test-path/path-directorynotempty.path
171 test-path/path-directorynotempty.service
172 test-path/path-exists.path
173 test-path/path-exists.service
174 test-path/path-existsglob.path
175 test-path/path-existsglob.service
176 test-path/path-makedirectory.path
177 test-path/path-makedirectory.service
178 test-path/path-modified.path
179 test-path/path-modified.service
180 test-path/path-mycustomunit.service
181 test-path/path-service.service
182 test-path/path-unit.path
183 test-path/paths.target
184 test-path/sysinit.target
185 test-umount/empty.mountinfo
186 test-umount/example.swaps
187 test-umount/garbled.mountinfo
188 test-umount/rhbug-1554943.mountinfo
189 testsuite.target
190 timers.target
191 unit-with-.service.d/20-override.conf
192 unit-with-multiple-.service.d/20-override.conf
193 unit-with-multiple-.service.d/30-override.conf
194 unit-with-multiple-dashes.service
195 unit-with-multiple-dashes.service.d/10-override.conf
196 unstoppable.service
197 '''.split()
198
199 if conf.get('ENABLE_RESOLVE') == 1
200 test_data_files += '''
201 test-resolve/_openpgpkey.fedoraproject.org.pkts
202 test-resolve/fedoraproject.org.pkts
203 test-resolve/gandi.net.pkts
204 test-resolve/google.com.pkts
205 test-resolve/root.pkts
206 test-resolve/sw1a1aa-sw1a2aa-sw1a2ab-sw1a2ac.find.me.uk.pkts
207 test-resolve/teamits.com.pkts
208 test-resolve/zbyszek@fedoraproject.org.pkts
209 test-resolve/_443._tcp.fedoraproject.org.pkts
210 test-resolve/kyhwana.org.pkts
211 test-resolve/fake-caa.pkts
212 '''.split()
213 endif
214
215 if install_tests
216 foreach file : test_data_files
217 subdir = file.split('/')[0]
218 if subdir == file
219 subdir = ''
220 endif
221
222 install_data(file,
223 install_dir : testsdir + '/testdata/' + subdir)
224 endforeach
225 endif
226
227 ############################################################
228
229 rule_syntax_check_py = find_program('rule-syntax-check.py')
230 if want_tests != 'false'
231 test('rule-syntax-check',
232 rule_syntax_check_py,
233 args : all_rules)
234 endif
235
236 ############################################################
237
238 if conf.get('HAVE_SYSV_COMPAT') == 1
239 sysv_generator_test_py = find_program('sysv-generator-test.py')
240 if want_tests != 'false'
241 test('sysv-generator-test',
242 sysv_generator_test_py)
243 endif
244 endif
245
246 ############################################################
247
248 if install_tests
249 install_data('run-unit-tests.py',
250 install_mode : 'rwxr-xr-x',
251 install_dir : testsdir)
252 endif
253
254 ############################################################
255
256 # prepare test/sys tree
257 sys_script_py = find_program('sys-script.py')
258 custom_target(
259 'sys',
260 command : [sys_script_py, meson.current_build_dir()],
261 output : 'sys',
262 build_by_default : want_tests != 'false')
263
264 if perl.found()
265 udev_test_pl = find_program('udev-test.pl')
266 if want_tests != 'false'
267 test('udev-test',
268 udev_test_pl,
269 timeout : 180)
270 endif
271 else
272 message('Skipping udev-test because perl is not available')
273 endif
274
275 if conf.get('ENABLE_HWDB') == 1
276 hwdb_test_sh = find_program('hwdb-test.sh')
277 if want_tests != 'false'
278 test('hwdb-test',
279 hwdb_test_sh,
280 timeout : 90)
281 endif
282 endif
283
284 subdir('fuzz')