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:
+25
-15
@@ -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 += [
|
||||
|
||||
Reference in New Issue
Block a user