]> git.marmaro.de Git - mmh/blobdiff - test/mhshow/test-qp
Clean up fakesmtp and the post tests a bit to hopefully reduce race
[mmh] / test / mhshow / test-qp
index c19a34353c0ae003930512c4b61bc75e92605310..12f7f838fcd34c1d027e48e333d284b3fdf5eaf0 100755 (executable)
@@ -7,11 +7,12 @@
 
 set -e
 
-if [ -z "${MH_TEST_COMMON}" ]; then
-    echo "MH_TEST_COMMON not set; try running via 'make check'"
+if test -z "${MH_OBJ_DIR}"; then
+    srcdir=`dirname "$0"`/../..
+    MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
 fi
 
-. ${MH_TEST_COMMON}
+. "$MH_OBJ_DIR/test/common.sh"
 
 setup_test
 
@@ -68,4 +69,6 @@ just a newline
 =\b ^H (backspace) character, probably erased = in diff output
 EOF
 mhshow -nopause $msgnum > $actual 2>&1
-diff -u $expected $actual
+check "$expected" "$actual"
+
+exit $failed