]> arthur.barton.de Git - bup.git/blob - t/test-command-without-init-fails.sh
3c5a0cd050c7545b9aed7fc638e9d12550941815
[bup.git] / t / test-command-without-init-fails.sh
1 #!/usr/bin/env bash
2 . ./wvtest-bup.sh
3
4 WVSTART 'all'
5
6 top="$(WVPASS pwd)" || exit $?
7 tmpdir="$(WVPASS wvmktempdir)" || exit $?
8
9 export BUP_DIR="$tmpdir/bup"
10
11 bup() { "$top/bup" "$@"; }
12
13 WVPASS mkdir "$tmpdir/foo"
14
15 bup index "$tmpdir/foo" &> /dev/null
16 index_rc=$?
17 WVPASSEQ "$index_rc" "15"
18
19 WVPASS rm -rf "$tmpdir"