[llvm-commits] CVS: llvm/test/TestRunner.sh
Reid Spencer
reid at x10sys.com
Wed May 16 10:57:16 PDT 2007
Changes in directory llvm/test:
TestRunner.sh updated: 1.18 -> 1.19
---
Log message:
Fix PR1355: http://llvm.org/PR1355 : Only compute the SUBPATH and TESTDIR once.
---
Diffs of the changes: (+9 -7)
TestRunner.sh | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
Index: llvm/test/TestRunner.sh
diff -u llvm/test/TestRunner.sh:1.18 llvm/test/TestRunner.sh:1.19
--- llvm/test/TestRunner.sh:1.18 Wed Apr 25 22:59:24 2007
+++ llvm/test/TestRunner.sh Wed May 16 12:56:56 2007
@@ -11,18 +11,20 @@
# This script is typically used by cd'ing to a test directory and then
# running TestRunner.sh with a list of test file names you want to run.
#
+TESTPATH=`pwd`
+SUBDIR=""
+while test `basename $TESTPATH` != "test" -a ! -z "$TESTPATH" ; do
+ tmp=`basename $TESTPATH`
+ SUBDIR="$tmp/$SUBDIR"
+ TESTPATH=`dirname $TESTPATH`
+done
+
for TESTFILE in "$@" ; do
if test `dirname $TESTFILE` == . ; then
- TESTPATH=`pwd`
- SUBDIR=""
- while test `basename $TESTPATH` != "test" -a ! -z "$TESTPATH" ; do
- tmp=`basename $TESTPATH`
- SUBDIR="$tmp/$SUBDIR"
- TESTPATH=`dirname $TESTPATH`
- done
if test -d "$TESTPATH" ; then
cd $TESTPATH
make check-one TESTONE="$SUBDIR$TESTFILE"
+ cd $PWD
else
echo "Can't find llvm/test directory in " `pwd`
fi
More information about the llvm-commits
mailing list