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