From d28ce569fe233141f86fe516878361da01c9f9cb Mon Sep 17 00:00:00 2001 From: David Levine Date: Thu, 16 Feb 2012 22:49:03 -0600 Subject: [PATCH] Hacked to work with make distcheck. Maybe not the best way but it works for now. --- Makefile.am | 5 ++--- test/inc/test-deb359167 | 3 +-- test/inc/test-eom-align | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile.am b/Makefile.am index 2a986b0..6417e11 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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) ## diff --git a/test/inc/test-deb359167 b/test/inc/test-deb359167 index d2b2302..6b43358 100755 --- a/test/inc/test-deb359167 +++ b/test/inc/test-deb359167 @@ -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 diff --git a/test/inc/test-eom-align b/test/inc/test-eom-align index 06c972b..0be4969 100755 --- a/test/inc/test-eom-align +++ b/test/inc/test-eom-align @@ -13,7 +13,7 @@ fi setup_test -THISDIR="${MH_OBJ_DIR}/test/inc" +THISDIR="`dirname $0`" if [ ! -z "$VALGRIND_ME" ]; then require_prog valgrind -- 1.7.10.4