From 822cd3ff2579d6de8acd45d85d2b9d5f44048d5c Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Wed, 25 Jan 2023 17:19:52 +0100 Subject: 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. --- src/nspawn/meson.build | 40 +++++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 15 deletions(-) (limited to 'src/nspawn') 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 += [ -- cgit v1.2.1