#!/bin/sh set -eu # Some simple tests of the initramfs network configuration. # The basic idea is to make an ext2 root image that only ships a /sbin/init to # just gather some data and shutdown again and boot it in qemu system # emulation (not KVM, so it can be run in the autopkgtest architecture without # hoping nested kvm works). Currently it only sets up qemu user networking # which limits our ability to be clever. In the long run we should set up a # tun and a bridge and specify the mac address of the NICs in the emulated # system and run dnsmasq on it so we test ipv6 and can control which ips which # nics get and so on -- but this is still better than nothing. # TODO: Add a test case for classless static routes. This needs support in # Qemu first. Following patch should be refreshed: # https://lore.kernel.org/all/20180314190814.22631-1-benjamin.drung@profitbricks.com/ SUPPORTED_FLAVOURS='amd64 arm64 armmp powerpc64 s390x generic' ROOTDISK_QEMU_IF=virtio ROOTDISK_LINUX_NAME=vda . debian/tests/test-common cat >>"${CONFDIR}/initramfs.conf" <"${CONFDIR}/modules" <