summaryrefslogtreecommitdiffstats
path: root/test/TEST-85-NETWORK
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-05-17 03:04:37 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-05-17 10:24:18 +0200
commit514458604b29663bc02c9d0e310f06e0ed682ae9 (patch)
tree741fe32a89df436f83c630371c3ce7d79ef15c38 /test/TEST-85-NETWORK
parenttest: wait for sessions being closed (diff)
downloadsystemd-514458604b29663bc02c9d0e310f06e0ed682ae9.tar.xz
systemd-514458604b29663bc02c9d0e310f06e0ed682ae9.zip
test: dynamically generate list of test cases
Follow-up for #32666.
Diffstat (limited to 'test/TEST-85-NETWORK')
-rw-r--r--test/TEST-85-NETWORK/meson.build29
1 files changed, 8 insertions, 21 deletions
diff --git a/test/TEST-85-NETWORK/meson.build b/test/TEST-85-NETWORK/meson.build
index 44f75ca208..629275883c 100644
--- a/test/TEST-85-NETWORK/meson.build
+++ b/test/TEST-85-NETWORK/meson.build
@@ -9,27 +9,14 @@ unit = configure_file(
},
)
-foreach testcase : [
- 'NetworkctlTests',
- 'NetworkdMatchTests',
- 'WaitOnlineTests',
- 'NetworkdNetDevTests',
- 'NetworkdL2TPTests',
- 'NetworkdNetworkTests',
- 'NetworkdTCTests',
- 'NetworkdStateFileTests',
- 'NetworkdBondTests',
- 'NetworkdBridgeTests',
- 'NetworkdSRIOVTests',
- 'NetworkdLLDPTests',
- 'NetworkdRATests',
- 'NetworkdDHCPServerTests',
- 'NetworkdDHCPServerRelayAgentTests',
- 'NetworkdDHCPClientTests',
- 'NetworkdDHCPPDTests',
- 'NetworkdIPv6PrefixTests',
- 'NetworkdMTUTests',
-]
+systemd_networkd_tests_py = files('../test-network/systemd-networkd-tests.py')
+network_testcases = run_command('sed',
+ '-ne',
+ '/^class .*Tests/ { s/^class *//; s/(.*$//; p}',
+ systemd_networkd_tests_py,
+ check : true).stdout().split()
+
+foreach testcase : network_testcases
integration_tests += [
integration_test_template + {
'name' : '@0@-@1@'.format(name, testcase),