From: Stefano Lattarini Date: Wed, 25 Jul 2012 11:30:05 +0000 (+0200) Subject: runtest: export $srcdir for use by the test scripts X-Git-Tag: v1.12.3~31^2~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6976741a7978349023fb415370ed0c946672a7f4;p=thirdparty%2Fautomake.git 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 --- 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.