1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#!/usr/bin/env bash
. ./wvtest-bup.sh || exit $?
set -o pipefail
top="$(WVPASS pwd)" || exit $?
tmpdir="$(WVPASS wvmktempdir)" || exit $?
export BUP_DIR="$tmpdir/bup"
export GIT_DIR="$tmpdir/bup"
bup() { "$top/bup" "$@"; }
WVSTART "half hour TZ"
export TZ=ACDT-10:30
WVPASS bup init
WVPASS cd "$tmpdir"
WVPASS mkdir src
WVPASS bup index src
WVPASS bup save -n src -d 1420164180 src
WVPASSEQ "$(WVPASS git cat-file commit src | sed -ne 's/^author .*> //p')" \
"1420164180 +1030"
WVPASSEQ "$(WVPASS bup ls /src)" \
"2015-01-02-123300
latest"
WVPASS rm -rf "$tmpdir"
|