2 . ./wvtest-bup.sh || exit $?
3 . dev/lib.sh || exit $?
7 bup_make=$(< config/config.var/bup-make)
9 WVPASS git status > /dev/null
11 if ! git diff-index --quiet HEAD; then
12 WVDIE "uncommitted changes; cannot continue"
15 top="$(WVPASS pwd)" || exit $?
16 tmpdir="$(WVPASS wvmktempdir)" || exit $?
18 bup() { "$top/bup" "$@"; }
22 WVPASS git clone "$top" clone
24 for ver in 11.11 11.11.11; do
25 WVSTART "version $ver"
28 WVPASS git archive --prefix=bup-"$ver"/ -o "$tmpdir"/bup-"$ver".tgz "$ver"
30 WVPASS tar xzf bup-"$ver".tgz
33 WVPASSEQ "$ver" "$(./bup version)"
37 WVSTART 'make check in unpacked archive'
38 WVPASS cd bup-11.11.11
39 if ! "$bup_make" -j5 check > archive-tests.log 2>&1; then
40 cat archive-tests.log 1>&2
45 WVPASS rm -rf "$tmpdir"