]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Support running systemd-networkd-tests.py in QEMU
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 15 Feb 2022 18:02:36 +0000 (18:02 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 15 Feb 2022 22:11:39 +0000 (22:11 +0000)
This commit adds the necessary packages for Fedora and Arch.

mkosi.default.d/arch/10-mkosi.arch
mkosi.default.d/fedora/10-mkosi.fedora
test/test-network/systemd-networkd-tests.py

index 19bc45a8d7dbbbecb7eca2e1a412c3985d011df3..0458889b505a1a11e9dc701252bd699498ef5106 100644 (file)
@@ -63,3 +63,8 @@ Packages=
         # For testing systemd's zsh completion scripts
         # Run `autoload -Uz compinit; compinit` from a zsh shell in the booted image to enable completions.
         zsh
+        # Required to run systemd-networkd-tests.py
+        iproute
+        dnsmasq
+        wireguard-tools
+        dhcp
index d68405e91ba806c16750284d91e26f1c5d56753d..48864315dc36a75c2869188e40d1a67b6c1cfa77 100644 (file)
@@ -75,3 +75,10 @@ Packages=
         netcat
         e2fsprogs
         compsize
+        # Required to run systemd-networkd-tests.py
+        iproute
+        iproute-tc
+        dnsmasq
+        wireguard-tools
+        dhcp-server
+        kernel-modules-extra
index a778652a8eab5b4d4753ca706f141730f9ec12aa..4f43e43afb0a534b7adf24cdaccc6490373b12ee 100755 (executable)
@@ -5,6 +5,9 @@
 # pylint: disable=missing-function-docstring,missing-class-docstring,missing-module-docstring
 # systemd-networkd tests
 
+# These tests can be executed in the systemd mkosi image when booted in QEMU. After booting the QEMU VM,
+# simply run this file which can be found in the VM at /root/src/test/test-network/systemd-networkd-tests.py.
+
 import argparse
 import errno
 import itertools