2010-11-10 Stefano Lattarini <stefano.lattarini@gmail.com>
+ Tests defs: $testsbuilddir is now AC_SUBST'ed.
+ * tests/defs.in ($testsbuilddir): Substitute from @abs_builddir@.
+ Add sanity check on $testsbuilddir, similar to those on
+ $testsrcdir and $top_testsrcdir.
+
Tests defs: do not print message "Running test $0" anymore.
* tests/defs.in: Printing the message "=== Running test $0" at
the beginning of each tests made sense when Automake used the old
# Absolutely necessary variable(s).
testsrcdir='@abs_srcdir@'
top_testsrcdir='@abs_top_srcdir@'
+testbuilddir='@abs_builddir@'
# Protect this file against multiple inclusion, useful for generated tests.
if test x"$am_skip_defs" = xyes; then
# in UTC; see <http://www.gnu.org/gnu/initial-announcement.html>.
old_timestamp=198309271735.59
-# Absolute path of the testsuite buildir.
-testbuilddir=`pwd`
-
# Make our wrapper scripts accessible by default.
PATH="$testbuilddir$PATH_SEPARATOR$PATH"; export PATH
exit 1
}
+# Ensure $testbuilddir is set correctly.
+test -f "$testbuilddir/defs" || {
+ echo "$me: $testbuilddir/defs not found, check \$testbuilddir" >&2
+ exit 1
+}
+
# Unset some MAKE... variables that may cause $MAKE to act like a
# recursively invoked sub-make. Any $MAKE invocation in a test is
# conceptually an independent invocation, not part of the main