summaryrefslogtreecommitdiffstats
path: root/test/TEST-85-NETWORK
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 03:50:45 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 03:50:45 +0000
commitefeb864cb547a2cbf96dc0053a8bdb4d9190b364 (patch)
treec0b83368f18be983fcc763200c4c24d633244588 /test/TEST-85-NETWORK
parentReleasing progress-linux version 255.5-1~progress7.99u1. (diff)
downloadsystemd-efeb864cb547a2cbf96dc0053a8bdb4d9190b364.tar.xz
systemd-efeb864cb547a2cbf96dc0053a8bdb4d9190b364.zip
Merging upstream version 256.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/TEST-85-NETWORK')
-rw-r--r--test/TEST-85-NETWORK/Makefile6
-rw-r--r--test/TEST-85-NETWORK/meson.build31
2 files changed, 37 insertions, 0 deletions
diff --git a/test/TEST-85-NETWORK/Makefile b/test/TEST-85-NETWORK/Makefile
new file mode 100644
index 0000000..653f161
--- /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 0000000..47ec029
--- /dev/null
+++ b/test/TEST-85-NETWORK/meson.build
@@ -0,0 +1,31 @@
+# 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')
+ },
+)
+
+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
+ 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)
+ ],
+ 'priority' : 10,
+ 'vm' : true,
+ },
+ ]
+endforeach