From 70b33609ea7aa168e9a04c82ee7a6f648cae6da8 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Thu, 26 Sep 2019 23:31:08 +0200 Subject: [PATCH] coverage.sh: add test for armhf without qemu support --- coverage.sh | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/coverage.sh b/coverage.sh index a8f207c..4420bc9 100755 --- a/coverage.sh +++ b/coverage.sh @@ -48,7 +48,7 @@ if [ ! -e shared/mmdebstrap ] || [ mmdebstrap -nt shared/mmdebstrap ]; then fi starttime= -total=100 +total=101 i=1 print_header() { @@ -706,6 +706,25 @@ else ./run_null.sh SUDO 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 # - is not part of the native installation set # - does not have any dependencies