]> diplodocus.org Git - nmh/blobdiff - test/mhshow/test-subpart
Sigh. Mention that we have to do both a "git push" and a "git push --tags".
[nmh] / test / mhshow / test-subpart
index 353962dc41e33b6021029025aeaea9910b445544..2fb74b480f7a1e25bd01185453516947e58b5947 100755 (executable)
@@ -9,8 +9,8 @@
 set -e
 
 if test -z "${MH_OBJ_DIR}"; then
-    srcdir=`dirname $0`/../..
-    MH_OBJ_DIR=`cd $srcdir && pwd`; export MH_OBJ_DIR
+    srcdir=`dirname "$0"`/../..
+    MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
 fi
 
 . "$MH_OBJ_DIR/test/common.sh"
@@ -21,8 +21,8 @@ expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/$$.actual
 
 # Write message with a text/plain subpart.
-msgfile=$(mhpath new)
-msgnum=$(basename $msgfile)
+msgfile=`mhpath new`
+msgnum=`basename $msgfile`
 cat > $msgfile <<EOF
 MIME-Version: 1.0
 Content-Type: multipart/mixed; boundary="NextPart_001"
@@ -56,5 +56,7 @@ This is the text/plain part.
 EOF
 
 # check it
-mhshow -part 1.1 -form mhl.null -nopause $msgnum > $actual 2>&1
-diff -u $expected $actual  &&  rm -f $expected $actual
+run_prog mhshow -part 1.1 -form mhl.null $msgnum > $actual 2>&1
+check "$expected" "$actual"
+
+exit $failed