]>
diplodocus.org Git - nmh/blob - test/rcv/test-rcvtty
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_LIB_DIR}/rcvtty"
22 expected
="$MH_TEST_DIR/$$.expected"
23 actual
="$MH_TEST_DIR/$$.actual"
27 cat >"$expected" <<EOF
28 Usage: rcvtty [command ...]
40 run_prog
$rcvtty -help >"$actual" 2>&1
41 check
"$expected" "$actual"
46 * ) printf '%s: rcvtty -v generated unexpected output\n' "$0" >&2
47 failed
=`expr ${failed:-0} + 1`;;
50 # check normal operation. Use -biff to avoid sending notification to
51 # each of the user's terminals. So this command shouldn't do
52 # anything. It will write the notification(s) if the user actually
53 # has actually enabled biff notification, or has set the exec bit of
55 cat >"$expected" <<EOF
57 run_prog
$rcvtty <${MH_TEST_DIR}/Mail
/inbox
/1 -biff >"$actual" 2>&1
58 check
"$expected" "$actual"