]> git.marmaro.de Git - mmh/commitdiff
Hacked to work with make distcheck. Maybe not the best way but it works for now.
authorDavid Levine <levinedl@acm.org>
Fri, 17 Feb 2012 04:49:03 +0000 (22:49 -0600)
committerDavid Levine <levinedl@acm.org>
Fri, 17 Feb 2012 04:49:03 +0000 (22:49 -0600)
Makefile.am
test/inc/test-deb359167
test/inc/test-eom-align

index 2a986b05c53f3d5ebc3226b7e4aa7729fb7f6279..6417e11a343781797fbe4eda3c86f1a13d6c8967 100644 (file)
@@ -33,9 +33,8 @@ auxexecdir = @libdir@
 ##
 ## nmh _does_ have a test suite!
 ##
-
-TESTS_ENVIRONMENT = MH_OBJ_DIR=@abs_srcdir@ \
-                   MH_TEST_DIR=@abs_srcdir@/test/testdir \
+TESTS_ENVIRONMENT = MH_OBJ_DIR=@abs_builddir@ \
+                   MH_TEST_DIR=@abs_builddir@/test/testdir \
                    auxexecdir=$(auxexecdir) bindir=$(bindir) \
                    mandir=$(mandir) sysconfdir=$(sysconfdir)
 ##
index d2b2302990709831a30c46981e4952a5e69a4c73..6b433585f1aafa31ae3f7c5187c1f1b86c114550 100755 (executable)
@@ -11,10 +11,9 @@ fi
 
 setup_test
 
-THISDIR="${MH_OBJ_DIR}/test/inc"
-
 require_prog valgrind
 
+THISDIR="`dirname $0`"
 TESTMBOX="$THISDIR/deb359167.mbox"
 
 if [ "$(output_md5 "$TESTMBOX" | cut -d ' ' -f 1)" != "e6ac458b8cccba2b2fd866fb505aeb5e" ]; then 
index 06c972bd11f6fd5193abb692ba44d7f41a8c93af..0be49691f591516cf5a6b5a32181d01d2d58f37e 100755 (executable)
@@ -13,7 +13,7 @@ fi
 
 setup_test
 
-THISDIR="${MH_OBJ_DIR}/test/inc"
+THISDIR="`dirname $0`"
 
 if [ ! -z "$VALGRIND_ME" ]; then
     require_prog valgrind