From: Stefano Lattarini Date: Wed, 7 Nov 2012 16:59:40 +0000 (+0100) Subject: tests: new variable $am_testaux_builddir X-Git-Tag: v1.12.5~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd0d41d77f0d8a24bb8e6aac3bf580cbe741f88e;p=thirdparty%2Fautomake.git tests: new variable $am_testaux_builddir And a related fix that solves a spurious testsuite failures in VPATH builds. * t/ax/test-defs.in ($am_testaux_builddir): New, counterpart of $am_testaux_srcdir, but pointing inside the build directory. * t/self-check-shell-no-trail-bslash.sh: Use $am_testaux_builddir, not $am_testaux_srcdir, when fetching the 'shell-no-trail-bslash' script. Signed-off-by: Stefano Lattarini --- diff --git a/t/ax/test-defs.in b/t/ax/test-defs.in index a983183e8..ef3176642 100644 --- a/t/ax/test-defs.in +++ b/t/ax/test-defs.in @@ -39,6 +39,7 @@ am_top_builddir='@abs_builddir@' # Where testsuite-related helper scripts, data files and shell libraries # are placed. am_testaux_srcdir=$am_top_srcdir/t/ax +am_testaux_builddir=$am_top_builddir/t/ax # Support for the "installcheck" target. case ${am_running_installcheck:=no} in diff --git a/t/self-check-shell-no-trail-bslash.sh b/t/self-check-shell-no-trail-bslash.sh index fed4e6fee..cf9c3a6ff 100755 --- a/t/self-check-shell-no-trail-bslash.sh +++ b/t/self-check-shell-no-trail-bslash.sh @@ -33,7 +33,7 @@ bad: @echo $(am__backslash) END -SHELL=$am_testaux_srcdir/shell-no-trail-bslash +SHELL=$am_testaux_builddir/shell-no-trail-bslash $SHELL -c 'exit 0' test "$($SHELL -c 'echo is o\k')" = "is ok"