From 6ce3e60f25c94b31e5d090ea03dee09d70dc1f7b Mon Sep 17 00:00:00 2001 From: David Levine Date: Fri, 17 Feb 2012 18:44:35 -0600 Subject: [PATCH] Here's the proper fix instead of the hack of d28ce569fe233141f86fe516878361da01c9f9cb. Use ${srcdir} in to refer to extra files in tests, as before. --- test/README | 2 +- test/inc/test-deb359167 | 2 +- test/inc/test-eom-align | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/README b/test/README index 9f890e2..6d39162 100644 --- a/test/README +++ b/test/README @@ -38,6 +38,6 @@ If you wish to write a new test script, here are the steps: - If you need additional files for your tests, be sure to add them to the EXTRA_DIST variable in Makefile.am. Note that you should insure - that you access these files relative to the $MH_OBJ_DIR environment variable. + that you access these files relative to the $srcdir environment variable. - Verify that the test works with both "make check" and "make distcheck". diff --git a/test/inc/test-deb359167 b/test/inc/test-deb359167 index 6b43358..0058a8a 100755 --- a/test/inc/test-deb359167 +++ b/test/inc/test-deb359167 @@ -13,7 +13,7 @@ setup_test require_prog valgrind -THISDIR="`dirname $0`" +THISDIR="$srcdir/test/inc" 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 0be4969..c330067 100755 --- a/test/inc/test-eom-align +++ b/test/inc/test-eom-align @@ -13,7 +13,7 @@ fi setup_test -THISDIR="`dirname $0`" +THISDIR="$srcdir/test/inc" if [ ! -z "$VALGRIND_ME" ]; then require_prog valgrind -- 1.7.10.4