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