coverage.sh: add test for removal of start-stop-daemon and policy-rc.d in hook

This commit is contained in:
Johannes 'josch' Schauer 2019-10-28 14:31:46 +01:00
parent e0732140c0
commit c403b2b238
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -52,7 +52,7 @@ if [ ! -e shared/mmdebstrap ] || [ mmdebstrap -nt shared/mmdebstrap ]; then
fi
starttime=
total=106
total=107
i=1
print_header() {
@ -1196,6 +1196,23 @@ else
./run_null.sh
fi
print_header "mode=$defaultmode,variant=apt: remove start-stop-daemon and policy-rc.d in hook"
cat << END > shared/test.sh
#!/bin/sh
set -eu
export LC_ALL=C.UTF-8
$CMD --mode=$defaultmode --variant=apt --customize-hook='rm "\$1/usr/sbin/policy-rc.d"; rm "\$1/sbin/start-stop-daemon"' $DEFAULT_DIST /tmp/debian-chroot.tar $mirror
tar -tf /tmp/debian-chroot.tar | sort | diff -u tar1.txt -
rm /tmp/debian-chroot.tar
END
if [ "$HAVE_QEMU" = "yes" ]; then
./run_qemu.sh
elif [ "$defaultmode" = "root" ]; then
./run_null.sh SUDO
else
./run_null.sh
fi
# test all variants
for variant in essential apt required minbase buildd important debootstrap - standard; do