From: Stefano Lattarini Date: Fri, 5 Nov 2010 16:23:31 +0000 (+0100) Subject: Tests defs: rename $curdir -> $testbuilddir X-Git-Tag: ng-0.5a~343^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a68760e4d3651f66080717568f2517dbadb52fd;p=thirdparty%2Fautomake.git Tests defs: rename $curdir -> $testbuilddir * tests/defs.in: Rename $curdir to $testbuildir, for clarity and consistency with $testsrcdir and $top_testsrcdir. --- diff --git a/ChangeLog b/ChangeLog index 9101b5f21..f543d70b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2010-11-10 Stefano Lattarini + Tests defs: rename $curdir -> $testbuilddir + * tests/defs.in: Rename $curdir to $testbuildir, for clarity and + consistency with $testsrcdir and $top_testsrcdir. + Tests defs: prefer "$curdir" over "`pwd`". * tests/defs.in: We already save the value of `pwd` in $curdir early in the file, so there no need to recalculate it later, when diff --git a/tests/defs.in b/tests/defs.in index 700365dea..caea2257d 100644 --- a/tests/defs.in +++ b/tests/defs.in @@ -102,10 +102,10 @@ sleep='sleep @MODIFICATION_DELAY@' old_timestamp=198309271735.59 # Absolute path of the testsuite buildir. -curdir=`pwd` +testbuilddir=`pwd` # Make our wrapper scripts accessible by default. -PATH="$curdir$PATH_SEPARATOR$PATH"; export PATH +PATH="$testbuilddir$PATH_SEPARATOR$PATH"; export PATH ## -------------------------------------------------------- ## @@ -395,10 +395,10 @@ case " $required " in esac # Libtool cannot cope with spaces in the build tree. Our testsuite setup # cannot cope with spaces in the source tree name for Libtool and gettext - # tests. Using just `$curdir' for the check here is ok, since the further - # temporary subdirectory where the test will be run is ensured not to - # contain any space. - case $testsrcdir,$curdir in + # tests. Using just `$testbuilddir' for the check here is ok, since the + # further temporary subdirectory where the test will be run is ensured not + # to contain any space. + case $testsrcdir,$testbuilddir in *\ * | *\ *) exit 77;; esac ACLOCAL="$ACLOCAL -Wno-syntax -I $top_testsrcdir/m4 $extra_includes -I $aclocaldir" @@ -429,7 +429,7 @@ sh_errexit_works=@sh_errexit_works@ if test "$sh_errexit_works" = yes; then trap 'exit_status=$? set +e - cd "$curdir" + cd "$testbuilddir" case $exit_status,$keep_testdirs in 0,) find $testSubDir -type d ! -perm -200 -exec chmod u+w {} ";"