2 . ./wvtest-bup.sh || exit $?
4 . config/config.vars.sh
8 WVPASS git status > /dev/null
10 if ! git diff-index --quiet HEAD; then
11 WVDIE "uncommitted changes; cannot continue"
14 top="$(WVPASS pwd)" || exit $?
15 tmpdir="$(WVPASS wvmktempdir)" || exit $?
17 bup() { "$top/bup" "$@"; }
21 WVPASS git clone "$top" clone
23 for ver in 11.11 11.11.11; do
24 WVSTART "version $ver"
27 WVPASS git archive --prefix=bup-"$ver"/ -o "$tmpdir"/bup-"$ver".tgz "$ver"
29 WVPASS tar xzf bup-"$ver".tgz
32 WVPASSEQ "$ver" "$(./bup version)"
36 WVSTART 'make check in unpacked archive'
37 WVPASS cd bup-11.11.11
38 if ! "$bup_make" -j5 check > archive-tests.log 2>&1; then
39 cat archive-tests.log 1>&2
44 WVPASS rm -rf "$tmpdir"