1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00
systemd/test/TEST-85-NETWORK/meson.build
Daan De Meyer aa09f3078f 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.
2024-05-14 22:58:50 +02:00

43 lines
1.4 KiB
Meson

# 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