meson: make the second and third elements of tests or fuzzers optional

Then, we can shorten many test definitions.
This commit is contained in:
Yu Watanabe
2021-01-19 07:04:19 +09:00
parent 9aeec01e77
commit 5acb3cabd1
15 changed files with 225 additions and 560 deletions
+5 -9
View File
@@ -246,7 +246,6 @@ if conf.get('ENABLE_NETWORKD') == 1
libsystemd_network,
networkd_link_with],
[threads],
[],
network_include_dir],
[['src/network/fuzz-network-parser.c',
@@ -255,7 +254,6 @@ if conf.get('ENABLE_NETWORKD') == 1
libsystemd_network,
networkd_link_with],
[threads],
[],
network_include_dir],
]
@@ -263,14 +261,15 @@ if conf.get('ENABLE_NETWORKD') == 1
[['src/network/test-networkd-conf.c'],
[libnetworkd_core,
libsystemd_network],
[], '', '', [], network_include_dir],
[],
network_include_dir],
[['src/network/test-network.c'],
[libnetworkd_core,
libsystemd_network,
networkd_link_with],
[threads],
'', '', [], network_include_dir],
network_include_dir],
[['src/network/test-network-tables.c',
test_tables_h],
@@ -278,13 +277,10 @@ if conf.get('ENABLE_NETWORKD') == 1
libsystemd_network,
networkd_link_with],
[threads],
'', '', [],
[network_include_dir]],
network_include_dir],
[['src/network/generator/test-network-generator.c',
'src/network/generator/network-generator.c',
'src/network/generator/network-generator.h'],
[networkd_link_with],
[], '', '', [], network_include_dir],
'src/network/generator/network-generator.h']],
]
endif