diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-05-17 03:04:37 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-05-17 10:24:18 +0200 |
commit | 514458604b29663bc02c9d0e310f06e0ed682ae9 (patch) | |
tree | 741fe32a89df436f83c630371c3ce7d79ef15c38 /test | |
parent | test: wait for sessions being closed (diff) | |
download | systemd-514458604b29663bc02c9d0e310f06e0ed682ae9.tar.xz systemd-514458604b29663bc02c9d0e310f06e0ed682ae9.zip |
test: dynamically generate list of test cases
Follow-up for #32666.
Diffstat (limited to 'test')
-rw-r--r-- | test/TEST-85-NETWORK/meson.build | 29 |
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), |