2011-11-25 18:28:11 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
test_description="online help"
|
2017-09-25 22:38:19 +02:00
|
|
|
. $(dirname "$0")/test-lib.sh || exit 1
|
2011-11-25 18:28:11 +01:00
|
|
|
|
2017-02-26 14:43:00 +01:00
|
|
|
test_begin_subtest 'notmuch --help'
|
|
|
|
test_expect_success 'notmuch --help'
|
|
|
|
|
|
|
|
test_begin_subtest 'notmuch help'
|
|
|
|
test_expect_success 'notmuch help'
|
|
|
|
|
|
|
|
test_begin_subtest 'notmuch --version'
|
|
|
|
test_expect_success 'notmuch --version'
|
2011-11-25 18:28:11 +01:00
|
|
|
|
2023-04-09 16:26:23 +02:00
|
|
|
if [ "${NOTMUCH_HAVE_MAN-0}" = "1" ]; then
|
2017-02-26 14:43:00 +01:00
|
|
|
test_begin_subtest 'notmuch --help tag'
|
|
|
|
test_expect_success 'notmuch --help tag'
|
|
|
|
|
|
|
|
test_begin_subtest 'notmuch help tag'
|
|
|
|
test_expect_success 'notmuch help tag'
|
2014-03-26 09:48:12 +01:00
|
|
|
else
|
2023-04-09 16:26:26 +02:00
|
|
|
if [ -n "${NOTMUCH_TEST_INSTALLED-}" ]; then
|
|
|
|
test_done
|
|
|
|
fi
|
2017-02-26 14:43:00 +01:00
|
|
|
test_begin_subtest 'notmuch --help tag (man pages not available)'
|
|
|
|
test_expect_success 'test_must_fail notmuch --help tag >/dev/null'
|
|
|
|
|
|
|
|
test_begin_subtest 'notmuch help tag (man pages not available)'
|
|
|
|
test_expect_success 'test_must_fail notmuch help tag >/dev/null'
|
2014-03-26 09:48:12 +01:00
|
|
|
fi
|
|
|
|
|
2011-11-25 18:28:11 +01:00
|
|
|
test_done
|