]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Tests defs: $testsbuilddir is now AC_SUBST'ed.
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 5 Nov 2010 17:10:41 +0000 (18:10 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 10 Nov 2010 23:05:29 +0000 (00:05 +0100)
* tests/defs.in ($testsbuilddir): Substitute from @abs_builddir@.
Add sanity check on $testsbuilddir, similar to those on
$testsrcdir and $top_testsrcdir.

ChangeLog
tests/defs.in

index ea0955525ae2b142f4bbd816376d34a9774894f2..587e91e20fdbe2dd40813843d04995db9f170a12 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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
index b9765d243b57242f54a9d40629ad7590f8362635..5124d2d400f9b544b76e9c44aae130b9f19bccc9 100644 (file)
@@ -28,6 +28,7 @@
 # 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
@@ -99,9 +100,6 @@ sleep='sleep @MODIFICATION_DELAY@'
 # 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
 
@@ -122,6 +120,12 @@ test -f "$testsrcdir/defs.in" || {
    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