From 0ced3cc3deac591ad80e8d5be58a1b7fd6ea70e1 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Wed, 20 Feb 2019 17:40:26 +0100 Subject: [PATCH] coverage.sh: add tests for --verbose, --debug and --quiet --- coverage.sh | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/coverage.sh b/coverage.sh index 0a1227f..5b23b7d 100755 --- a/coverage.sh +++ b/coverage.sh @@ -624,6 +624,54 @@ else ./run_null.sh SUDO fi +print_header "mode=root,variant=apt: --verbose" +cat << END > shared/test.sh +#!/bin/sh +set -eu +export LC_ALL=C.UTF-8 +$CMD --mode=root --variant=apt --verbose unstable /tmp/debian-unstable $mirror +tar -C /tmp/debian-unstable --one-file-system -c . | tar -t | sort > tar2.txt +diff -u tar1.txt tar2.txt +rm -r /tmp/debian-unstable +END +if [ "$HAVE_QEMU" = "yes" ]; then + ./run_qemu.sh +else + ./run_null.sh SUDO +fi + +print_header "mode=root,variant=apt: --debug" +cat << END > shared/test.sh +#!/bin/sh +set -eu +export LC_ALL=C.UTF-8 +$CMD --mode=root --variant=apt --debug unstable /tmp/debian-unstable $mirror +tar -C /tmp/debian-unstable --one-file-system -c . | tar -t | sort > tar2.txt +diff -u tar1.txt tar2.txt +rm -r /tmp/debian-unstable +END +if [ "$HAVE_QEMU" = "yes" ]; then + ./run_qemu.sh +else + ./run_null.sh SUDO +fi + +print_header "mode=root,variant=apt: --quiet" +cat << END > shared/test.sh +#!/bin/sh +set -eu +export LC_ALL=C.UTF-8 +$CMD --mode=root --variant=apt --quiet unstable /tmp/debian-unstable $mirror +tar -C /tmp/debian-unstable --one-file-system -c . | tar -t | sort > tar2.txt +diff -u tar1.txt tar2.txt +rm -r /tmp/debian-unstable +END +if [ "$HAVE_QEMU" = "yes" ]; then + ./run_qemu.sh +else + ./run_null.sh SUDO +fi + # test all variants for variant in essential apt required minbase buildd important debootstrap - standard; do