]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
runtest: export $srcdir for use by the test scripts
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 25 Jul 2012 11:30:05 +0000 (13:30 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 26 Jul 2012 11:35:42 +0000 (13:35 +0200)
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 <stefano.lattarini@gmail.com>
runtest.in

index 0722141aedfbc230f40fe1e09d32a552b11e0284..53e249862997fee2de6bba18be52b11ccf7e0199 100644 (file)
@@ -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.