summaryrefslogtreecommitdiffstats
path: root/debian/tests/qemu-busybox
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 05:43:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 05:43:00 +0000
commit6032561e9b12b99fa51b4b38bdeee7f831adcaee (patch)
tree30d9958682cf814635ba3fcfe6457463fed91383 /debian/tests/qemu-busybox
parentAdding upstream version 0.143. (diff)
downloadinitramfs-tools-6032561e9b12b99fa51b4b38bdeee7f831adcaee.tar.xz
initramfs-tools-6032561e9b12b99fa51b4b38bdeee7f831adcaee.zip
Adding debian version 0.143.debian/0.143debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/qemu-busybox')
-rwxr-xr-xdebian/tests/qemu-busybox21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/tests/qemu-busybox b/debian/tests/qemu-busybox
new file mode 100755
index 0000000..c29c41f
--- /dev/null
+++ b/debian/tests/qemu-busybox
@@ -0,0 +1,21 @@
+#!/bin/sh -e
+
+# The qemu machines on arm64 and ppc64el are too slow for MODULES=most.
+SUPPORTED_FLAVOURS='amd64 armmp s390x generic'
+. debian/tests/test-common
+
+cat >>"${CONFDIR}/initramfs.conf" <<EOF
+MODULES=most
+BUSYBOX=y
+FSTYPE=ext2
+EOF
+build_initramfs
+lsinitramfs "${INITRAMFS}" | grep -qw busybox
+
+build_rootfs_ext2
+
+run_qemu
+check_no_network_configuration
+
+# Check that fsck ran
+grep -q "^/dev/${ROOTDISK_LINUX_NAME}: clean," "${OUTPUT}"