From: Rob Browning Date: Sun, 8 Mar 2015 21:02:28 +0000 (-0500) Subject: test-fsck.sh: use stable data for tests X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=abbcd2d33b886d67181f371f258baa8835a36247;p=packages%2Fb%2Fbup.git test-fsck.sh: use stable data for tests Use a stable install tree plus t/sampledata (for some variety) for the test data, instead of "whatever's in ./lib, ./Documentation, and ./cmd". Signed-off-by: Rob Browning Tested-by: Rob Browning --- diff --git a/t/test-fsck.sh b/t/test-fsck.sh index d902331..27f103a 100755 --- a/t/test-fsck.sh +++ b/t/test-fsck.sh @@ -6,20 +6,24 @@ set -o pipefail top="$(WVPASS pwd)" || exit $? tmpdir="$(WVPASS wvmktempdir)" || exit $? +bup() { "$top/bup" "$@"; } + +WVPASS make install DESTDIR="$tmpdir/src" +WVPASS cp -a "$top/t/sampledata" "$tmpdir/src/" + export BUP_DIR="$tmpdir/bup" export GIT_DIR="$tmpdir/bup" -bup() { "$top/bup" "$@"; } - WVPASS bup init WVPASS cd "$tmpdir" WVSTART "fsck" -WVPASS bup index "$top" -WVPASS bup save -n fsck-test "$top/lib" -WVPASS bup save -n fsck-test "$top/Documentation" -WVPASS bup save -n fsck-test "$top/cmd" +WVPASS bup index src +WVPASS bup save -n fsck-test src/sampledata +WVPASS bup save -n fsck-test src/usr/bin +WVPASS bup save -n fsck-test src/usr/lib +WVPASS bup save -n fsck-test src/usr/share WVPASS bup fsck WVPASS bup fsck --quick if bup fsck --par2-ok; then