[PATCH] test: add simple tests for online help
David Bremner
david at tethera.net
Fri Nov 25 10:36:26 PST 2011
From: David Bremner <bremner at debian.org>
Nothing fancy, but we can at least detect segmentation faults.
---
I think Jani was just making fun of me when he suggested tests for notmuch --help, but I thought, why not.
test/help-test | 12 ++++++++++++
test/notmuch-test | 1 +
2 files changed, 13 insertions(+), 0 deletions(-)
create mode 100755 test/help-test
diff --git a/test/help-test b/test/help-test
new file mode 100755
index 0000000..9f4b9c7
--- /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 adfd589..5aced5c 100755
--- a/test/notmuch-test
+++ b/test/notmuch-test
@@ -18,6 +18,7 @@ cd $(dirname "$0")
TESTS="
basic
+ help-test
new
count
search
--
1.7.5.4
More information about the notmuch
mailing list