coverage.sh: add test for armhf without qemu support

This commit is contained in:
Johannes 'josch' Schauer 2019-09-26 23:31:08 +02:00
parent 39503bd0af
commit 70b33609ea
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -48,7 +48,7 @@ if [ ! -e shared/mmdebstrap ] || [ mmdebstrap -nt shared/mmdebstrap ]; then
fi fi
starttime= starttime=
total=100 total=101
i=1 i=1
print_header() { print_header() {
@ -706,6 +706,25 @@ else
./run_null.sh SUDO ./run_null.sh SUDO
fi fi
print_header "mode=$defaultmode,variant=apt: test armhf without qemu support"
cat << END > shared/test.sh
#!/bin/sh
set -eu
export LC_ALL=C.UTF-8
apt-get remove --yes qemu-user-static binfmt-support qemu-user
ret=0
$CMD --mode=$defaultmode --variant=apt --architectures=armhf $DEFAULT_DIST /tmp/debian-chroot.tar $mirror || ret=\$?
if [ "\$ret" = 0 ]; then
echo expected failure but got exit \$ret
exit 1
fi
END
if [ "$HAVE_QEMU" = "yes" ]; then
./run_qemu.sh
else
echo "HAVE_QEMU != yes -- Skipping test..."
fi
# to test foreign architecture package installation we choose a package which # to test foreign architecture package installation we choose a package which
# - is not part of the native installation set # - is not part of the native installation set
# - does not have any dependencies # - does not have any dependencies