Skip to content

Commit

Permalink
test: Add TEST-85-NETWORK to run systemd-networkd-tests.py
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DaanDeMeyer committed May 14, 2024
1 parent 5a17392 commit 5fe75f0
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
42 changes: 42 additions & 0 deletions test/TEST-85-NETWORK/meson.build
Original file line number Diff line number Diff line change
@@ -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 : '@[email protected]'.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
1 change: 1 addition & 0 deletions test/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ foreach dirname : [
'TEST-82-SOFTREBOOT',
'TEST-83-BTRFS',
'TEST-84-STORAGETM',
'TEST-85-NETWORK',
]
subdir(dirname)
endforeach
Expand Down

0 comments on commit 5fe75f0

Please sign in to comment.