2 . ./wvtest-bup.sh || exit $?
6 top="$(WVPASS pwd)" || exit $?
7 tmpdir="$(WVPASS wvmktempdir)" || exit $?
9 export BUP_DIR="$tmpdir/bup"
10 export GIT_DIR="$tmpdir/bup"
12 bup() { "$top/bup" "$@"; }
14 if ! [ "$(type -p duplicity)" != "" ]; then
16 echo "Cannot find duplicity; skipping test)" 1>&2
20 export PASSPHRASE=bup_duplicity_passphrase
22 WVSTART "import-duplicity"
25 WVPASS mkdir duplicity
26 WVPASS duplicity "$top/Documentation" "file://duplicity"
28 WVPASS duplicity "$top/Documentation" "file://duplicity"
29 WVPASS bup import-duplicity "file://duplicity" import-duplicity
30 WVPASSEQ "$(bup ls import-duplicity/ | wc -l)" "3"
31 WVPASSEQ "$(bup ls import-duplicity/latest/ | sort)" "$(ls $top/Documentation | sort)"
33 WVPASS rm -rf "$tmpdir"