]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
3a726fcd | 2 | |
69e96427 ZJS |
3 | awkscript = 'test-hashmap-ordered.awk' |
4 | test_hashmap_ordered_c = custom_target( | |
37efbbd8 ZJS |
5 | 'test-hashmap-ordered.c', |
6 | input : [awkscript, 'test-hashmap-plain.c'], | |
7 | output : 'test-hashmap-ordered.c', | |
8 | command : [awk, '-f', '@INPUT0@', '@INPUT1@'], | |
fd1939fb YW |
9 | capture : true, |
10 | build_by_default : want_tests != 'false') | |
69e96427 | 11 | |
68a06b3c | 12 | path = run_command(sh, '-c', 'echo "$PATH"', check: true).stdout().strip() |
69e96427 | 13 | test_env = environment() |
69e96427 | 14 | test_env.set('SYSTEMD_LANGUAGE_FALLBACK_MAP', language_fallback_map) |
81875efe | 15 | test_env.set('PATH', project_build_root + ':' + path) |
8702496b | 16 | test_env.set('PROJECT_BUILD_ROOT', project_build_root) |
a181901a | 17 | test_env.set('SYSTEMD_SLOW_TESTS', slow_tests ? '1' : '0') |
69e96427 | 18 | |
320266b9 ZJS |
19 | if efi_addon != '' |
20 | test_env.set('EFI_ADDON', efi_addon) | |
21 | endif | |
22 | ||
37ab1a25 ZJS |
23 | ############################################################ |
24 | ||
25 | generate_sym_test_py = find_program('generate-sym-test.py') | |
26 | ||
27 | test_libsystemd_sym_c = custom_target( | |
37efbbd8 | 28 | 'test-libsystemd-sym.c', |
4c1b6e69 | 29 | input : [libsystemd_sym_path] + systemd_headers + libsystemd_sources, |
37efbbd8 | 30 | output : 'test-libsystemd-sym.c', |
4c1b6e69 | 31 | command : [generate_sym_test_py, libsystemd_sym_path, libsystemd_dir_path] + systemd_headers, |
fd1939fb YW |
32 | capture : true, |
33 | build_by_default : want_tests != 'false') | |
37ab1a25 | 34 | |
e0bec52f | 35 | test_libudev_sym_c = custom_target( |
37efbbd8 | 36 | 'test-libudev-sym.c', |
4c1b6e69 | 37 | input : [libudev_sym_path, libudev_h_path] + libudev_sources, |
37efbbd8 | 38 | output : 'test-libudev-sym.c', |
4c1b6e69 | 39 | command : [generate_sym_test_py, libudev_sym_path, libudev_dir_path, libudev_h_path], |
fd1939fb YW |
40 | capture : true, |
41 | build_by_default : want_tests != 'false') | |
e0bec52f | 42 | |
37ab1a25 ZJS |
43 | ############################################################ |
44 | ||
c12e10d7 JJ |
45 | simple_tests += files( |
46 | 'test-alloc-util.c', | |
47 | 'test-architecture.c', | |
48 | 'test-argv-util.c', | |
49 | 'test-barrier.c', | |
5e31ddd1 | 50 | 'test-bitfield.c', |
c12e10d7 JJ |
51 | 'test-bitmap.c', |
52 | 'test-blockdev-util.c', | |
53 | 'test-bootspec.c', | |
91d149cf | 54 | 'test-build-path.c', |
c12e10d7 JJ |
55 | 'test-bus-util.c', |
56 | 'test-calendarspec.c', | |
57 | 'test-cgroup-setup.c', | |
58 | 'test-cgroup-util.c', | |
59 | 'test-cgroup.c', | |
8f22fe32 | 60 | 'test-chase.c', |
c12e10d7 | 61 | 'test-clock.c', |
447bcbfc | 62 | 'test-color-util.c', |
92035969 | 63 | 'test-compare-operator.c', |
c12e10d7 JJ |
64 | 'test-condition.c', |
65 | 'test-conf-files.c', | |
66 | 'test-conf-parser.c', | |
67 | 'test-copy.c', | |
68 | 'test-coredump-util.c', | |
69 | 'test-cpu-set-util.c', | |
70 | 'test-creds.c', | |
71 | 'test-daemon.c', | |
72 | 'test-data-fd-util.c', | |
73 | 'test-date.c', | |
74 | 'test-dev-setup.c', | |
75 | 'test-device-nodes.c', | |
76 | 'test-devnum-util.c', | |
6a57d86b | 77 | 'test-dirent-util.c', |
c12e10d7 JJ |
78 | 'test-dns-domain.c', |
79 | 'test-ellipsize.c', | |
80 | 'test-env-file.c', | |
81 | 'test-env-util.c', | |
82 | 'test-errno-util.c', | |
83 | 'test-escape.c', | |
84 | 'test-ether-addr-util.c', | |
85 | 'test-exec-util.c', | |
86 | 'test-execve.c', | |
87 | 'test-exit-status.c', | |
88 | 'test-extract-word.c', | |
89 | 'test-fdset.c', | |
54d7fcc6 | 90 | 'test-fiemap.c', |
c12e10d7 JJ |
91 | 'test-fileio.c', |
92 | 'test-firewall-util.c', | |
93 | 'test-format-table.c', | |
94 | 'test-format-util.c', | |
95 | 'test-fs-util.c', | |
96 | 'test-fstab-util.c', | |
97 | 'test-glob-util.c', | |
98 | 'test-gpt.c', | |
d9c72e54 | 99 | 'test-gunicode.c', |
c12e10d7 JJ |
100 | 'test-hash-funcs.c', |
101 | 'test-hexdecoct.c', | |
102 | 'test-hmac.c', | |
103 | 'test-hostname-setup.c', | |
104 | 'test-hostname-util.c', | |
105 | 'test-id128.c', | |
d452335a | 106 | 'test-image-policy.c', |
c12e10d7 JJ |
107 | 'test-import-util.c', |
108 | 'test-in-addr-prefix-util.c', | |
109 | 'test-in-addr-util.c', | |
110 | 'test-install-file.c', | |
111 | 'test-install-root.c', | |
112 | 'test-io-util.c', | |
9d1c3e94 | 113 | 'test-iovec-util.c', |
c12e10d7 JJ |
114 | 'test-journal-importer.c', |
115 | 'test-kbd-util.c', | |
116 | 'test-limits-util.c', | |
117 | 'test-list.c', | |
118 | 'test-local-addresses.c', | |
119 | 'test-locale-util.c', | |
aea3ca36 | 120 | 'test-lock-util.c', |
c12e10d7 JJ |
121 | 'test-log.c', |
122 | 'test-logarithm.c', | |
ffc7f3e9 | 123 | 'test-login-util.c', |
c12e10d7 | 124 | 'test-macro.c', |
3418ca21 | 125 | 'test-memfd-util.c', |
c12e10d7 JJ |
126 | 'test-memory-util.c', |
127 | 'test-mempool.c', | |
abe72100 | 128 | 'test-memstream-util.c', |
c12e10d7 JJ |
129 | 'test-mkdir.c', |
130 | 'test-modhex.c', | |
c12e10d7 JJ |
131 | 'test-mountpoint-util.c', |
132 | 'test-net-naming-scheme.c', | |
133 | 'test-nulstr-util.c', | |
134 | 'test-open-file.c', | |
135 | 'test-ordered-set.c', | |
136 | 'test-os-util.c', | |
137 | 'test-parse-argument.c', | |
138 | 'test-parse-helpers.c', | |
139 | 'test-path-lookup.c', | |
140 | 'test-path-util.c', | |
141 | 'test-percent-util.c', | |
d203659a | 142 | 'test-pidref.c', |
c12e10d7 JJ |
143 | 'test-pretty-print.c', |
144 | 'test-prioq.c', | |
145 | 'test-proc-cmdline.c', | |
146 | 'test-procfs-util.c', | |
147 | 'test-psi-util.c', | |
148 | 'test-ratelimit.c', | |
149 | 'test-raw-clone.c', | |
150 | 'test-recurse-dir.c', | |
151 | 'test-replace-var.c', | |
152 | 'test-rlimit-util.c', | |
153 | 'test-rm-rf.c', | |
154 | 'test-sd-hwdb.c', | |
155 | 'test-sd-path.c', | |
10a94661 | 156 | 'test-secure-bits.c', |
c12e10d7 JJ |
157 | 'test-selinux.c', |
158 | 'test-serialize.c', | |
159 | 'test-set.c', | |
160 | 'test-sha256.c', | |
161 | 'test-sigbus.c', | |
162 | 'test-signal-util.c', | |
163 | 'test-siphash24.c', | |
54d7fcc6 | 164 | 'test-sleep-config.c', |
c12e10d7 JJ |
165 | 'test-socket-netlink.c', |
166 | 'test-socket-util.c', | |
167 | 'test-specifier.c', | |
168 | 'test-stat-util.c', | |
169 | 'test-static-destruct.c', | |
170 | 'test-strbuf.c', | |
171 | 'test-string-util.c', | |
172 | 'test-strip-tab-ansi.c', | |
173 | 'test-strv.c', | |
174 | 'test-strxcpyx.c', | |
175 | 'test-sysctl-util.c', | |
176 | 'test-terminal-util.c', | |
c12e10d7 | 177 | 'test-tmpfile-util.c', |
c12e10d7 | 178 | 'test-udev-util.c', |
8e1ac16b | 179 | 'test-uid-classification.c', |
c12e10d7 JJ |
180 | 'test-uid-range.c', |
181 | 'test-umask-util.c', | |
182 | 'test-unaligned.c', | |
183 | 'test-unit-file.c', | |
184 | 'test-user-util.c', | |
185 | 'test-utf8.c', | |
186 | 'test-verbs.c', | |
76511c1b | 187 | 'test-vpick.c', |
c12e10d7 JJ |
188 | 'test-web-util.c', |
189 | 'test-xattr-util.c', | |
190 | 'test-xml.c', | |
191 | ) | |
37efbbd8 | 192 | |
c12e10d7 | 193 | ############################################################ |
e265fa81 | 194 | |
822cd3ff JJ |
195 | common_test_dependencies = [ |
196 | libblkid, | |
197 | libmount, | |
198 | librt, | |
199 | libseccomp, | |
200 | libselinux, | |
201 | threads, | |
202 | ] | |
69e96427 | 203 | |
130c87b1 YW |
204 | executables += [ |
205 | test_template + { | |
822cd3ff | 206 | 'sources' : files('test-acl-util.c'), |
130c87b1 | 207 | 'conditions' : ['HAVE_ACL'], |
822cd3ff | 208 | }, |
130c87b1 | 209 | test_template + { |
26978ac7 ZJS |
210 | 'sources' : files('test-af-list.c') + |
211 | generated_gperf_headers, | |
822cd3ff | 212 | }, |
130c87b1 | 213 | test_template + { |
26978ac7 ZJS |
214 | 'sources' : files('test-arphrd-util.c') + |
215 | generated_gperf_headers, | |
822cd3ff | 216 | }, |
130c87b1 | 217 | test_template + { |
822cd3ff JJ |
218 | 'sources' : files('test-ask-password-api.c'), |
219 | 'type' : 'manual', | |
220 | }, | |
130c87b1 | 221 | test_template + { |
822cd3ff JJ |
222 | 'sources' : files('test-async.c'), |
223 | 'timeout' : 120, | |
224 | }, | |
130c87b1 | 225 | test_template + { |
822cd3ff | 226 | 'sources' : files('test-boot-timestamps.c'), |
130c87b1 | 227 | 'conditions' : ['ENABLE_EFI'], |
822cd3ff | 228 | }, |
130c87b1 | 229 | test_template + { |
822cd3ff JJ |
230 | 'sources' : files('test-btrfs.c'), |
231 | 'type' : 'manual', | |
232 | }, | |
2b344ea8 MY |
233 | test_template + { |
234 | 'sources' : files('test-btrfs-physical-offset.c'), | |
235 | 'type' : 'manual', | |
236 | }, | |
130c87b1 | 237 | test_template + { |
26978ac7 ZJS |
238 | 'sources' : files('test-cap-list.c') + |
239 | generated_gperf_headers, | |
822cd3ff JJ |
240 | 'dependencies' : libcap, |
241 | }, | |
130c87b1 | 242 | test_template + { |
822cd3ff JJ |
243 | 'sources' : files('test-capability.c'), |
244 | 'dependencies' : libcap, | |
245 | }, | |
130c87b1 | 246 | test_template + { |
564a7545 | 247 | 'sources' : files('test-chase-manual.c'), |
822cd3ff JJ |
248 | 'type' : 'manual', |
249 | }, | |
130c87b1 | 250 | test_template + { |
822cd3ff | 251 | 'sources' : files('test-compress-benchmark.c'), |
3fc72d54 | 252 | 'link_with' : [libshared], |
822cd3ff JJ |
253 | 'timeout' : 90, |
254 | }, | |
130c87b1 | 255 | test_template + { |
822cd3ff | 256 | 'sources' : files('test-compress.c'), |
3fc72d54 | 257 | 'link_with' : [libshared], |
822cd3ff | 258 | }, |
130c87b1 | 259 | test_template + { |
822cd3ff | 260 | 'sources' : files('test-cryptolib.c'), |
822cd3ff | 261 | 'dependencies' : lib_openssl_or_gcrypt, |
130c87b1 | 262 | 'conditions' : ['HAVE_OPENSSL_OR_GCRYPT'], |
822cd3ff | 263 | }, |
130c87b1 | 264 | test_template + { |
822cd3ff JJ |
265 | 'sources' : files('test-dlopen-so.c'), |
266 | 'dependencies' : libp11kit_cflags | |
267 | }, | |
130c87b1 YW |
268 | test_template + { |
269 | # only static linking apart from libdl, to make sure that the | |
270 | # module is linked to all libraries that it uses. | |
271 | 'sources' : files('test-dlopen.c'), | |
272 | 'link_with' : libbasic, | |
273 | 'dependencies' : libdl, | |
274 | 'install' : false, | |
275 | 'type' : 'manual', | |
276 | }, | |
277 | test_template + { | |
26978ac7 ZJS |
278 | 'sources' : files('test-errno-list.c') + |
279 | generated_gperf_headers, | |
822cd3ff | 280 | }, |
130c87b1 | 281 | test_template + { |
822cd3ff JJ |
282 | 'sources' : files('test-fd-util.c'), |
283 | 'dependencies' : libseccomp, | |
284 | }, | |
130c87b1 | 285 | test_template + { |
26978ac7 | 286 | 'sources' : files( |
130c87b1 YW |
287 | 'test-hashmap.c', |
288 | 'test-hashmap-plain.c', | |
289 | ) + [ | |
290 | test_hashmap_ordered_c, | |
291 | ], | |
822cd3ff JJ |
292 | 'timeout' : 180, |
293 | }, | |
130c87b1 | 294 | test_template + { |
26978ac7 ZJS |
295 | 'sources' : files('test-ip-protocol-list.c') + |
296 | shared_generated_gperf_headers, | |
822cd3ff | 297 | }, |
130c87b1 | 298 | test_template + { |
822cd3ff JJ |
299 | 'sources' : files('test-ipcrm.c'), |
300 | 'type' : 'unsafe', | |
301 | }, | |
130c87b1 | 302 | test_template + { |
822cd3ff JJ |
303 | 'sources' : files('test-json.c'), |
304 | 'dependencies' : libm, | |
305 | }, | |
130c87b1 | 306 | test_template + { |
822cd3ff JJ |
307 | 'sources' : files('test-libcrypt-util.c'), |
308 | 'dependencies' : libcrypt, | |
309 | 'timeout' : 120, | |
310 | }, | |
130c87b1 | 311 | test_template + { |
822cd3ff JJ |
312 | 'sources' : files('test-libmount.c'), |
313 | 'dependencies' : [ | |
314 | libmount, | |
315 | threads, | |
316 | ], | |
317 | }, | |
130c87b1 | 318 | test_template + { |
822cd3ff JJ |
319 | 'sources' : files('test-loopback.c'), |
320 | 'dependencies' : common_test_dependencies, | |
321 | }, | |
130c87b1 | 322 | test_template + { |
822cd3ff JJ |
323 | 'sources' : files('test-math-util.c'), |
324 | 'dependencies' : libm, | |
325 | }, | |
130c87b1 | 326 | test_template + { |
b7dc40e6 LP |
327 | 'sources' : files('test-mempress.c'), |
328 | 'dependencies' : threads, | |
329 | }, | |
130c87b1 | 330 | test_template + { |
4e9ef660 LP |
331 | 'sources' : files('test-mount-util.c'), |
332 | 'dependencies' : libmount, | |
333 | }, | |
130c87b1 | 334 | test_template + { |
822cd3ff JJ |
335 | 'sources' : files('test-netlink-manual.c'), |
336 | 'dependencies' : libkmod, | |
130c87b1 | 337 | 'conditions' : ['HAVE_KMOD'], |
822cd3ff JJ |
338 | 'type' : 'manual', |
339 | }, | |
fc289dd0 TM |
340 | test_template + { |
341 | 'sources' : files('test-nft-set.c'), | |
342 | 'type' : 'manual', | |
343 | }, | |
130c87b1 | 344 | test_template + { |
822cd3ff | 345 | 'sources' : files('test-nscd-flush.c'), |
130c87b1 | 346 | 'conditions' : ['ENABLE_NSCD'], |
822cd3ff JJ |
347 | 'type' : 'manual', |
348 | }, | |
130c87b1 | 349 | test_template + { |
822cd3ff JJ |
350 | 'sources' : files( |
351 | 'test-nss-hosts.c', | |
352 | 'nss-test-util.c', | |
353 | ), | |
354 | 'dependencies' : libdl, | |
130c87b1 | 355 | 'conditions' : ['ENABLE_NSS'], |
822cd3ff JJ |
356 | 'timeout' : 120, |
357 | }, | |
130c87b1 | 358 | test_template + { |
822cd3ff JJ |
359 | 'sources' : files( |
360 | 'test-nss-users.c', | |
361 | 'nss-test-util.c', | |
362 | ), | |
363 | 'dependencies' : libdl, | |
130c87b1 | 364 | 'conditions' : ['ENABLE_NSS'], |
822cd3ff | 365 | }, |
cffeee92 DS |
366 | test_template + { |
367 | 'sources' : files('test-openssl.c'), | |
368 | 'dependencies' : libopenssl, | |
369 | 'conditions' : ['HAVE_OPENSSL'], | |
370 | }, | |
130c87b1 | 371 | test_template + { |
822cd3ff JJ |
372 | 'sources' : files('test-parse-util.c'), |
373 | 'dependencies' : libm, | |
374 | }, | |
130c87b1 | 375 | test_template + { |
822cd3ff JJ |
376 | 'sources' : files('test-process-util.c'), |
377 | 'dependencies' : threads, | |
378 | }, | |
71cb203a LP |
379 | test_template + { |
380 | 'sources' : files('test-progress-bar.c'), | |
381 | 'type' : 'manual', | |
382 | }, | |
130c87b1 | 383 | test_template + { |
822cd3ff JJ |
384 | 'sources' : files('test-qrcode-util.c'), |
385 | 'dependencies' : libdl, | |
386 | }, | |
130c87b1 | 387 | test_template + { |
822cd3ff JJ |
388 | 'sources' : files('test-random-util.c'), |
389 | 'dependencies' : libm, | |
390 | 'timeout' : 120, | |
391 | }, | |
130c87b1 | 392 | test_template + { |
822cd3ff | 393 | 'sources' : files('test-sbat.c'), |
130c87b1 | 394 | 'conditions' : ['ENABLE_BOOTLOADER'], |
822cd3ff JJ |
395 | 'c_args' : '-I@0@'.format(efi_config_h_dir), |
396 | }, | |
130c87b1 | 397 | test_template + { |
822cd3ff JJ |
398 | 'sources' : files('test-seccomp.c'), |
399 | 'dependencies' : libseccomp, | |
130c87b1 | 400 | 'conditions' : ['HAVE_SECCOMP'], |
822cd3ff | 401 | }, |
130c87b1 | 402 | test_template + { |
822cd3ff JJ |
403 | 'sources' : files('test-set-disable-mempool.c'), |
404 | 'dependencies' : threads, | |
405 | }, | |
130c87b1 | 406 | test_template + { |
822cd3ff JJ |
407 | 'sources' : files('test-sizeof.c'), |
408 | 'link_with' : libbasic, | |
409 | }, | |
130c87b1 | 410 | test_template + { |
b66b3c40 YW |
411 | 'sources' : files('test-time-util.c'), |
412 | 'timeout' : 120, | |
413 | }, | |
e3acb4d2 DS |
414 | test_template + { |
415 | 'sources' : files('test-tpm2.c'), | |
416 | 'dependencies' : libopenssl, | |
cc8c6792 | 417 | 'timeout' : 120, |
e3acb4d2 | 418 | }, |
130c87b1 | 419 | test_template + { |
23c3c5d4 | 420 | 'sources' : files('test-utmp.c'), |
130c87b1 | 421 | 'conditions' : ['ENABLE_UTMP'], |
23c3c5d4 | 422 | }, |
130c87b1 | 423 | test_template + { |
23c3c5d4 ZJS |
424 | 'sources' : files('test-varlink.c'), |
425 | 'dependencies' : threads, | |
426 | }, | |
faec54ad LP |
427 | test_template + { |
428 | 'sources' : files('test-varlink-idl.c'), | |
429 | 'dependencies' : threads, | |
430 | }, | |
130c87b1 | 431 | test_template + { |
23c3c5d4 ZJS |
432 | 'sources' : files('test-watchdog.c'), |
433 | 'type' : 'unsafe', | |
434 | }, | |
435 | ||
130c87b1 YW |
436 | # Symbol tests |
437 | test_template + { | |
438 | 'name' : 'test-libsystemd-sym', | |
439 | 'sources' : test_libsystemd_sym_c, | |
440 | 'link_with' : libsystemd, | |
441 | 'suite' : 'libsystemd', | |
442 | }, | |
443 | test_template + { | |
444 | 'name' : 'test-libsystemd-static-sym', | |
445 | 'sources' : test_libsystemd_sym_c, | |
446 | 'link_with' : install_libsystemd_static, | |
447 | 'build_by_default' : want_tests != 'false' and static_libsystemd != 'false', | |
448 | 'install' : install_tests and static_libsystemd != 'false', | |
449 | 'suite' : 'libsystemd', | |
450 | }, | |
451 | test_template + { | |
452 | 'name' : 'test-libudev-sym', | |
453 | 'sources' : test_libudev_sym_c, | |
454 | 'include_directories' : libudev_includes, | |
455 | 'c_args' : ['-Wno-deprecated-declarations'] + test_cflags, | |
456 | 'link_with' : libudev, | |
457 | 'suite' : 'libudev', | |
458 | }, | |
459 | test_template + { | |
460 | 'name' : 'test-libudev-static-sym', | |
461 | 'sources' : test_libudev_sym_c, | |
462 | 'include_directories' : libudev_includes, | |
463 | 'c_args' : ['-Wno-deprecated-declarations'] + test_cflags, | |
464 | 'link_with' : install_libudev_static, | |
465 | 'build_by_default' : want_tests != 'false' and static_libudev != 'false', | |
466 | 'install' : install_tests and static_libudev != 'false', | |
467 | 'suite' : 'libudev', | |
468 | }, | |
23c3c5d4 ZJS |
469 | |
470 | # Tests that link to libcore, i.e. tests for pid1 code. | |
130c87b1 | 471 | core_test_template + { |
23c3c5d4 | 472 | 'sources' : files('test-bpf-devices.c'), |
822cd3ff | 473 | 'dependencies' : common_test_dependencies, |
822cd3ff | 474 | }, |
130c87b1 | 475 | core_test_template + { |
23c3c5d4 | 476 | 'sources' : files('test-bpf-firewall.c'), |
822cd3ff | 477 | 'dependencies' : common_test_dependencies, |
822cd3ff | 478 | }, |
130c87b1 | 479 | core_test_template + { |
23c3c5d4 | 480 | 'sources' : files('test-bpf-foreign-programs.c'), |
822cd3ff | 481 | }, |
130c87b1 | 482 | core_test_template + { |
169b5675 | 483 | 'sources' : files('test-bpf-restrict-fs.c'), |
23c3c5d4 | 484 | 'dependencies' : common_test_dependencies, |
822cd3ff | 485 | }, |
130c87b1 | 486 | core_test_template + { |
23c3c5d4 | 487 | 'sources' : files('test-cgroup-cpu.c'), |
23c3c5d4 | 488 | }, |
130c87b1 | 489 | core_test_template + { |
23c3c5d4 | 490 | 'sources' : files('test-cgroup-mask.c'), |
822cd3ff | 491 | 'dependencies' : common_test_dependencies, |
822cd3ff | 492 | }, |
130c87b1 | 493 | core_test_template + { |
23c3c5d4 | 494 | 'sources' : files('test-cgroup-unit-default.c'), |
23c3c5d4 | 495 | }, |
130c87b1 | 496 | core_test_template + { |
23c3c5d4 | 497 | 'sources' : files('test-chown-rec.c'), |
23c3c5d4 | 498 | }, |
130c87b1 | 499 | core_test_template + { |
6eccc3cf ZJS |
500 | 'sources' : files('test-core-unit.c'), |
501 | 'dependencies' : common_test_dependencies, | |
6eccc3cf | 502 | }, |
130c87b1 | 503 | core_test_template + { |
23c3c5d4 | 504 | 'sources' : files('test-emergency-action.c'), |
23c3c5d4 | 505 | }, |
130c87b1 | 506 | core_test_template + { |
23c3c5d4 ZJS |
507 | 'sources' : files('test-engine.c'), |
508 | 'dependencies' : common_test_dependencies, | |
23c3c5d4 | 509 | }, |
130c87b1 | 510 | core_test_template + { |
23c3c5d4 ZJS |
511 | 'sources' : files('test-execute.c'), |
512 | 'dependencies' : common_test_dependencies, | |
23c3c5d4 ZJS |
513 | 'timeout' : 360, |
514 | }, | |
130c87b1 | 515 | core_test_template + { |
23c3c5d4 | 516 | 'sources' : files('test-install.c'), |
23c3c5d4 ZJS |
517 | 'type' : 'manual', |
518 | }, | |
130c87b1 | 519 | core_test_template + { |
23c3c5d4 ZJS |
520 | 'sources' : files('test-job-type.c'), |
521 | 'dependencies' : common_test_dependencies, | |
23c3c5d4 | 522 | }, |
130c87b1 | 523 | core_test_template + { |
23c3c5d4 ZJS |
524 | 'sources' : files('test-load-fragment.c'), |
525 | 'dependencies' : common_test_dependencies, | |
23c3c5d4 | 526 | }, |
130c87b1 | 527 | core_test_template + { |
23c3c5d4 ZJS |
528 | 'sources' : files('test-loop-block.c'), |
529 | 'dependencies' : [threads, libblkid], | |
23c3c5d4 ZJS |
530 | 'parallel' : false, |
531 | }, | |
130c87b1 | 532 | core_test_template + { |
23c3c5d4 | 533 | 'sources' : files('test-manager.c'), |
23c3c5d4 | 534 | }, |
130c87b1 | 535 | core_test_template + { |
23c3c5d4 ZJS |
536 | 'sources' : files('test-namespace.c'), |
537 | 'dependencies' : [ | |
538 | libblkid, | |
539 | threads, | |
540 | ], | |
23c3c5d4 | 541 | }, |
130c87b1 | 542 | core_test_template + { |
23c3c5d4 ZJS |
543 | 'sources' : files('test-ns.c'), |
544 | 'dependencies' : common_test_dependencies, | |
23c3c5d4 ZJS |
545 | 'type' : 'manual', |
546 | }, | |
130c87b1 | 547 | core_test_template + { |
23c3c5d4 ZJS |
548 | 'sources' : files('test-path.c'), |
549 | 'dependencies' : common_test_dependencies, | |
23c3c5d4 ZJS |
550 | 'timeout' : 120, |
551 | }, | |
130c87b1 | 552 | core_test_template + { |
23c3c5d4 ZJS |
553 | 'sources' : files('test-sched-prio.c'), |
554 | 'dependencies' : common_test_dependencies, | |
23c3c5d4 | 555 | }, |
130c87b1 | 556 | core_test_template + { |
23c3c5d4 ZJS |
557 | 'sources' : files('test-socket-bind.c'), |
558 | 'dependencies' : libdl, | |
130c87b1 | 559 | 'conditions' : ['BPF_FRAMEWORK'], |
23c3c5d4 | 560 | }, |
d287ece7 YW |
561 | core_test_template + { |
562 | 'sources' : files('test-tables.c'), | |
563 | }, | |
130c87b1 | 564 | core_test_template + { |
23c3c5d4 ZJS |
565 | 'sources' : files('test-unit-name.c'), |
566 | 'dependencies' : common_test_dependencies, | |
23c3c5d4 | 567 | }, |
130c87b1 | 568 | core_test_template + { |
23c3c5d4 ZJS |
569 | 'sources' : files('test-unit-serialize.c'), |
570 | 'dependencies' : common_test_dependencies, | |
23c3c5d4 | 571 | }, |
130c87b1 | 572 | core_test_template + { |
23c3c5d4 ZJS |
573 | 'sources' : files('test-watch-pid.c'), |
574 | 'dependencies' : common_test_dependencies, | |
822cd3ff | 575 | }, |
69e96427 | 576 | |
23c3c5d4 | 577 | # Tests from other directories that have link_with deps that were not defined earlier |
130c87b1 | 578 | test_template + { |
822cd3ff JJ |
579 | 'sources' : files('../libsystemd/sd-bus/test-bus-error.c'), |
580 | 'link_with' : [ | |
581 | libshared_static, | |
582 | libsystemd_static, | |
583 | ], | |
584 | }, | |
130c87b1 | 585 | test_template + { |
822cd3ff | 586 | 'sources' : files('../libsystemd/sd-device/test-sd-device-thread.c'), |
a412a1b9 DDM |
587 | 'link_with' : [ |
588 | libbasic, | |
589 | libsystemd, | |
590 | ], | |
822cd3ff JJ |
591 | 'dependencies' : threads, |
592 | }, | |
130c87b1 | 593 | test_template + { |
822cd3ff | 594 | 'sources' : files('../libudev/test-udev-device-thread.c'), |
a412a1b9 DDM |
595 | 'link_with' : [ |
596 | libbasic, | |
597 | libudev, | |
598 | ], | |
822cd3ff JJ |
599 | 'dependencies' : threads, |
600 | }, | |
130c87b1 YW |
601 | test_template + { |
602 | 'sources' : files('../libudev/test-libudev.c'), | |
603 | 'link_with' : [ | |
604 | libshared, | |
605 | libudev_basic, | |
606 | ], | |
607 | }, | |
fd7fd59b MS |
608 | test_template + { |
609 | 'sources' : files('test-aux-scope.c'), | |
610 | 'type' : 'manual', | |
611 | }, | |
28b76fc8 | 612 | ] |