]> diplodocus.org Git - nmh/blobdiff - test/mhshow/test-qp
Added multiply format function, requested by Norm.
[nmh] / test / mhshow / test-qp
index 3d4beb85e32b645d0fc67620b00c4e7a1bf7479e..dae70a5a0f850d4728c2764953a3d8286fe4bc8e 100755 (executable)
@@ -20,8 +20,8 @@ expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/$$.actual
 
 # Write message with bogus quoted-printable data.
-msgfile=$(mhpath new)
-msgnum=$(basename $msgfile)
+msgfile=`mhpath new`
+msgnum=`basename $msgfile`
 cat > $msgfile <<EOF
 From: foo@example.edu
 To: bar@example.edu
@@ -54,7 +54,7 @@ Subject: test
 
 MIME-Version: 1.0
 
-part       text/plain                 181
+[ part  - text/plain -   181B  ]
 =
 =
 ignored space at end
@@ -68,5 +68,7 @@ just a newline
 =l
 =\b ^H (backspace) character, probably erased = in diff output
 EOF
-mhshow -nopause $msgnum > $actual 2>&1
-diff -u $expected $actual
+run_prog mhshow $msgnum > $actual 2>&1
+check "$expected" "$actual"
+
+exit $failed