aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Tomi Ollila <tomi.ollila@iki.fi>2013-05-28 21:38:53 +0300
committerGravatar David Bremner <bremner@debian.org>2013-05-29 20:01:38 -0300
commitff598e4fdd580d9c7e19eb784b2ed137605d166f (patch)
tree79dd4a9dcbd646aaeb61ffe74316c862d29fbe2c /test
parent8a0e85025af5854666f5a8a18236f4ed69924638 (diff)
test: added --stderr=FILE tests
--stderr=FILE tests were added to test/help-test as it is the one doing most global option testing. Also, it was simplest to test this new option using `notmuch help` command.
Diffstat (limited to 'test')
-rwxr-xr-xtest/help-test9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/help-test b/test/help-test
index f7df725e..bd0111c9 100755
--- a/test/help-test
+++ b/test/help-test
@@ -9,4 +9,13 @@ test_expect_success 'notmuch help' 'notmuch help'
test_expect_success 'notmuch help tag' 'notmuch help tag'
test_expect_success 'notmuch --version' 'notmuch --version'
+test_begin_subtest "notmuch --stderr=stderr help %"
+notmuch --stderr=stderr help %
+test_expect_equal "$(cat stderr)" "
+Sorry, % is not a known command. There's not much I can do to help."
+
+test_begin_subtest "notmuch --stderr=- help %"
+test_expect_equal "$(notmuch --stderr=- help %)" "
+Sorry, % is not a known command. There's not much I can do to help."
+
test_done