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