]> git.cworth.org Git - notmuch/blobdiff - test/T010-help-test.sh
Merge tag 'debian/0.18.1-2' into wheezy-backports
[notmuch] / test / T010-help-test.sh
diff --git a/test/T010-help-test.sh b/test/T010-help-test.sh
new file mode 100755 (executable)
index 0000000..77410bc
--- /dev/null
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+test_description="online help"
+. ./test-lib.sh
+
+test_expect_success 'notmuch --help' 'notmuch --help'
+test_expect_success 'notmuch help' 'notmuch help'
+test_expect_success 'notmuch --version' 'notmuch --version'
+
+if ${TEST_DIRECTORY}/have-man; then
+    test_expect_success 'notmuch --help tag' 'notmuch --help tag'
+    test_expect_success 'notmuch help tag' 'notmuch help tag'
+else
+    test_expect_success 'notmuch --help tag (man pages not available)' \
+       'test_must_fail notmuch --help tag'
+    test_expect_success 'notmuch help tag (man pages not available)' \
+       'test_must_fail notmuch help tag'
+fi
+
+test_done