tests: Adjusted most of the tests to mmh.
[mmh] / test / tests / bad-input / test-header
index 8d466ac..8a3251e 100644 (file)
@@ -18,7 +18,7 @@ expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/$$.actual
 
 # Write message with bogus header field (missing blank line, really).
-msgfile=$(mhpath new)
+msgfile=$(mhpath b)
 msgnum=$(basename $msgfile)
 cat > $msgfile <<EOF
 Date: Sun, 18 Dec 2005 00:52:39 +0100
@@ -32,44 +32,26 @@ EOF
 
 # check scan
 cat > $expected <<EOF
-  11  12/18 foo@example.edu    test<<This is a multi-part message in MIME forma
+  11  2005-12-18 00:52  foo@example.edu    test
 EOF
 scan $msgnum > $actual 2>&1
 check
 
-# check show (mhl)
-cat > $expected <<EOF
-(Message inbox:11)
-
-Date:    Sun, 18 Dec 2005 00:52:39 +0100
-To:      bar@example.edu
-From:    foo@example.edu
-Subject: test
-
-
-This is a multi-part message in MIME format.
-
 
-I am a stupid spammer.
-EOF
-show $msgnum > $actual 2>&1
-check
-
-# check mhshow
+# check show
 cat > $expected <<EOF
 Date:    Sun, 18 Dec 2005 00:52:39 +0100
-To:      bar@example.edu
 From:    foo@example.edu
+To:      bar@example.edu
 Subject: test
 
-
 part       text/plain                  70
 
 This is a multi-part message in MIME format.
 
 I am a stupid spammer.
 EOF
-mhshow $msgnum > $actual 2>&1
+show $msgnum > $actual 2>&1
 check
 
 exit $failed