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