2024-05-06 13:23:24 +00:00
|
|
|
# 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')
|
|
|
|
},
|
|
|
|
)
|
|
|
|
|
2024-05-17 01:04:37 +00:00
|
|
|
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
|
2024-05-06 13:23:24 +00:00
|
|
|
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)
|
|
|
|
],
|
2024-05-15 05:26:15 +00:00
|
|
|
'priority' : 10,
|
2024-05-28 13:56:47 +00:00
|
|
|
'vm' : true,
|
2024-05-06 13:23:24 +00:00
|
|
|
},
|
|
|
|
]
|
|
|
|
endforeach
|