]>
Commit | Line | Data |
---|---|---|
3a726fcd | 1 | # SPDX-License-Identifier: LGPL-2.1+ |
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 ZJS |
11 | |
12 | test_include_dir = include_directories('.') | |
13 | ||
14 | path = run_command('sh', ['-c', 'echo "$PATH"']).stdout() | |
15 | test_env = environment() | |
16 | test_env.set('SYSTEMD_KBD_MODEL_MAP', kbd_model_map) | |
17 | test_env.set('SYSTEMD_LANGUAGE_FALLBACK_MAP', language_fallback_map) | |
18 | test_env.set('PATH', path) | |
19 | test_env.prepend('PATH', meson.build_root()) | |
20 | ||
37ab1a25 ZJS |
21 | ############################################################ |
22 | ||
23 | generate_sym_test_py = find_program('generate-sym-test.py') | |
24 | ||
25 | test_libsystemd_sym_c = custom_target( | |
37efbbd8 ZJS |
26 | 'test-libsystemd-sym.c', |
27 | input : [libsystemd_sym_path] + systemd_headers, | |
28 | output : 'test-libsystemd-sym.c', | |
29 | command : [generate_sym_test_py, libsystemd_sym_path] + systemd_headers, | |
fd1939fb YW |
30 | capture : true, |
31 | build_by_default : want_tests != 'false') | |
37ab1a25 | 32 | |
e0bec52f | 33 | test_libudev_sym_c = custom_target( |
37efbbd8 ZJS |
34 | 'test-libudev-sym.c', |
35 | input : [libudev_sym_path, libudev_h_path], | |
36 | output : 'test-libudev-sym.c', | |
37 | command : [generate_sym_test_py, '@INPUT0@', '@INPUT1@'], | |
fd1939fb YW |
38 | capture : true, |
39 | build_by_default : want_tests != 'false') | |
e0bec52f | 40 | |
83b6af36 ZJS |
41 | test_dlopen_c = files('test-dlopen.c') |
42 | ||
37ab1a25 ZJS |
43 | ############################################################ |
44 | ||
d9daae55 ZJS |
45 | test_systemd_tmpfiles_py = find_program('test-systemd-tmpfiles.py') |
46 | ||
47 | ############################################################ | |
48 | ||
69e96427 | 49 | tests += [ |
37efbbd8 ZJS |
50 | [['src/test/test-device-nodes.c'], |
51 | [], | |
52 | []], | |
53 | ||
8c759b33 LP |
54 | [['src/test/test-engine.c', |
55 | 'src/test/test-helper.c'], | |
37efbbd8 ZJS |
56 | [libcore, |
57 | libudev, | |
0c06b506 | 58 | libshared], |
37efbbd8 ZJS |
59 | [threads, |
60 | librt, | |
61 | libseccomp, | |
62 | libselinux, | |
63 | libmount, | |
64 | libblkid]], | |
65 | ||
54fcb619 ZJS |
66 | [['src/test/test-emergency-action.c'], |
67 | [libcore, | |
68 | libshared], | |
69 | []], | |
70 | ||
cb9e44db LP |
71 | [['src/test/test-chown-rec.c'], |
72 | [libcore, | |
73 | libshared], | |
74 | []], | |
75 | ||
37efbbd8 ZJS |
76 | [['src/test/test-job-type.c'], |
77 | [libcore, | |
34ce0a52 | 78 | libshared], |
37efbbd8 ZJS |
79 | [threads, |
80 | librt, | |
81 | libseccomp, | |
82 | libselinux, | |
83 | libmount, | |
84 | libblkid]], | |
85 | ||
86 | [['src/test/test-ns.c'], | |
87 | [libcore, | |
34ce0a52 | 88 | libshared], |
37efbbd8 ZJS |
89 | [threads, |
90 | librt, | |
91 | libseccomp, | |
92 | libselinux, | |
93 | libmount, | |
94 | libblkid], | |
ad68714d | 95 | '', 'manual'], |
37efbbd8 ZJS |
96 | |
97 | [['src/test/test-loopback.c'], | |
98 | [libcore, | |
99 | libshared], | |
100 | [threads, | |
101 | librt, | |
102 | libseccomp, | |
103 | libselinux, | |
104 | libmount, | |
105 | libblkid]], | |
106 | ||
107 | [['src/test/test-hostname.c'], | |
108 | [libcore, | |
34ce0a52 | 109 | libshared], |
37efbbd8 ZJS |
110 | [threads, |
111 | librt, | |
112 | libseccomp, | |
113 | libselinux, | |
114 | libmount, | |
115 | libblkid], | |
116 | '', 'unsafe'], | |
117 | ||
118 | [['src/test/test-dns-domain.c'], | |
119 | [libcore, | |
2d4ceca8 | 120 | libshared, |
37efbbd8 ZJS |
121 | libsystemd_network], |
122 | []], | |
123 | ||
124 | [['src/test/test-boot-timestamps.c'], | |
125 | [], | |
126 | [], | |
127 | 'ENABLE_EFI'], | |
128 | ||
8c759b33 LP |
129 | [['src/test/test-unit-name.c', |
130 | 'src/test/test-helper.c'], | |
37efbbd8 | 131 | [libcore, |
34ce0a52 | 132 | libshared], |
37efbbd8 ZJS |
133 | [threads, |
134 | librt, | |
135 | libseccomp, | |
136 | libselinux, | |
137 | libmount, | |
138 | libblkid]], | |
139 | ||
8c759b33 LP |
140 | [['src/test/test-unit-file.c', |
141 | 'src/test/test-helper.c'], | |
37efbbd8 | 142 | [libcore, |
34ce0a52 | 143 | libshared], |
37efbbd8 ZJS |
144 | [threads, |
145 | librt, | |
146 | libseccomp, | |
147 | libselinux, | |
148 | libmount, | |
149 | libblkid]], | |
150 | ||
40a4c4b3 ZJS |
151 | [['src/test/test-serialize.c'], |
152 | [], | |
153 | []], | |
154 | ||
37efbbd8 ZJS |
155 | [['src/test/test-utf8.c'], |
156 | [], | |
157 | []], | |
158 | ||
30874dda LP |
159 | [['src/test/test-dev-setup.c'], |
160 | [], | |
161 | []], | |
162 | ||
37efbbd8 ZJS |
163 | [['src/test/test-capability.c'], |
164 | [], | |
165 | [libcap]], | |
166 | ||
167 | [['src/test/test-async.c'], | |
168 | [], | |
a28b9567 YW |
169 | [], |
170 | '', 'timeout=120'], | |
37efbbd8 ZJS |
171 | |
172 | [['src/test/test-locale-util.c'], | |
173 | [], | |
174 | []], | |
175 | ||
176 | [['src/test/test-copy.c'], | |
2d4ceca8 | 177 | [], |
37efbbd8 ZJS |
178 | []], |
179 | ||
180 | [['src/test/test-sigbus.c'], | |
181 | [], | |
182 | []], | |
183 | ||
184 | [['src/test/test-condition.c'], | |
185 | [], | |
186 | []], | |
187 | ||
188 | [['src/test/test-fdset.c'], | |
189 | [], | |
190 | []], | |
191 | ||
192 | [['src/test/test-fstab-util.c'], | |
193 | [], | |
194 | []], | |
195 | ||
2416f73b ZJS |
196 | [['src/test/test-random-util.c'], |
197 | [], | |
198 | []], | |
199 | ||
1960e736 LP |
200 | [['src/test/test-format-table.c'], |
201 | [], | |
202 | []], | |
203 | ||
37efbbd8 ZJS |
204 | [['src/test/test-ratelimit.c'], |
205 | [], | |
206 | []], | |
207 | ||
208 | [['src/test/test-util.c'], | |
209 | [], | |
210 | []], | |
211 | ||
788c34be LP |
212 | [['src/test/test-json.c'], |
213 | [], | |
214 | []], | |
215 | ||
37efbbd8 ZJS |
216 | [['src/test/test-mount-util.c'], |
217 | [], | |
218 | []], | |
219 | ||
049af8ad ZJS |
220 | [['src/test/test-mountpoint-util.c'], |
221 | [], | |
222 | []], | |
223 | ||
37efbbd8 ZJS |
224 | [['src/test/test-exec-util.c'], |
225 | [], | |
226 | []], | |
227 | ||
228 | [['src/test/test-hexdecoct.c'], | |
229 | [], | |
230 | []], | |
231 | ||
232 | [['src/test/test-alloc-util.c'], | |
233 | [], | |
234 | []], | |
235 | ||
236 | [['src/test/test-xattr-util.c'], | |
237 | [], | |
238 | []], | |
239 | ||
240 | [['src/test/test-io-util.c'], | |
241 | [], | |
242 | []], | |
243 | ||
244 | [['src/test/test-glob-util.c'], | |
245 | [], | |
246 | []], | |
247 | ||
248 | [['src/test/test-fs-util.c'], | |
249 | [], | |
250 | []], | |
251 | ||
252 | [['src/test/test-proc-cmdline.c'], | |
253 | [], | |
254 | []], | |
255 | ||
256 | [['src/test/test-fd-util.c'], | |
257 | [], | |
258 | []], | |
259 | ||
260 | [['src/test/test-web-util.c'], | |
261 | [], | |
262 | []], | |
263 | ||
264 | [['src/test/test-cpu-set-util.c'], | |
265 | [], | |
266 | []], | |
267 | ||
268 | [['src/test/test-stat-util.c'], | |
269 | [], | |
270 | []], | |
271 | ||
d58ad743 LP |
272 | [['src/test/test-os-util.c'], |
273 | [], | |
274 | []], | |
275 | ||
37efbbd8 ZJS |
276 | [['src/test/test-escape.c'], |
277 | [], | |
278 | []], | |
279 | ||
e82f30d1 LP |
280 | [['src/test/test-specifier.c'], |
281 | [], | |
282 | []], | |
283 | ||
37efbbd8 ZJS |
284 | [['src/test/test-string-util.c'], |
285 | [], | |
286 | []], | |
287 | ||
288 | [['src/test/test-extract-word.c'], | |
289 | [], | |
290 | []], | |
291 | ||
292 | [['src/test/test-parse-util.c'], | |
293 | [], | |
294 | []], | |
295 | ||
296 | [['src/test/test-user-util.c'], | |
297 | [], | |
298 | []], | |
299 | ||
300 | [['src/test/test-hostname-util.c'], | |
301 | [], | |
302 | []], | |
303 | ||
304 | [['src/test/test-process-util.c'], | |
305 | [], | |
306 | []], | |
307 | ||
308 | [['src/test/test-terminal-util.c'], | |
309 | [], | |
310 | []], | |
311 | ||
312 | [['src/test/test-path-lookup.c'], | |
313 | [], | |
314 | []], | |
315 | ||
294bf0c3 ZJS |
316 | [['src/test/test-pretty-print.c'], |
317 | [], | |
318 | []], | |
319 | ||
37efbbd8 ZJS |
320 | [['src/test/test-uid-range.c'], |
321 | [], | |
322 | []], | |
323 | ||
324 | [['src/test/test-cap-list.c', | |
325 | generated_gperf_headers], | |
326 | [], | |
327 | [libcap]], | |
328 | ||
329 | [['src/test/test-socket-util.c'], | |
330 | [], | |
331 | []], | |
332 | ||
f4912f3a LP |
333 | [['src/test/test-in-addr-util.c'], |
334 | [], | |
335 | []], | |
336 | ||
37efbbd8 ZJS |
337 | [['src/test/test-barrier.c'], |
338 | [], | |
339 | []], | |
340 | ||
341 | [['src/test/test-tmpfiles.c'], | |
342 | [], | |
343 | []], | |
344 | ||
345 | [['src/test/test-namespace.c'], | |
346 | [libcore, | |
34ce0a52 | 347 | libshared], |
37efbbd8 ZJS |
348 | [threads, |
349 | libblkid]], | |
350 | ||
351 | [['src/test/test-verbs.c'], | |
352 | [], | |
353 | []], | |
354 | ||
355 | [['src/test/test-install-root.c'], | |
356 | [], | |
357 | []], | |
358 | ||
359 | [['src/test/test-acl-util.c'], | |
360 | [], | |
361 | [], | |
362 | 'HAVE_ACL'], | |
363 | ||
364 | [['src/test/test-seccomp.c'], | |
365 | [], | |
366 | [libseccomp], | |
367 | 'HAVE_SECCOMP'], | |
368 | ||
369 | [['src/test/test-rlimit-util.c'], | |
370 | [], | |
371 | []], | |
372 | ||
373 | [['src/test/test-ask-password-api.c'], | |
374 | [], | |
375 | [], | |
376 | '', 'manual'], | |
377 | ||
378 | [['src/test/test-dissect-image.c'], | |
379 | [], | |
380 | [libblkid], | |
381 | '', 'manual'], | |
382 | ||
383 | [['src/test/test-signal-util.c'], | |
384 | [], | |
385 | []], | |
386 | ||
387 | [['src/test/test-selinux.c'], | |
388 | [], | |
389 | []], | |
390 | ||
391 | [['src/test/test-sizeof.c'], | |
392 | [libbasic], | |
393 | []], | |
394 | ||
db3a5930 DM |
395 | [['src/test/test-bpf.c', |
396 | 'src/test/test-helper.c'], | |
397 | [libcore, | |
398 | libshared], | |
399 | [libmount, | |
400 | threads, | |
401 | librt, | |
402 | libseccomp, | |
403 | libselinux, | |
404 | libblkid]], | |
405 | ||
62a76913 LP |
406 | [['src/test/test-watch-pid.c', |
407 | 'src/test/test-helper.c'], | |
408 | [libcore, | |
409 | libshared], | |
410 | [libmount, | |
411 | threads, | |
412 | librt, | |
413 | libseccomp, | |
414 | libselinux, | |
415 | libblkid]], | |
416 | ||
37efbbd8 ZJS |
417 | [['src/test/test-hashmap.c', |
418 | 'src/test/test-hashmap-plain.c', | |
419 | test_hashmap_ordered_c], | |
420 | [], | |
421 | [], | |
422 | '', 'timeout=90'], | |
423 | ||
424 | [['src/test/test-set.c'], | |
425 | [], | |
426 | []], | |
427 | ||
3ffd12bf YW |
428 | [['src/test/test-set-disable-mempool.c'], |
429 | [], | |
430 | [threads]], | |
431 | ||
37efbbd8 ZJS |
432 | [['src/test/test-bitmap.c'], |
433 | [], | |
434 | []], | |
435 | ||
436 | [['src/test/test-xml.c'], | |
437 | [], | |
438 | []], | |
439 | ||
440 | [['src/test/test-list.c'], | |
441 | [], | |
442 | []], | |
443 | ||
9aef9a67 LP |
444 | [['src/test/test-procfs-util.c'], |
445 | [], | |
446 | []], | |
447 | ||
37efbbd8 ZJS |
448 | [['src/test/test-unaligned.c'], |
449 | [], | |
450 | []], | |
451 | ||
452 | [['src/test/test-tables.c', | |
453 | 'src/shared/test-tables.h', | |
454 | 'src/journal/journald-server.c', | |
455 | 'src/journal/journald-server.h'], | |
456 | [libcore, | |
457 | libjournal_core, | |
458 | libudev_core, | |
0c06b506 | 459 | libudev_static, |
37efbbd8 ZJS |
460 | libsystemd_network, |
461 | libshared], | |
462 | [threads, | |
463 | libseccomp, | |
464 | libmount, | |
465 | libxz, | |
466 | liblz4, | |
467 | libblkid], | |
468 | '', '', [], libudev_core_includes], | |
469 | ||
470 | [['src/test/test-prioq.c'], | |
471 | [], | |
472 | []], | |
473 | ||
474 | [['src/test/test-fileio.c'], | |
475 | [], | |
476 | []], | |
477 | ||
b996f7e4 | 478 | [['src/test/test-time-util.c'], |
37efbbd8 ZJS |
479 | [], |
480 | []], | |
481 | ||
482 | [['src/test/test-clock.c'], | |
483 | [], | |
484 | []], | |
485 | ||
486 | [['src/test/test-architecture.c'], | |
487 | [], | |
488 | []], | |
489 | ||
490 | [['src/test/test-log.c'], | |
491 | [], | |
492 | []], | |
493 | ||
494 | [['src/test/test-ipcrm.c'], | |
495 | [], | |
496 | [], | |
497 | '', 'unsafe'], | |
498 | ||
499 | [['src/test/test-btrfs.c'], | |
500 | [], | |
501 | [], | |
502 | '', 'manual'], | |
503 | ||
504 | ||
505 | [['src/test/test-firewall-util.c'], | |
c3045943 | 506 | [libshared], |
37efbbd8 ZJS |
507 | [], |
508 | 'HAVE_LIBIPTC'], | |
509 | ||
510 | [['src/test/test-netlink-manual.c'], | |
511 | [], | |
512 | [libkmod], | |
513 | 'HAVE_KMOD', 'manual'], | |
514 | ||
515 | [['src/test/test-ellipsize.c'], | |
516 | [], | |
517 | []], | |
518 | ||
519 | [['src/test/test-date.c'], | |
520 | [], | |
521 | []], | |
522 | ||
523 | [['src/test/test-sleep.c'], | |
524 | [], | |
525 | []], | |
526 | ||
527 | [['src/test/test-replace-var.c'], | |
528 | [], | |
529 | []], | |
530 | ||
531 | [['src/test/test-calendarspec.c'], | |
532 | [], | |
533 | []], | |
534 | ||
535 | [['src/test/test-strip-tab-ansi.c'], | |
536 | [], | |
537 | []], | |
538 | ||
539 | [['src/test/test-daemon.c'], | |
540 | [], | |
541 | []], | |
542 | ||
543 | [['src/test/test-cgroup.c'], | |
544 | [], | |
545 | [], | |
546 | '', 'manual'], | |
547 | ||
8c759b33 LP |
548 | [['src/test/test-cgroup-mask.c', |
549 | 'src/test/test-helper.c'], | |
37efbbd8 | 550 | [libcore, |
34ce0a52 | 551 | libshared], |
37efbbd8 ZJS |
552 | [threads, |
553 | librt, | |
554 | libseccomp, | |
555 | libselinux, | |
556 | libmount, | |
557 | libblkid]], | |
558 | ||
559 | [['src/test/test-cgroup-util.c'], | |
560 | [], | |
561 | []], | |
562 | ||
563 | [['src/test/test-env-util.c'], | |
564 | [], | |
565 | []], | |
566 | ||
567 | [['src/test/test-strbuf.c'], | |
568 | [], | |
569 | []], | |
570 | ||
571 | [['src/test/test-strv.c'], | |
572 | [], | |
573 | []], | |
574 | ||
575 | [['src/test/test-path-util.c'], | |
576 | [], | |
577 | []], | |
578 | ||
8c759b33 LP |
579 | [['src/test/test-path.c', |
580 | 'src/test/test-helper.c'], | |
37efbbd8 | 581 | [libcore, |
34ce0a52 | 582 | libshared], |
37efbbd8 ZJS |
583 | [threads, |
584 | librt, | |
585 | libseccomp, | |
586 | libselinux, | |
587 | libmount, | |
588 | libblkid]], | |
589 | ||
8c759b33 LP |
590 | [['src/test/test-execute.c', |
591 | 'src/test/test-helper.c'], | |
37efbbd8 | 592 | [libcore, |
34ce0a52 | 593 | libshared], |
37efbbd8 ZJS |
594 | [threads, |
595 | librt, | |
596 | libseccomp, | |
597 | libselinux, | |
598 | libmount, | |
7e4a49b4 ZJS |
599 | libblkid], |
600 | '', 'timeout=360'], | |
37efbbd8 ZJS |
601 | |
602 | [['src/test/test-siphash24.c'], | |
603 | [], | |
604 | []], | |
605 | ||
606 | [['src/test/test-strxcpyx.c'], | |
607 | [], | |
608 | []], | |
609 | ||
610 | [['src/test/test-install.c'], | |
611 | [libcore, | |
612 | libshared], | |
613 | [], | |
614 | '', 'manual'], | |
615 | ||
616 | [['src/test/test-watchdog.c'], | |
617 | [], | |
618 | []], | |
619 | ||
8c759b33 LP |
620 | [['src/test/test-sched-prio.c', |
621 | 'src/test/test-helper.c'], | |
37efbbd8 | 622 | [libcore, |
34ce0a52 | 623 | libshared], |
37efbbd8 ZJS |
624 | [threads, |
625 | librt, | |
626 | libseccomp, | |
627 | libselinux, | |
628 | libmount, | |
629 | libblkid]], | |
630 | ||
631 | [['src/test/test-conf-files.c'], | |
632 | [], | |
633 | []], | |
634 | ||
635 | [['src/test/test-conf-parser.c'], | |
636 | [], | |
637 | []], | |
638 | ||
639 | [['src/test/test-af-list.c', | |
640 | generated_gperf_headers], | |
641 | [], | |
642 | []], | |
643 | ||
644 | [['src/test/test-arphrd-list.c', | |
645 | generated_gperf_headers], | |
646 | [], | |
647 | []], | |
648 | ||
649 | [['src/test/test-journal-importer.c'], | |
650 | [], | |
651 | []], | |
652 | ||
653 | [['src/test/test-libudev.c'], | |
34ce0a52 | 654 | [libshared], |
37efbbd8 ZJS |
655 | []], |
656 | ||
657 | [['src/test/test-udev.c'], | |
658 | [libudev_core, | |
0c06b506 | 659 | libudev_static, |
37efbbd8 ZJS |
660 | libsystemd_network, |
661 | libshared], | |
662 | [threads, | |
663 | librt, | |
664 | libblkid, | |
665 | libkmod, | |
666 | libacl], | |
feae122f | 667 | '', 'manual', '-DLOG_REALM=LOG_REALM_UDEV'], |
37efbbd8 ZJS |
668 | |
669 | [['src/test/test-id128.c'], | |
670 | [], | |
671 | []], | |
672 | ||
673 | [['src/test/test-hash.c'], | |
674 | [], | |
675 | []], | |
676 | ||
bd181f27 ZJS |
677 | [['src/test/test-gcrypt-util.c'], |
678 | [], | |
679 | [], | |
680 | 'HAVE_GCRYPT'], | |
681 | ||
37efbbd8 ZJS |
682 | [['src/test/test-nss.c'], |
683 | [], | |
684 | [libdl], | |
08540a95 | 685 | 'ENABLE_NSS', 'manual'], |
6fa392bf ZJS |
686 | |
687 | [['src/test/test-umount.c', | |
688 | 'src/core/mount-setup.c', | |
689 | 'src/core/mount-setup.h', | |
690 | 'src/core/umount.c', | |
691 | 'src/core/umount.h'], | |
692 | [], | |
693 | [libmount]], | |
24924cc9 ZJS |
694 | |
695 | [['src/test/test-bus-util.c'], | |
696 | [], | |
697 | []], | |
ca7a9afc ZJS |
698 | |
699 | [['src/test/test-sd-hwdb.c'], | |
700 | [], | |
701 | []], | |
37efbbd8 | 702 | ] |
69e96427 ZJS |
703 | |
704 | ############################################################ | |
705 | ||
706 | # define some tests here, because the link_with deps were not defined earlier | |
707 | ||
708 | tests += [ | |
37efbbd8 ZJS |
709 | [['src/journal/test-journal.c'], |
710 | [libjournal_core, | |
711 | libshared], | |
712 | [threads, | |
713 | libxz, | |
714 | liblz4]], | |
715 | ||
716 | [['src/journal/test-journal-send.c'], | |
717 | [libjournal_core, | |
718 | libshared], | |
719 | [threads, | |
720 | libxz, | |
721 | liblz4]], | |
722 | ||
723 | [['src/journal/test-journal-syslog.c'], | |
724 | [libjournal_core, | |
34ce0a52 | 725 | libshared], |
37efbbd8 ZJS |
726 | [threads, |
727 | libxz, | |
728 | liblz4, | |
729 | libselinux]], | |
730 | ||
731 | [['src/journal/test-journal-match.c'], | |
732 | [libjournal_core, | |
733 | libshared], | |
734 | [threads, | |
735 | libxz, | |
736 | liblz4]], | |
737 | ||
738 | [['src/journal/test-journal-enum.c'], | |
739 | [libjournal_core, | |
740 | libshared], | |
741 | [threads, | |
742 | libxz, | |
76b38997 ZJS |
743 | liblz4], |
744 | '', 'timeout=360'], | |
37efbbd8 ZJS |
745 | |
746 | [['src/journal/test-journal-stream.c'], | |
747 | [libjournal_core, | |
748 | libshared], | |
749 | [threads, | |
750 | libxz, | |
751 | liblz4]], | |
752 | ||
753 | [['src/journal/test-journal-flush.c'], | |
754 | [libjournal_core, | |
755 | libshared], | |
756 | [threads, | |
757 | libxz, | |
758 | liblz4]], | |
759 | ||
760 | [['src/journal/test-journal-init.c'], | |
761 | [libjournal_core, | |
762 | libshared], | |
763 | [threads, | |
764 | libxz, | |
765 | liblz4]], | |
766 | ||
1b7cf0e5 AG |
767 | [['src/journal/test-journal-config.c'], |
768 | [libjournal_core, | |
769 | libshared], | |
770 | [libxz, | |
771 | liblz4, | |
772 | libselinux]], | |
773 | ||
37efbbd8 ZJS |
774 | [['src/journal/test-journal-verify.c'], |
775 | [libjournal_core, | |
776 | libshared], | |
777 | [threads, | |
778 | libxz, | |
779 | liblz4]], | |
780 | ||
781 | [['src/journal/test-journal-interleaving.c'], | |
782 | [libjournal_core, | |
783 | libshared], | |
784 | [threads, | |
785 | libxz, | |
786 | liblz4]], | |
787 | ||
788 | [['src/journal/test-mmap-cache.c'], | |
789 | [libjournal_core, | |
790 | libshared], | |
791 | [threads, | |
792 | libxz, | |
793 | liblz4]], | |
794 | ||
795 | [['src/journal/test-catalog.c'], | |
796 | [libjournal_core, | |
797 | libshared], | |
798 | [threads, | |
799 | libxz, | |
49cdae63 | 800 | liblz4]], |
37efbbd8 ZJS |
801 | |
802 | [['src/journal/test-compress.c'], | |
803 | [libjournal_core, | |
804 | libshared], | |
805 | [liblz4, | |
806 | libxz]], | |
807 | ||
808 | [['src/journal/test-compress-benchmark.c'], | |
809 | [libjournal_core, | |
810 | libshared], | |
811 | [liblz4, | |
812 | libxz], | |
813 | '', 'timeout=90'], | |
814 | ||
815 | [['src/journal/test-audit-type.c'], | |
816 | [libjournal_core, | |
817 | libshared], | |
818 | [liblz4, | |
819 | libxz]], | |
820 | ] | |
f4ee10a2 ZJS |
821 | |
822 | ############################################################ | |
823 | ||
824 | tests += [ | |
8a0c1913 ZJS |
825 | [['src/libsystemd/sd-bus/test-bus-address.c'], |
826 | [], | |
827 | [threads]], | |
828 | ||
37efbbd8 ZJS |
829 | [['src/libsystemd/sd-bus/test-bus-marshal.c'], |
830 | [], | |
831 | [threads, | |
832 | libglib, | |
833 | libgobject, | |
834 | libgio, | |
835 | libdbus]], | |
836 | ||
837 | [['src/libsystemd/sd-bus/test-bus-signature.c'], | |
838 | [], | |
839 | [threads]], | |
840 | ||
8a5cd31e LP |
841 | [['src/libsystemd/sd-bus/test-bus-watch-bind.c'], |
842 | [], | |
843 | [threads], '', 'timeout=120'], | |
844 | ||
37efbbd8 ZJS |
845 | [['src/libsystemd/sd-bus/test-bus-chat.c'], |
846 | [], | |
847 | [threads]], | |
848 | ||
849 | [['src/libsystemd/sd-bus/test-bus-cleanup.c'], | |
850 | [], | |
851 | [threads, | |
852 | libseccomp]], | |
853 | ||
854 | [['src/libsystemd/sd-bus/test-bus-error.c'], | |
855 | [libshared_static, | |
37e4d7a8 | 856 | libsystemd_static], |
37efbbd8 ZJS |
857 | []], |
858 | ||
859 | [['src/libsystemd/sd-bus/test-bus-track.c'], | |
860 | [], | |
861 | [libseccomp]], | |
862 | ||
863 | [['src/libsystemd/sd-bus/test-bus-server.c'], | |
864 | [], | |
865 | [threads]], | |
866 | ||
867 | [['src/libsystemd/sd-bus/test-bus-objects.c'], | |
868 | [], | |
869 | [threads]], | |
870 | ||
94e2523b ZJS |
871 | [['src/libsystemd/sd-bus/test-bus-vtable.c'], |
872 | [], | |
873 | []], | |
874 | ||
37efbbd8 ZJS |
875 | [['src/libsystemd/sd-bus/test-bus-gvariant.c'], |
876 | [], | |
877 | [libglib, | |
878 | libgobject, | |
879 | libgio]], | |
880 | ||
881 | [['src/libsystemd/sd-bus/test-bus-creds.c'], | |
882 | [], | |
883 | []], | |
884 | ||
885 | [['src/libsystemd/sd-bus/test-bus-match.c'], | |
886 | [], | |
887 | []], | |
888 | ||
37efbbd8 ZJS |
889 | [['src/libsystemd/sd-bus/test-bus-benchmark.c'], |
890 | [], | |
a132bef0 ZJS |
891 | [threads], |
892 | '', 'manual'], | |
37efbbd8 ZJS |
893 | |
894 | [['src/libsystemd/sd-bus/test-bus-introspect.c'], | |
895 | [], | |
896 | []], | |
897 | ||
898 | [['src/libsystemd/sd-event/test-event.c'], | |
899 | [], | |
900 | []], | |
901 | ||
902 | [['src/libsystemd/sd-netlink/test-netlink.c'], | |
903 | [], | |
904 | []], | |
905 | ||
906 | [['src/libsystemd/sd-netlink/test-local-addresses.c'], | |
907 | [], | |
908 | []], | |
909 | ||
910 | [['src/libsystemd/sd-resolve/test-resolve.c'], | |
911 | [], | |
912 | [threads]], | |
913 | ||
914 | [['src/libsystemd/sd-login/test-login.c'], | |
915 | [], | |
ce737f46 | 916 | []], |
9380d34c YW |
917 | |
918 | [['src/libsystemd/sd-device/test-sd-device.c'], | |
919 | [], | |
920 | []], | |
a6ee01ca YW |
921 | |
922 | [['src/libsystemd/sd-device/test-sd-device-thread.c'], | |
923 | [libbasic, | |
924 | libshared_static, | |
925 | libsystemd], | |
926 | [threads]], | |
cb3e926a YW |
927 | |
928 | [['src/libsystemd/sd-device/test-udev-device-thread.c'], | |
929 | [libbasic, | |
930 | libshared_static, | |
931 | libudev], | |
932 | [threads]], | |
aaa5b4ce YW |
933 | |
934 | [['src/libsystemd/sd-device/test-sd-device-monitor.c'], | |
935 | [], | |
936 | []], | |
937 | ||
826472ce | 938 | ] |
69e96427 | 939 | |
94e2523b ZJS |
940 | if cxx.found() |
941 | tests += [ | |
942 | [['src/libsystemd/sd-bus/test-bus-vtable-cc.cc'], | |
943 | [], | |
944 | []] | |
945 | ] | |
946 | endif | |
947 | ||
69e96427 ZJS |
948 | ############################################################ |
949 | ||
950 | tests += [ | |
37efbbd8 ZJS |
951 | [['src/libsystemd-network/test-dhcp-option.c', |
952 | 'src/libsystemd-network/dhcp-protocol.h', | |
953 | 'src/libsystemd-network/dhcp-internal.h'], | |
954 | [libshared, | |
955 | libsystemd_network], | |
956 | []], | |
957 | ||
b85bc551 DW |
958 | [['src/libsystemd-network/test-sd-dhcp-lease.c', |
959 | 'src/libsystemd-network/dhcp-lease-internal.h'], | |
960 | [libshared, | |
961 | libsystemd_network], | |
962 | []], | |
963 | ||
37efbbd8 ZJS |
964 | [['src/libsystemd-network/test-dhcp-client.c', |
965 | 'src/libsystemd-network/dhcp-protocol.h', | |
966 | 'src/libsystemd-network/dhcp-internal.h', | |
967 | 'src/systemd/sd-dhcp-client.h'], | |
968 | [libshared, | |
34ce0a52 | 969 | libsystemd_network], |
37efbbd8 ZJS |
970 | []], |
971 | ||
972 | [['src/libsystemd-network/test-dhcp-server.c'], | |
973 | [libshared, | |
974 | libsystemd_network], | |
975 | []], | |
976 | ||
977 | [['src/libsystemd-network/test-ipv4ll.c', | |
978 | 'src/libsystemd-network/arp-util.h', | |
979 | 'src/systemd/sd-ipv4ll.h'], | |
980 | [libshared, | |
981 | libsystemd_network], | |
982 | []], | |
983 | ||
984 | [['src/libsystemd-network/test-ipv4ll-manual.c', | |
985 | 'src/systemd/sd-ipv4ll.h'], | |
986 | [libshared, | |
987 | libsystemd_network], | |
988 | [], | |
989 | '', 'manual'], | |
990 | ||
991 | [['src/libsystemd-network/test-acd.c', | |
992 | 'src/systemd/sd-ipv4acd.h'], | |
993 | [libshared, | |
994 | libsystemd_network], | |
995 | [], | |
996 | '', 'manual'], | |
997 | ||
998 | [['src/libsystemd-network/test-ndisc-rs.c', | |
999 | 'src/libsystemd-network/dhcp-identifier.h', | |
1000 | 'src/libsystemd-network/dhcp-identifier.c', | |
1001 | 'src/libsystemd-network/icmp6-util.h', | |
1002 | 'src/systemd/sd-dhcp6-client.h', | |
1003 | 'src/systemd/sd-ndisc.h'], | |
1004 | [libshared, | |
34ce0a52 | 1005 | libsystemd_network], |
37efbbd8 ZJS |
1006 | []], |
1007 | ||
4a24ba71 ZJS |
1008 | [['src/libsystemd-network/test-ndisc-ra.c', |
1009 | 'src/libsystemd-network/icmp6-util.h', | |
1010 | 'src/systemd/sd-ndisc.h'], | |
1011 | [libshared, | |
1012 | libsystemd_network], | |
1013 | []], | |
1014 | ||
37efbbd8 ZJS |
1015 | [['src/libsystemd-network/test-dhcp6-client.c', |
1016 | 'src/libsystemd-network/dhcp-identifier.h', | |
1017 | 'src/libsystemd-network/dhcp-identifier.c', | |
1018 | 'src/libsystemd-network/dhcp6-internal.h', | |
1019 | 'src/systemd/sd-dhcp6-client.h'], | |
1020 | [libshared, | |
34ce0a52 | 1021 | libsystemd_network], |
37efbbd8 ZJS |
1022 | []], |
1023 | ||
1024 | [['src/libsystemd-network/test-lldp.c'], | |
1025 | [libshared, | |
1026 | libsystemd_network], | |
1027 | []], | |
1028 | ] | |
69e96427 ZJS |
1029 | |
1030 | ############################################################ | |
1031 | ||
1032 | tests += [ | |
37efbbd8 ZJS |
1033 | [['src/login/test-login-shared.c'], |
1034 | [], | |
1035 | []], | |
1036 | ||
1037 | [['src/login/test-inhibit.c'], | |
1038 | [], | |
1039 | [], | |
1040 | '', 'manual'], | |
1041 | ||
1042 | [['src/login/test-login-tables.c'], | |
1043 | [liblogind_core, | |
34ce0a52 | 1044 | libshared], |
37efbbd8 ZJS |
1045 | [threads]], |
1046 | ] |