Skip to content

Test cases for systemd-networkd #1386

Open
@haraldh

Description

@haraldh

Would be cool to introduce the test cases like for NM:

test/TEST-21-NFS-NM/Makefile
test/TEST-31-ISCSI-NM/Makefile
test/TEST-36-ISCSI-MULTI-NM/Makefile
test/TEST-41-NBD-NM/Makefile
test/TEST-51-MULTINIC-NM/Makefile
test/TEST-61-BONDBRIDGEVLANIFCFG-NM/Makefile

with networkd... relevant code changes:

diff --git a/test/TEST-20-NFS/test.sh b/test/TEST-20-NFS/test.sh
index 5a46f3d5..868f62b8 100755
--- a/test/TEST-20-NFS/test.sh
+++ b/test/TEST-20-NFS/test.sh
@@ -2,10 +2,13 @@
 
 if [[ $NM ]]; then
     USE_NETWORK="network-manager"
-    OMIT_NETWORK="network-legacy"
+    OMIT_NETWORK="network-legacy systemd-networkd"
+elif [[ $SNWD ]]; then
+    USE_NETWORK="systemd-networkd"
+    OMIT_NETWORK="network-legacy network-manager"
 else
     USE_NETWORK="network-legacy"
-    OMIT_NETWORK="network-manager"
+    OMIT_NETWORK="network-manager systemd-networkd"
 fi

also for

test/TEST-30-ISCSI/test.sh
test/TEST-35-ISCSI-MULTI/test.sh
test/TEST-40-NBD/test.sh
test/TEST-50-MULTINIC/test.sh
test/TEST-60-BONDBRIDGEVLANIFCFG/test.sh

Maybe refactor things into test/test-functions

Originally posted by @haraldh in #1348 (comment)

Metadata

Metadata

Assignees

Labels

systemd-networkdIssues related to the systemd-networkd moduletestIssues related to testing

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions