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