From: Daan De Meyer Date: Tue, 15 Feb 2022 18:02:36 +0000 (+0000) Subject: mkosi: Support running systemd-networkd-tests.py in QEMU X-Git-Tag: v251-rc1~285^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f1853e230944631eab10633d88770d6de039b22;p=thirdparty%2Fsystemd.git mkosi: Support running systemd-networkd-tests.py in QEMU This commit adds the necessary packages for Fedora and Arch. --- diff --git a/mkosi.default.d/arch/10-mkosi.arch b/mkosi.default.d/arch/10-mkosi.arch index 19bc45a8d7d..0458889b505 100644 --- a/mkosi.default.d/arch/10-mkosi.arch +++ b/mkosi.default.d/arch/10-mkosi.arch @@ -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 diff --git a/mkosi.default.d/fedora/10-mkosi.fedora b/mkosi.default.d/fedora/10-mkosi.fedora index d68405e91ba..48864315dc3 100644 --- a/mkosi.default.d/fedora/10-mkosi.fedora +++ b/mkosi.default.d/fedora/10-mkosi.fedora @@ -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 diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index a778652a8ea..4f43e43afb0 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -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