[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/5] Tests defs: rename $curdir -> $testbuilddir
From: |
Stefano Lattarini |
Subject: |
[PATCH 3/5] Tests defs: rename $curdir -> $testbuilddir |
Date: |
Wed, 8 Sep 2010 20:53:50 +0200 |
User-agent: |
KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) |
* tests/defs.in: Rename $curdir to $testbuildir, for clarity and
consistency with $testsrcidr and $top_testsrcdir.
---
ChangeLog | 4 ++++
tests/defs.in | 14 +++++++-------
2 files changed, 11 insertions(+), 7 deletions(-)
From 0c2940be6ecd0ae395a966b738b1e0e98d4b597b Mon Sep 17 00:00:00 2001
From: Stefano Lattarini <address@hidden>
Date: Wed, 8 Sep 2010 17:21:00 +0200
Subject: [PATCH 3/5] Tests defs: rename $curdir -> $testbuilddir
* tests/defs.in: Rename $curdir to $testbuildir, for clarity and
consistency with $testsrcidr and $top_testsrcdir.
---
ChangeLog | 4 ++++
tests/defs.in | 14 +++++++-------
2 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index cf4c783..4cbabd4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2010-09-08 Stefano Lattarini <address@hidden>
+ Tests defs: rename $curdir -> $testsbuilddir
+ * tests/defs.in: Rename $curdir to $testbuildir, for clarity and
+ consistency with $testsrcidr and $top_testsrcdir.
+
Tests defs: prefer "$curdir" over "`pwd`", where possible.
* 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 9991741..12a082f 100644
--- a/tests/defs.in
+++ b/tests/defs.in
@@ -51,7 +51,7 @@ fi
echo "=== Running test $0"
-curdir=`pwd`
+testbuilddir=`pwd`
# The name of the current test (without the `.test' suffix.)
me=`echo "$0" | sed -e 's,.*[\\/],,;s/\.test$//'`
@@ -116,7 +116,7 @@ sleep='sleep @MODIFICATION_DELAY@'
old_timestamp=198309271735.59
# Make our wrapper scripts accessible by default.
-PATH="address@hidden@$PATH"
+PATH="address@hidden@$PATH"
# Some shells forget to export modified environment variables.
# (See note about `export' in the Autoconf manual.)
export PATH
@@ -391,10 +391,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 furter
- # 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
+ # furter 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"
@@ -425,7 +425,7 @@ address@hidden@
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 {} ";"
--
1.7.1
- [PATCH 0/5] More cosmetic and consistency changes for tests/defs (both tiny and large), Stefano Lattarini, 2010/09/08
- [PATCH 1/5] Tests defs: various reorderings, some improvements., Stefano Lattarini, 2010/09/08
- [PATCH 2/5] Tests defs: prefer "$curdir" over "`pwd`", where possible., Stefano Lattarini, 2010/09/08
- [PATCH 3/5] Tests defs: rename $curdir -> $testbuilddir,
Stefano Lattarini <=
- [PATCH 4/5] Tests defs: do not print message "Running test $0" anymore., Stefano Lattarini, 2010/09/08
- [PATCH 5/5] Tests defs: improve messages for skipped tests., Stefano Lattarini, 2010/09/08