]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Revert "test: dynamically generate list of test cases"
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 26 Mar 2025 12:18:40 +0000 (13:18 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 26 Mar 2025 13:40:14 +0000 (14:40 +0100)
We want to decouple the integration tests in meson from the
rest of the source files so the integration tests can be run
without the source files available. Let's revert the change to
dynamically figure out the test cases from the networkd tests for
now so that the tests can be generated without the test source file
being available.

This reverts commit 514458604b29663bc02c9d0e310f06e0ed682ae9.

test/TEST-85-NETWORK/meson.build

index 47ec02940ee616df7c0f7637048c91e7cd33b02e..223f2a231003c6878788fa4aaa72cc8e2ac8d14c 100644 (file)
@@ -9,14 +9,27 @@ unit = configure_file(
         },
 )
 
-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
+foreach testcase : [
+        'NetworkctlTests',
+        'NetworkdMatchTests',
+        'WaitOnlineTests',
+        'NetworkdNetDevTests',
+        'NetworkdL2TPTests',
+        'NetworkdNetworkTests',
+        'NetworkdTCTests',
+        'NetworkdStateFileTests',
+        'NetworkdBondTests',
+        'NetworkdBridgeTests',
+        'NetworkdSRIOVTests',
+        'NetworkdLLDPTests',
+        'NetworkdRATests',
+        'NetworkdDHCPServerTests',
+        'NetworkdDHCPServerRelayAgentTests',
+        'NetworkdDHCPClientTests',
+        'NetworkdDHCPPDTests',
+        'NetworkdIPv6PrefixTests',
+        'NetworkdMTUTests',
+]
         integration_tests += [
                 integration_test_template + {
                         'name' : '@0@-@1@'.format(name, testcase),