From 6032561e9b12b99fa51b4b38bdeee7f831adcaee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 3 Jun 2024 07:43:00 +0200 Subject: Adding debian version 0.143. Signed-off-by: Daniel Baumann --- debian/tests/qemu-separate-usr | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 debian/tests/qemu-separate-usr (limited to 'debian/tests/qemu-separate-usr') diff --git a/debian/tests/qemu-separate-usr b/debian/tests/qemu-separate-usr new file mode 100755 index 0000000..9a252f6 --- /dev/null +++ b/debian/tests/qemu-separate-usr @@ -0,0 +1,37 @@ +#!/bin/sh -e + +SUPPORTED_FLAVOURS='amd64 arm64 armmp powerpc64 s390x generic' +ROOTDISK_QEMU_IF=virtio +ROOTDISK_LINUX_NAME=vda +USRDISK="$(mktemp)" +USRDISK_QEMU_IF=virtio +USRDISK_LINUX_NAME=vdb +. debian/tests/test-common + +cat >>"${CONFDIR}/initramfs.conf" <"${CONFDIR}/modules" < "${ROOTDIR}/etc/fstab" "/dev/${USRDISK_LINUX_NAME} /usr ext2 defaults 0 2" +USRDIR="$(mktemp -d)" +mv "${ROOTDIR}/usr/"* "${USRDIR}" + +build_rootfs_ext2 +build_fs_ext2 "${USRDIR}" "${USRDISK}" + +run_qemu +check_no_network_configuration + +# Check that fsck ran on both devices +grep -q "^/dev/${ROOTDISK_LINUX_NAME}: clean," "${OUTPUT}" +grep -q "^/dev/${USRDISK_LINUX_NAME}: clean," "${OUTPUT}" -- cgit v1.2.3