X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/13015c3c27462cb98027d644636ff526e10dd1d0..refs/heads/master:/test/inc/test-msgchk?ds=sidebyside diff --git a/test/inc/test-msgchk b/test/inc/test-msgchk index 4ac4554e..c3615543 100755 --- a/test/inc/test-msgchk +++ b/test/inc/test-msgchk @@ -27,6 +27,7 @@ actual_err=$MH_TEST_DIR/$$.actual_err # check -help +start_test "-help" # Only look at first 9 lines because the rest depend on # whether sasl support was configured in. cat >"$expected" <"$actual" 2>&1 +run_prog msgchk -help 2>&1 | head -9 >"$actual" check "$expected" "$actual" # check -version +start_test "-version" case `msgchk -v` in msgchk\ --*) ;; * ) printf '%s: msgchk -v generated unexpected output\n' "$0" >&2 @@ -52,9 +54,11 @@ case `msgchk -v` in esac # check unknown switch +start_test "unknown switch" run_test "msgchk -nonexistent" 'msgchk: -nonexistent unknown' # check with no arguments and no mail waiting +start_test "with no arguments and no mail waiting" run_test 'msgchk' "You don't have any mail waiting" # Use maildrop specified in mts.conf, i.e., @@ -63,6 +67,7 @@ run_test 'msgchk' "You don't have any mail waiting" "${MH_TEST_DIR}"/Mail/maildrop # check with no arguments and mail waiting +start_test "with no arguments and mail waiting" cat >"$expected" <"$actual" check "$expected" "$actual" # check -date +start_test "-date" cat >"$expected" <