From 316f909a1eb01f054eeeb50f1d8f2bb477181323 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Fri, 25 Jan 2019 12:49:58 +0100 Subject: [PATCH] coverage.sh: test target directory with empty lost+found --- coverage.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/coverage.sh b/coverage.sh index 7dff431..702850a 100755 --- a/coverage.sh +++ b/coverage.sh @@ -251,6 +251,25 @@ else ./run_null.sh SUDO fi +print_header "mode=root,variant=apt: existing directory with lost+found" +cat << END > shared/test.sh +#!/bin/sh +set -eu +export LC_ALL=C.UTF-8 +mkdir /tmp/debian-unstable +mkdir /tmp/debian-unstable/lost+found +$CMD --mode=root --variant=apt unstable /tmp/debian-unstable $mirror +rmdir /tmp/debian-unstable/lost+found +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=unshare,variant=apt: create gzip compressed tarball" cat << END > shared/test.sh #!/bin/sh