X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/6fc2909634fb431c65ecfa8b6db4f6519f99b389..7540f02725475698a47046ebf4e55b3e8dea5ab6:/test/mhmail/test-mhmail diff --git a/test/mhmail/test-mhmail b/test/mhmail/test-mhmail index 2e7375f0..c3969578 100755 --- a/test/mhmail/test-mhmail +++ b/test/mhmail/test-mhmail @@ -68,6 +68,7 @@ actual_err=$MH_TEST_DIR/test-mhmail$$.actual_err # check -help +start_test "-help" # Verified behavior consistent with compiled sendmail. cat >$expected <"$actual" 2>&1 +mhmail -help 2>&1 | sed '/^$/,$d' >"$actual" check "$expected" "$actual" # check -version +start_test "-version" # Verified same behavior as compiled mhmail. case `mhmail -v` in mhmail\ --*) ;; @@ -102,6 +104,7 @@ case `mhmail -v` in esac # check for missing argument to switches that require them +start_test "for missing argument to switches that require them" for switch in attach body cc from headerfield subject to; do run_test "mhmail recipient -$switch" \ "mhmail: missing argument to -$switch" @@ -117,6 +120,7 @@ done # check with no switches +start_test "with no switches" # That will just run inc, which we don't want to do anything, # so tell inc to just display its version. # Verified same behavior as compiled mhmail. @@ -129,6 +133,7 @@ esac # check -nosend +start_test "-nosend" # Not supported by compiled mhmail. mhmail -nosend recipient@example.com -from sender1@localhost \ -server 127.0.0.1 -port $localport -body '' >"$actual" 2>"$actual_err" @@ -149,6 +154,7 @@ check "$expected_err" "$actual_err" # check -send +start_test "-send" # Not supported by compiled mhmail. cat > "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" < "$expected" <