X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=test%2Fmhshow%2Ftest-cte-binary;h=8f582b0a3f0e0cf7a87d550d4256ab7d83fdf079;hb=348afa78cbece5f8eb67a120282c50b469fa9849;hp=e5654bbff52f623ca7e024a8edc1199b56b9a312;hpb=6106441685a38400d9aa94ccb7218218102f941c;p=mmh diff --git a/test/mhshow/test-cte-binary b/test/mhshow/test-cte-binary index e5654bb..8f582b0 100755 --- a/test/mhshow/test-cte-binary +++ b/test/mhshow/test-cte-binary @@ -5,19 +5,20 @@ # ###################################################### -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 expected=$MH_TEST_DIR/$$.expected actual=$MH_TEST_DIR/$$.actual # Write message with Content-Transfer-Encoding: binary text. -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 +