summaryrefslogtreecommitdiff
path: root/src/nspawn
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2023-01-25 17:19:52 +0100
committerJan Janssen <medhefgo@web.de>2023-02-21 15:10:26 +0100
commit822cd3ff2579d6de8acd45d85d2b9d5f44048d5c (patch)
tree570148c87a6ea6f4cfcbe2b4db525684f3af9534 /src/nspawn
parentc12e10d785bfe70359a3ec4ae4666957c570c538 (diff)
downloadsystemd-822cd3ff2579d6de8acd45d85d2b9d5f44048d5c.tar.gz
meson: Use dicts for test definitions
Although this slightly more verbose it makes it much easier to reason about. The code that produces the tests heavily benefits from this. Test lists are also now sorted by test name.
Diffstat (limited to 'src/nspawn')
-rw-r--r--src/nspawn/meson.build40
1 files changed, 25 insertions, 15 deletions
diff --git a/src/nspawn/meson.build b/src/nspawn/meson.build
index 36f0a92686..9d6bc21bbf 100644
--- a/src/nspawn/meson.build
+++ b/src/nspawn/meson.build
@@ -39,21 +39,31 @@ systemd_nspawn_sources = files('nspawn.c')
############################################################
tests += [
- [files('test-nspawn-tables.c'),
- [libnspawn_core,
- libshared],
- [libseccomp]],
-
- [files('test-nspawn-util.c'),
- [libnspawn_core,
- libshared],
- [libseccomp]],
-
- [files('test-patch-uid.c'),
- [libnspawn_core,
- libshared],
- [libacl],
- [], '', 'manual'],
+ {
+ 'sources' : files('test-nspawn-tables.c'),
+ 'link_with' : [
+ libnspawn_core,
+ libshared,
+ ],
+ 'dependencies' : libseccomp,
+ },
+ {
+ 'sources' : files('test-nspawn-util.c'),
+ 'link_with' : [
+ libnspawn_core,
+ libshared,
+ ],
+ 'dependencies' : libseccomp,
+ },
+ {
+ 'sources' : files('test-patch-uid.c'),
+ 'link_with' : [
+ libnspawn_core,
+ libshared,
+ ],
+ 'dependencies' : libacl,
+ 'type' : 'manual',
+ },
]
fuzzers += [