X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/6106441685a38400d9aa94ccb7218218102f941c..0c7ac5073c24f01663fadc78b5112c86d52e4452:/test/mhshow/test-qp diff --git a/test/mhshow/test-qp b/test/mhshow/test-qp index c19a3435..924ee7b2 100755 --- a/test/mhshow/test-qp +++ b/test/mhshow/test-qp @@ -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 @@ -19,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 < $actual 2>&1 -diff -u $expected $actual +check "$expected" "$actual" + +exit $failed