2 ######################################################
6 ######################################################
10 if test -z "${MH_OBJ_DIR}"; then
11 srcdir=`dirname $0`/../..
12 MH_OBJ_DIR=`cd $srcdir && pwd`; export MH_OBJ_DIR
15 . "$MH_OBJ_DIR/test/common.sh"
19 # Use proper program, likely not the first one on PATH.
20 rcvtty="${MH_LIBEXEC_DIR}/rcvtty"
22 expected="$MH_TEST_DIR/$$.expected"
23 actual="$MH_TEST_DIR/$$.actual"
27 cat >"$expected" <<EOF
28 Usage: rcvtty [command ...]
40 #### Skip nmh intro text.
41 run_prog "$rcvtty" -help | sed '/^$/,$d' >"$actual" 2>&1
42 check "$expected" "$actual"
47 * ) printf '%s: rcvtty -v generated unexpected output\n' "$0" >&2
48 failed=`expr ${failed:-0} + 1`;;
51 # check normal operation. Use -biff to avoid sending notification to
52 # each of the user's terminals. So this command shouldn't do
53 # anything. It will write the notification(s) if the user actually
54 # has actually enabled biff notification, or has set the exec bit of
56 cat >"$expected" <<EOF
58 run_prog $rcvtty <${MH_TEST_DIR}/Mail/inbox/1 -biff >"$actual" 2>&1
59 check "$expected" "$actual"