From c403b2b23803c252b3c4363200b9b59302ba882b Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Mon, 28 Oct 2019 14:31:46 +0100 Subject: [PATCH] coverage.sh: add test for removal of start-stop-daemon and policy-rc.d in hook --- coverage.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/coverage.sh b/coverage.sh index d974729..2b3508e 100755 --- a/coverage.sh +++ b/coverage.sh @@ -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