From 6976741a7978349023fb415370ed0c946672a7f4 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Wed, 25 Jul 2012 13:30:05 +0200 Subject: [PATCH] runtest: export $srcdir for use by the test scripts This is mostly a preparatory change in view of future ones. But it also make the behaviour of runtest more similar to that of the test harness used by "make check". * runtest.in: Export srcdir (was already defined to '@srcdir@'). Signed-off-by: Stefano Lattarini --- runtest.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtest.in b/runtest.in index 0722141ae..53e249862 100644 --- a/runtest.in +++ b/runtest.in @@ -24,6 +24,10 @@ set -e; set -u : ${AM_PROVEFLAGS='--merge --verbose'} : ${srcdir='@srcdir@'} +# For use by the testsuite framework. The Automake test harness +# define this, so we better do the same. +export srcdir + error () { echo "$0: $*" >&2; exit 255; } # Some shell flags should be passed over to the test scripts. -- 2.47.2