summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f7919e7)
Typically by adding a `foo -', discarding stdout and stderr, and
expecting it to exit non-zero. A `# gcov' comment states its purpose,
and makes it easier to see if they can be deleted in time as other
coverage tests improve.
38 files changed:
+! ali - >/dev/null 2>&1 # gcov
+
expected=$MH_TEST_DIR/$$.expected
expected_err=$MH_TEST_DIR/$$.expected_err
actual=$MH_TEST_DIR/$$.actual
expected=$MH_TEST_DIR/$$.expected
expected_err=$MH_TEST_DIR/$$.expected_err
actual=$MH_TEST_DIR/$$.actual
+! anno - >/dev/null 2>&1 # gcov
+
expected=$MH_TEST_DIR/$$.expected
expected_err=$MH_TEST_DIR/$$.expected_err
actual=$MH_TEST_DIR/$$.actual
expected=$MH_TEST_DIR/$$.expected
expected_err=$MH_TEST_DIR/$$.expected_err
actual=$MH_TEST_DIR/$$.actual
+! burst - >/dev/null 2>&1 # gcov
+
#
# Create a test message that we can burst
#
#
# Create a test message that we can burst
#
+! comp - >/dev/null 2>&1 # gcov
+
#
# Create a test template file (we create one here just in case the master
# one changes)
#
# Create a test template file (we create one here just in case the master
# one changes)
+! dist - >/dev/null 2>&1 # gcov
+
expected=$MH_TEST_DIR/$$.expected
expected_err=$MH_TEST_DIR/$$.expected_err
actual=$MH_TEST_DIR/$$.actual
expected=$MH_TEST_DIR/$$.expected
expected_err=$MH_TEST_DIR/$$.expected_err
actual=$MH_TEST_DIR/$$.actual
+! packf - >/dev/null 2>&1 # gcov
+
expected="$MH_TEST_DIR/$$.expected"
actual="$MH_TEST_DIR/$$.actual"
expected="$MH_TEST_DIR/$$.expected"
actual="$MH_TEST_DIR/$$.actual"
+! sortm - >/dev/null 2>&1 # gcov
+
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual
+! fmtdump - >/dev/null 2>&1 # gcov
+
# Use proper program, likely not the first one on PATH.
fmtdump="${MH_LIBEXEC_DIR}/fmtdump"
# Use proper program, likely not the first one on PATH.
fmtdump="${MH_LIBEXEC_DIR}/fmtdump"
+! msgchk - >/dev/null 2>&1 # gcov
+
expected=$MH_TEST_DIR/$$.expected
expected_err=$MH_TEST_DIR/$$.expected_err
actual=$MH_TEST_DIR/$$.actual
expected=$MH_TEST_DIR/$$.expected
expected_err=$MH_TEST_DIR/$$.expected_err
actual=$MH_TEST_DIR/$$.actual
+! install-mh - >/dev/null 2>&1 # gcov
+
# check with no options, with nmh already installed
run_test "install-mh" \
'install-mh: You already have an nmh profile, use an editor to modify it'
# check with no options, with nmh already installed
run_test "install-mh" \
'install-mh: You already have an nmh profile, use an editor to modify it'
+! forw - >/dev/null 2>&1 # gcov
+
# Make a draft file forwarding two messages.
mkdraft() {
cat > $draft <<EOF
# Make a draft file forwarding two messages.
mkdraft() {
cat > $draft <<EOF
. "${MH_OBJ_DIR}/test/common.sh"
setup_test
. "${MH_OBJ_DIR}/test/common.sh"
setup_test
+
+! mhbuild -h >/dev/null 2>&1 # gcov
+
testname="${MH_TEST_DIR}/$$"
backupname="${MH_TEST_DIR}/`mhparam sbackup`$$"
testname="${MH_TEST_DIR}/$$"
backupname="${MH_TEST_DIR}/`mhparam sbackup`$$"
+! mhfixmsg - >/dev/null 2>&1 # gcov
+
#### Make sure that html-to-text conversion is what we expect.
require_locale en_US.UTF-8 en_US.UTF8 en_US.utf-8 en_US.utf8
#### Make sure that html-to-text conversion is what we expect.
require_locale en_US.UTF-8 en_US.UTF8 en_US.utf-8 en_US.utf8
+! mhical - >/dev/null 2>&1 # gcov
+
#### Make sure that html-to-text conversion is what we expect.
require_locale en_US.UTF-8 en_US.UTF8 en_US.utf-8 en_US.utf8
#### Make sure that html-to-text conversion is what we expect.
require_locale en_US.UTF-8 en_US.UTF8 en_US.utf-8 en_US.utf8
+! mhlist - >/dev/null 2>&1 # gcov
+
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual
+! mhparam - >/dev/null 2>&1 # gcov
+
expected=$MH_TEST_DIR/$$.expected
expected_err=$MH_TEST_DIR/$$.expected_err
actual=$MH_TEST_DIR/$$.actual
expected=$MH_TEST_DIR/$$.expected
expected_err=$MH_TEST_DIR/$$.expected_err
actual=$MH_TEST_DIR/$$.actual
+! mhpath - >/dev/null 2>&1 # gcov
+
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual
+! mhshow - >/dev/null 2>&1 # gcov
+
require_locale en_US.UTF-8 en_US.UTF8 en_US.utf-8 en_US.utf8
test "$ICONV_ENABLED" -eq 0 && text_size=10 || text_size=11
require_locale en_US.UTF-8 en_US.UTF8 en_US.utf-8 en_US.utf8
test "$ICONV_ENABLED" -eq 0 && text_size=10 || text_size=11
+! mhstore - >/dev/null 2>&1 # gcov
+
expected="$MH_TEST_DIR/test-mhstore$$.expected"
expected2="$MH_TEST_DIR/test-mhstore$$.expected2"
expected_err="$MH_TEST_DIR/test-mhmail$$.expected_err"
expected="$MH_TEST_DIR/test-mhstore$$.expected"
expected2="$MH_TEST_DIR/test-mhstore$$.expected2"
expected_err="$MH_TEST_DIR/test-mhmail$$.expected_err"
actual="$MH_TEST_DIR"/$$.actual
mkstemp="${MH_LIBEXEC_DIR}/mkstemp"
actual="$MH_TEST_DIR"/$$.actual
mkstemp="${MH_LIBEXEC_DIR}/mkstemp"
+
+! $mkstemp - >/dev/null 2>&1 # gcov
+
$mkstemp -help | grep suffix >/dev/null && has_mkstemps=1 || has_mkstemps=0
cd "$MHTMPDIR"
$mkstemp -help | grep suffix >/dev/null && has_mkstemps=1 || has_mkstemps=0
cd "$MHTMPDIR"
+! folder - >/dev/null 2>&1 # gcov
+
folders=$MH_TEST_DIR/Mail/.folders
expected=$MH_TEST_DIR/$$.expected
folders=$MH_TEST_DIR/Mail/.folders
expected=$MH_TEST_DIR/$$.expected
. "${srcdir}/test/oauth/common.sh"
. "${srcdir}/test/oauth/common.sh"
+! inc - >/dev/null 2>&1 # gcov
+
. "${srcdir}/test/oauth/common.sh"
. "${srcdir}/test/oauth/common.sh"
+! mhlogin - >/dev/null 2>&1 # gcov
+
expect_no_creds() {
cat /dev/null > "${MHTMPDIR}/$$.expected-creds"
cat /dev/null > "${MHTMPDIR}/oauth-test"
expect_no_creds() {
cat /dev/null > "${MHTMPDIR}/$$.expected-creds"
cat /dev/null > "${MHTMPDIR}/oauth-test"
. "${srcdir}/test/oauth/common.sh"
. "${srcdir}/test/oauth/common.sh"
+! send - >/dev/null 2>&1 # gcov
+
test_send_only_fakehttp() {
start_fakehttp
test_send_no_servers "$@"
test_send_only_fakehttp() {
start_fakehttp
test_send_no_servers "$@"
. "${srcdir}/test/post/test-post-common.sh"
. "${srcdir}/test/post/test-post-common.sh"
+! "${MH_LIBEXEC_DIR}/post" - >/dev/null 2>&1 # gcov
+
#
# Basic test - Simple message, single user, single recipient. Note that
# we test dot-stuffing here as well.
#
# Basic test - Simple message, single user, single recipient. Note that
# we test dot-stuffing here as well.
+! prompter - >/dev/null 2>&1 # gcov
+
expected=$MH_TEST_DIR/$$.expected
expected_err=$MH_TEST_DIR/$$.expected_err
actual=$MH_TEST_DIR/$$.actual
expected=$MH_TEST_DIR/$$.expected
expected_err=$MH_TEST_DIR/$$.expected_err
actual=$MH_TEST_DIR/$$.actual
# Use proper program, likely not the first one on PATH.
rcvdist="${MH_LIBEXEC_DIR}/rcvdist"
# Use proper program, likely not the first one on PATH.
rcvdist="${MH_LIBEXEC_DIR}/rcvdist"
+! $rcvdist - >/dev/null 2>&1 # gcov
+
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual
# Use proper program, likely not the first one on PATH.
rcvpack="${MH_LIBEXEC_DIR}/rcvpack"
# Use proper program, likely not the first one on PATH.
rcvpack="${MH_LIBEXEC_DIR}/rcvpack"
+! $rcvpack - >/dev/null 2>&1 # gcov
+
expected="$MH_TEST_DIR/$$.expected"
actual="$MH_TEST_DIR/$$.actual"
expected="$MH_TEST_DIR/$$.expected"
actual="$MH_TEST_DIR/$$.actual"
# Use proper program, likely not the first one on PATH.
rcvstore="${MH_LIBEXEC_DIR}/rcvstore"
# Use proper program, likely not the first one on PATH.
rcvstore="${MH_LIBEXEC_DIR}/rcvstore"
+! $rcvstore - >/dev/null 2>&1 # gcov
+
expected=$MH_TEST_DIR/$$.expected
expected_err=$MH_TEST_DIR/$$.expected_err
actual=$MH_TEST_DIR/$$.actual
expected=$MH_TEST_DIR/$$.expected
expected_err=$MH_TEST_DIR/$$.expected_err
actual=$MH_TEST_DIR/$$.actual
# Use proper program, likely not the first one on PATH.
rcvtty="${MH_LIBEXEC_DIR}/rcvtty"
# Use proper program, likely not the first one on PATH.
rcvtty="${MH_LIBEXEC_DIR}/rcvtty"
+! $rcvtty - >/dev/null 2>&1 # gcov
+
expected="$MH_TEST_DIR/$$.expected"
actual="$MH_TEST_DIR/$$.actual"
expected="$MH_TEST_DIR/$$.expected"
actual="$MH_TEST_DIR/$$.actual"
+! refile - >/dev/null 2>&1 # gcov
+
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual
+! repl - >/dev/null 2>&1 # gcov
+
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/Mail/draft
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/Mail/draft
+! scan - >/dev/null 2>&1 # gcov
+
expected="$MH_TEST_DIR/$$.expected"
actual="$MH_TEST_DIR/$$.actual"
expected="$MH_TEST_DIR/$$.expected"
actual="$MH_TEST_DIR/$$.actual"
+! flist - >/dev/null 2>&1 # gcov
+
run_test 'mark 1 3 5 7 9 +inbox -sequence odd' ''
run_test 'mark -s odd -list' 'odd: 1 3 5 7 9'
run_test 'mark +inbox -sequence unseen all' ''
run_test 'mark 1 3 5 7 9 +inbox -sequence odd' ''
run_test 'mark -s odd -list' 'odd: 1 3 5 7 9'
run_test 'mark +inbox -sequence unseen all' ''
+! mark - >/dev/null 2>&1 # gcov
+
# Test sequence creation.
run_test 'mark 1 3 5 7 +inbox -sequence odd' ''
run_test 'mark 2 4 6 8 10 +inbox -sequence even' ''
# Test sequence creation.
run_test 'mark 1 3 5 7 +inbox -sequence odd' ''
run_test 'mark 2 4 6 8 10 +inbox -sequence even' ''
+! show - >/dev/null 2>&1 # gcov
+
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual
# Use proper program, maybe not the first one on PATH.
slocal="$MH_LIBEXEC_DIR"/slocal
# Use proper program, maybe not the first one on PATH.
slocal="$MH_LIBEXEC_DIR"/slocal
+! $slocal - >/dev/null 2>&1 # gcov
+
expected="$MH_TEST_DIR"/$$.expected
actual="$MH_TEST_DIR"/$$.actual
actual2="$MH_TEST_DIR"/$$.actual2
expected="$MH_TEST_DIR"/$$.expected
actual="$MH_TEST_DIR"/$$.actual
actual2="$MH_TEST_DIR"/$$.actual2
+! whom - >/dev/null 2>&1 # gcov
+
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual