]> arthur.barton.de Git - bup.git/blob - t/test-main.sh
test-restore-map-owner: accommodate python 3 and test there
[bup.git] / t / test-main.sh
1 #!/usr/bin/env bash
2 . wvtest-bup.sh || exit $?
3 . t/lib.sh || exit $?
4
5 set -o pipefail
6
7 TOP="$(WVPASS pwd)" || exit $?
8 tmpdir="$(WVPASS wvmktempdir)" || exit $?
9 export BUP_DIR="$tmpdir/bup"
10
11 bup()
12 {
13     "$TOP/bup" "$@"
14 }
15
16 WVSTART 'main'
17
18 bup
19 rc=$?
20 WVPASSEQ "$rc" 99
21
22 WVPASS rm -r "$tmpdir"