]> diplodocus.org Git - nmh/blobdiff - test/inc/test-eom-align
Moved check() function from individual tests to common.sh.
[nmh] / test / inc / test-eom-align
index 276d70c7208f2a16b2cd1afb72f2d08921a1b202..06c972bd11f6fd5193abb692ba44d7f41a8c93af 100755 (executable)
@@ -4,11 +4,16 @@
 
 set -e
 
-. ${MH_TEST_COMMON}
+if test -z "${MH_OBJ_DIR}"; then
+    srcdir=`dirname $0`/../..
+    MH_OBJ_DIR=`cd $srcdir && pwd`; export MH_OBJ_DIR
+fi
+
+. "$MH_OBJ_DIR/test/common.sh"
 
 setup_test
 
-THISDIR="${srcdir}/test/inc"
+THISDIR="${MH_OBJ_DIR}/test/inc"
 
 if [ ! -z "$VALGRIND_ME" ]; then
     require_prog valgrind