]> git.notmuchmail.org Git - notmuch/blob - test/T010-help-test.sh
test: redirect STDIN from /dev/null
[notmuch] / test / T010-help-test.sh
1 #!/usr/bin/env bash
2
3 test_description="online help"
4 . $(dirname "$0")/test-lib.sh || exit 1
5
6 test_begin_subtest 'notmuch --help'
7 test_expect_success 'notmuch --help'
8
9 test_begin_subtest 'notmuch help'
10 test_expect_success 'notmuch help'
11
12 test_begin_subtest 'notmuch --version'
13 test_expect_success 'notmuch --version'
14
15 if [ $NOTMUCH_HAVE_MAN -eq 1 ]; then
16     test_begin_subtest 'notmuch --help tag'
17     test_expect_success 'notmuch --help tag'
18
19     test_begin_subtest 'notmuch help tag'
20     test_expect_success 'notmuch help tag'
21 else
22     test_begin_subtest 'notmuch --help tag (man pages not available)'
23     test_expect_success 'test_must_fail notmuch --help tag >/dev/null'
24
25     test_begin_subtest 'notmuch help tag (man pages not available)'
26     test_expect_success 'test_must_fail notmuch help tag >/dev/null'
27 fi
28
29 test_done