commit 398b94bb394e2be0633175b58b47451bc3ba98ca (patch)
parent c0d8ebe3 NEWS: add NEWS stanza for 0.10.1
tree 35094663e040214357ad4b3da1df73d2a3c5c1ad
author David Bremner <bremner@debian.org> 2011-11-25 12:28:11 -0500
committer David Bremner <bremner@debian.org> 2011-11-25 12:35:40 -0500
test: add simple tests for online help
Nothing fancy, but we can at least detect segmentation faults.
---
test/help-test | 12 ++++++++++++
test/notmuch-test | 1 +
2 files changed, 13 insertions(+)
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
glossary
--------
Commit objects reference one tree, and zero or more parents.
Single parent commits can typically generate a patch in
unified diff format via `git format-patch'.
Multiple parents means the commit is a merge.
Root commits have no ancestor. Note that it is
possible to have multiple root commits when merging independent histories.
Every commit references one top-level tree object.
git clone https://yhetil.org/notmuch.git