projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automated generation of mh-chart.man.
[mmh]
/
test
/
mhshow
/
test-cte-binary
diff --git
a/test/mhshow/test-cte-binary
b/test/mhshow/test-cte-binary
index
e5654bb
..
b53f1e0
100755
(executable)
--- a/
test/mhshow/test-cte-binary
+++ b/
test/mhshow/test-cte-binary
@@
-5,11
+5,12
@@
#
######################################################
#
######################################################
-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
fi
-. ${MH_TEST_COMMON}
+. "$MH_OBJ_DIR/test/common.sh"
setup_test
expected=$MH_TEST_DIR/$$.expected
setup_test
expected=$MH_TEST_DIR/$$.expected
@@
-46,4
+47,7
@@
part text/plain 34
This is a test; this is the body.
EOF
mhshow -nopause $msgnum > $actual 2>&1
This is a test; this is the body.
EOF
mhshow -nopause $msgnum > $actual 2>&1
-diff -u $expected $actual
+check "$expected" "$actual"
+
+exit $failed
+