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.
This commit is contained in:
Jan Janssen
2023-02-21 15:10:26 +01:00
parent c12e10d785
commit 822cd3ff25
24 changed files with 824 additions and 765 deletions
+25 -15
View File
@@ -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 += [