X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/0f0af4e32a4d734209c16282b63f7cb1094e2699..HEAD:/test/rcv/test-rcvtty?ds=sidebyside diff --git a/test/rcv/test-rcvtty b/test/rcv/test-rcvtty index 1d0fea8c..d86b8dbf 100755 --- a/test/rcv/test-rcvtty +++ b/test/rcv/test-rcvtty @@ -17,13 +17,16 @@ fi setup_test # Use proper program, likely not the first one on PATH. -rcvtty="${MH_LIB_DIR}/rcvtty" +rcvtty="${MH_LIBEXEC_DIR}/rcvtty" + +check_exit '-eq 1' $rcvtty - expected="$MH_TEST_DIR/$$.expected" actual="$MH_TEST_DIR/$$.actual" # check -help +start_test "-help" cat >"$expected" <"$actual" 2>&1 +#### Skip nmh intro text. +run_prog "$rcvtty" -help 2>&1 | sed '/^$/,$d' >"$actual" check "$expected" "$actual" # check -version +start_test "-version" case `$rcvtty -v` in rcvtty\ --*) ;; * ) printf '%s: rcvtty -v generated unexpected output\n' "$0" >&2 @@ -48,14 +53,16 @@ case `$rcvtty -v` in esac # check normal operation. Use -biff to avoid sending notification to +start_test "normal operation. Use -biff to avoid sending notification to" # each of the user's terminals. So this command shouldn't do # anything. It will write the notification(s) if the user actually # has actually enabled biff notification, or has set the exec bit of # any of their ttys. cat >"$expected" <"$actual" 2>&1 +run_prog $rcvtty <${MH_TEST_DIR}/Mail/inbox/1 -biff >"$actual" 2>&1 check "$expected" "$actual" +finish_test exit ${failed:-0}