]> arthur.barton.de Git - bup.git/blobdiff - t/test-help
test-help: restrict MANPATH; only test manpages when available
[bup.git] / t / test-help
index a68b5a0a44053c6926c0022f19b5a99ab49b6539..56806a7475e7d9c40415dfb5b740d86a83a783ff 100755 (executable)
@@ -21,6 +21,15 @@ 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)')