diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-05-06 15:23:24 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-05-14 22:58:50 +0200 |
commit | aa09f3078f48f33c8e0d9c234c2593aad5eb5349 (patch) | |
tree | 5888e38612453ebbf49ea0ed3aad492ac9e23027 /test/TEST-85-NETWORK | |
parent | test: Allow using TEST_MATCH_TESTCASE with systemd-networkd-tests.py (diff) | |
download | systemd-aa09f3078f48f33c8e0d9c234c2593aad5eb5349.tar.xz systemd-aa09f3078f48f33c8e0d9c234c2593aad5eb5349.zip |
test: Add TEST-85-NETWORK to run systemd-networkd-tests.py
This adds a testsuite unit to run systemd-networkd-tests.py. This is
mkosi only for now as python is not available in the images set up
by the bash framework. We give the test a lower priority as it takes
a while to run so we want to start it as soon as possible.
Diffstat (limited to 'test/TEST-85-NETWORK')
-rw-r--r-- | test/TEST-85-NETWORK/Makefile | 6 | ||||
-rw-r--r-- | test/TEST-85-NETWORK/meson.build | 42 |
2 files changed, 48 insertions, 0 deletions
diff --git a/test/TEST-85-NETWORK/Makefile b/test/TEST-85-NETWORK/Makefile new file mode 100644 index 0000000000..653f16163f --- /dev/null +++ b/test/TEST-85-NETWORK/Makefile @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +all setup run clean clean-again: + true + +.PHONY: all setup run clean clean-again diff --git a/test/TEST-85-NETWORK/meson.build b/test/TEST-85-NETWORK/meson.build new file mode 100644 index 0000000000..95b91f77df --- /dev/null +++ b/test/TEST-85-NETWORK/meson.build @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +name = fs.name(meson.current_source_dir()) +unit = configure_file( + input : files('../test.service.in'), + output : '@0@.service'.format(name), + configuration : integration_test_template['configuration'] + { + 'command' : '@0@ --no-journal'.format(testdata_dir / 'test-network/systemd-networkd-tests.py') + }, +) + +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), + 'unit' : unit, + 'cmdline' : integration_test_template['cmdline'] + [ + 'systemd.setenv=TEST_MATCH_TESTCASE=@0@'.format(testcase) + ], + }, + ] +endforeach |