]> arthur.barton.de Git - bup.git/blobdiff - t/test-save-smaller
Update base_version to 0.34~ for 0.34 development
[bup.git] / t / test-save-smaller
diff --git a/t/test-save-smaller b/t/test-save-smaller
deleted file mode 100755 (executable)
index 6e625e6..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/usr/bin/env bash
-. wvtest.sh
-. wvtest-bup.sh
-. t/lib.sh
-
-set -o pipefail
-
-top="$(WVPASS pwd)" || exit $?
-tmpdir="$(WVPASS wvmktempdir)" || exit $?
-export BUP_DIR="$tmpdir/bup"
-
-bup() { "$top/bup" "$@"; }
-
-WVPASS cd "$tmpdir"
-
-WVSTART "init"
-WVPASS bup init
-
-WVPASS mkdir "$tmpdir/save"
-WVPASS echo small0 > "$tmpdir/save/small"
-WVPASS echo bigbigbigbigbig01 > "$tmpdir/save/big1"
-big1sha="$(sha1sum < "$tmpdir/save/big1")"
-WVPASS bup index "$tmpdir/save"
-WVPASS bup save -vv -n test "$tmpdir/save"
-WVPASS mkdir "$tmpdir/restore1"
-WVPASS bup restore -v --outdir="$tmpdir/restore1/" "/test/latest$tmpdir/save/"
-WVPASS cmp "$tmpdir/restore1/small" "$tmpdir/save/small"
-WVPASS cmp "$tmpdir/restore1/big1" "$tmpdir/save/big1"
-
-WVSTART "save --smaller"
-WVPASS echo bigbigbigbigbig02 > "$tmpdir/save/big1"
-WVPASS echo bigbigbigbigbig03 > "$tmpdir/save/big2"
-WVPASS bup index "$tmpdir/save"
-WVPASS bup save -vv -n test --smaller=10 "$tmpdir/save"
-WVPASS mkdir "$tmpdir/restore2"
-WVPASS bup restore -v --outdir="$tmpdir/restore2/" "/test/latest$tmpdir/save/"
-WVPASS cmp "$tmpdir/restore2/small" "$tmpdir/save/small"
-# (per the original DESIGN document, we should've had the old version
-# of the modified large file, but really that isn't implemented)
-# must _not_ have this file at all
-WVFAIL test -f "$tmpdir/restore2/big1"
-# and not the new one either
-WVFAIL test -f "$tmpdir/restore2/big2"
-
-WVPASS rm -rf "$tmpdir"