2 ######################################################
6 ######################################################
14 runandcheck "rcvpack -help" <<!
15 Usage: rcvpack [switches] file
24 * ) printf '%s: rcvpack -v generated unexpected output\n' "$0" >&2
25 failed=`expr ${failed:-0} + 1`;;
28 # check unknown switch
29 runandcheck "rcvpack -nonexistent" <<!
30 rcvpack: -nonexistent unknown
33 # check with no switches
34 runandcheck "rcvpack </dev/null" <<!
40 runandcheck "rcvpack <$MH_TEST_DIR/Mail/inbox/1 $MH_TEST_DIR/Mail/mbox" <<!
42 inc -file $MH_TEST_DIR/Mail/mbox -silent
43 diff -u "$MH_TEST_DIR/Mail/inbox/1" "$MH_TEST_DIR/Mail/inbox/11"
46 # check append to existing mbox file
47 runandcheck "rcvpack <$MH_TEST_DIR/Mail/inbox/2 $MH_TEST_DIR/Mail/mbox" <<!
49 inc -file $MH_TEST_DIR/Mail/mbox -silent
50 diff -u "$MH_TEST_DIR/Mail/inbox/1" "$MH_TEST_DIR/Mail/inbox/12"
51 diff -u "$MH_TEST_DIR/Mail/inbox/2" "$MH_TEST_DIR/Mail/inbox/13"