From: David Bremner <bremner@debian.org>
Date: Fri, 25 Nov 2011 17:28:11 +0000 (-0500)
Subject: test: add simple tests for online help
X-Git-Tag: debian/0.10.1-1
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=9e79d5c1ddb78bae4d9bb60d57f68969aee6a3a1;p=notmuch-old

test: add simple tests for online help

Nothing fancy, but we can at least detect segmentation faults.
---

diff --git a/test/help-test b/test/help-test
new file mode 100755
index 00000000..9f4b9c79
--- /dev/null
+++ b/test/help-test
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+test_description="online help"
+. test-lib.sh
+
+test_expect_success 'notmuch --help' 'notmuch --help'
+test_expect_success 'notmuch --help tag' 'notmuch --help tag'
+test_expect_success 'notmuch help' 'notmuch help'
+test_expect_success 'notmuch help tag' 'notmuch help tag'
+test_expect_success 'notmuch --version' 'notmuch --version'
+
+test_done
diff --git a/test/notmuch-test b/test/notmuch-test
index adfd589f..5aced5ce 100755
--- a/test/notmuch-test
+++ b/test/notmuch-test
@@ -18,6 +18,7 @@ cd $(dirname "$0")
 
 TESTS="
   basic
+  help-test
   new
   count
   search