1# SPDX-License-Identifier: LGPL-2.1-or-later 2# 3# Puts together an nspawn container and runs networkd-test.py in it, inside a 4# network namespace and everything. Run this with 5# 6# mkosi -C test --default=mkosi.default.networkd-test boot 7# 8# This will start the test and eventually exit with success in case the test 9# succeeded. 10 11[Distribution] 12Distribution=fedora 13Release=33 14 15[Output] 16Format=raw_btrfs 17Bootable=yes 18OutputDirectory=../mkosi.output 19Output=networkd-test.raw 20 21[Partitions] 22RootSize=3G 23 24[Packages] 25BuildPackages= 26 audit-libs-devel 27 bzip2-devel 28 cryptsetup-devel 29 dbus-devel 30 diffutils 31 docbook-style-xsl 32 elfutils-devel 33 gcc 34 gettext 35 git 36 gnu-efi 37 gnu-efi-devel 38 gnutls-devel 39 gperf 40 hostname 41 iptables-devel 42 kmod-devel 43 libacl-devel 44 libblkid-devel 45 libcap-devel 46 libcurl-devel 47 libgcrypt-devel 48 libidn2-devel 49 libmicrohttpd-devel 50 libmount-devel 51 libseccomp-devel 52 libselinux-devel 53 libxkbcommon-devel 54 libxslt 55 lz4 56 lz4-devel 57 meson 58 ninja-build 59 pam-devel 60 pcre2-devel 61 perl(IPC::SysV) 62 perl(Time::HiRes) 63 pkgconfig 64 python3-devel 65 python3-lxml 66 qrencode-devel 67 tree 68 69Packages= 70 dnsmasq 71 iproute 72 libidn2 73 polkit 74 python3 75 76# Share caches with the top-level mkosi 77BuildDirectory=../mkosi/mkosi.builddir 78Cache=../mkosi/mkosi.cache 79 80# Run our own script 81BuildScript=mkosi.build.networkd-test 82 83BuildSources=.. 84NSpawnSettings=mkosi.nspawn.networkd-test 85