]> diplodocus.org Git - nmh/blobdiff - test/inc/test-eom-align
msgchk.c: Remove UUCP tests; unused since `#ifdef MF'.
[nmh] / test / inc / test-eom-align
index 84b52c42457a6330ac57fa5d3ca2e077af544daa..cea2f3771f40e29e246fa77cebb250f4c3d47440 100755 (executable)
@@ -137,10 +137,7 @@ do_one_test_A () {
   SZ=$1
   MBOX_TYPE=$2
   printf '%5s %s A\r' $SZ $MBOX_TYPE
-  case $MBOX_TYPE in
-      mbox) makembox_A "$MH_TEST_DIR/eom-align.mbox" $SZ ;;
-      mmdf) makemmdf_A "$MH_TEST_DIR/eom-align.mbox" $SZ ;;
-  esac
+  make${MBOX_TYPE}_A "$MH_TEST_DIR/eom-align.mbox" $SZ
   $VALGRIND inc -silent -file "$MH_TEST_DIR/eom-align.mbox"
   # We know the messages should be 11 and 12 in inbox
   # Now get the bodies back out.
@@ -150,7 +147,7 @@ do_one_test_A () {
   sed -e '1,/^$/d' "$MH_TEST_DIR/Mail/inbox/12" > "$body2"
   check "$MH_TEST_DIR/eom-align.mbox.body" "$body1" 'keep first'
   check "$FILLER" "$body2" 'keep first'
-  rmm 11 12
+  rm "$MH_TEST_DIR/Mail/inbox/11" "$MH_TEST_DIR/Mail/inbox/12"
 }
 
 # do_one_test_B sz mbox_type
@@ -159,16 +156,13 @@ do_one_test_B () {
   SZ=$1
   MBOX_TYPE=$2
   printf '%5s %s B\r' $SZ $MBOX_TYPE
-  case $MBOX_TYPE in
-      mbox) makembox_B "$MH_TEST_DIR/eom-align.mbox" $SZ ;;
-      mmdf) makemmdf_B "$MH_TEST_DIR/eom-align.mbox" $SZ ;;
-  esac
+  make${MBOX_TYPE}_B "$MH_TEST_DIR/eom-align.mbox" $SZ
   $VALGRIND inc -silent -file "$MH_TEST_DIR/eom-align.mbox"
   # We know the message should be 11 in the inbox
   body1="$MH_TEST_DIR/eom-align.inbox.body1"
   sed -e '1,/^$/d' "$MH_TEST_DIR/Mail/inbox/11" > "$body1"
   check "$MH_TEST_DIR/eom-align.mbox.body" "$body1" 'keep first'
-  rmm 11
+  rm "$MH_TEST_DIR/Mail/inbox/11"
 }
 
 # Cover a decent range around the stdio buffer size to make sure we catch
@@ -195,14 +189,15 @@ done
 i="$START"
 while test $i -le $FINISH; do
   do_one_test_A $i mbox
-  do_one_test_A $i mmdf
   do_one_test_B $i mbox
+  do_one_test_A $i mmdf
   do_one_test_B $i mmdf
   i=`expr $i + 1`
 done
 printf '\n'
 
 test ${failed:-0} -eq 0  &&  \
-rm "$MH_TEST_DIR/eom-align.mbox" "$MH_TEST_DIR/eom-align.mbox.body"
+rm "$MH_TEST_DIR/eom-align.mbox" "$MH_TEST_DIR/eom-align.mbox.body" \
+   "$mmdf_magic" "$empty_line"
 
 exit $failed