]> arthur.barton.de Git - bup.git/blobdiff - t/test-help
tests: move all tests to test/
[bup.git] / t / test-help
diff --git a/t/test-help b/t/test-help
deleted file mode 100755 (executable)
index 56806a7..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env bash
-. ./wvtest-bup.sh
-
-set -o pipefail
-
-top="$(WVPASS pwd)" || exit $?
-tmpdir="$(WVPASS wvmktempdir)" || exit $?
-export BUP_DIR="$tmpdir/bup"
-export GIT_DIR="$tmpdir/bup"
-
-bup() { "$top/bup" "$@"; }
-
-# FIXME: send help to stdout if requested (exit 0), stderr on error
-# (exit nonzero)
-
-bup -?
-rc=$?
-WVPASSEQ 99 "$rc"
-
-bup --help
-rc=$?
-WVPASSEQ 99 "$rc"
-
-if ! test -e Documentation/bup-save.1; then
-    WVPASS rm -rf "$tmpdir"
-    exit 0
-fi
-
-mkdir -p "$tmpdir/man"
-(cd "$tmpdir/man" && ln -s "$top/Documentation" man1)
-export MANPATH="$tmpdir/man"
-
-WVPASS bup help save
-WVPASS bup save --help
-WVPASSEQ 1 $(bup help save | head -1 | grep -cF 'bup-save(1)')
-WVPASSEQ 1 $(bup save --help | head -1 | grep -cF 'bup-save(1)')
-
-WVPASS rm -rf "$tmpdir"