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 2a986b0..6417e11 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 d2b2302..6b43358 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 06c972b..0be4969 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