mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
ff598e4fdd
--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.
21 lines
721 B
Bash
Executable file
21 lines
721 B
Bash
Executable file
#!/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_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
|