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.
This commit is contained in:
Tomi Ollila 2013-05-28 21:38:53 +03:00 committed by David Bremner
parent 8a0e85025a
commit ff598e4fdd

View file

@ -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