forked from josch/mmdebstrap
coverage.sh: test target directory with empty lost+found
This commit is contained in:
parent
9b3e2bce8d
commit
316f909a1e
1 changed files with 19 additions and 0 deletions
19
coverage.sh
19
coverage.sh
|
@ -251,6 +251,25 @@ else
|
||||||
./run_null.sh SUDO
|
./run_null.sh SUDO
|
||||||
fi
|
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"
|
print_header "mode=unshare,variant=apt: create gzip compressed tarball"
|
||||||
cat << END > shared/test.sh
|
cat << END > shared/test.sh
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
Loading…
Reference in a new issue