]> git.notmuchmail.org Git - notmuch/blob - test/help-test
test: added --stderr=FILE tests
[notmuch] / test / help-test
1 #!/usr/bin/env bash
2
3 test_description="online help"
4 . ./test-lib.sh
5
6 test_expect_success 'notmuch --help' 'notmuch --help'
7 test_expect_success 'notmuch --help tag' 'notmuch --help tag'
8 test_expect_success 'notmuch help' 'notmuch help'
9 test_expect_success 'notmuch help tag' 'notmuch help tag'
10 test_expect_success 'notmuch --version' 'notmuch --version'
11
12 test_begin_subtest "notmuch --stderr=stderr help %"
13 notmuch --stderr=stderr help %
14 test_expect_equal "$(cat stderr)" "
15 Sorry, % is not a known command. There's not much I can do to help."
16
17 test_begin_subtest "notmuch --stderr=- help %"
18 test_expect_equal "$(notmuch --stderr=- help %)" "
19 Sorry, % is not a known command. There's not much I can do to help."
20
21 test_done