From: David Levine Date: Sat, 18 Feb 2012 00:44:35 +0000 (-0600) Subject: Here's the proper fix instead of the hack of d28ce569fe233141f86fe516878361da01c9f9cb... X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=6ce3e60f25c94b31e5d090ea03dee09d70dc1f7b;p=mmh Here's the proper fix instead of the hack of d28ce569fe233141f86fe516878361da01c9f9cb. Use ${srcdir} in to refer to extra files in tests, as before. --- 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