2011-11-25 18:28:11 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
test_description="online help"
|
2012-11-21 16:16:14 +01:00
|
|
|
. ./test-lib.sh
|
2011-11-25 18:28:11 +01:00
|
|
|
|
|
|
|
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'
|
|
|
|
|
2013-05-28 20:38:53 +02:00
|
|
|
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."
|
|
|
|
|
2011-11-25 18:28:11 +01:00
|
|
|
test_done
|