mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Fix PR1355: Only compute the SUBPATH and TESTDIR once.
llvm-svn: 37108
This commit is contained in:
parent
ebe07d426e
commit
c619d954e7
@ -11,18 +11,20 @@
|
|||||||
# This script is typically used by cd'ing to a test directory and then
|
# 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.
|
# 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
|
for TESTFILE in "$@" ; do
|
||||||
if test `dirname $TESTFILE` == . ; then
|
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
|
if test -d "$TESTPATH" ; then
|
||||||
cd $TESTPATH
|
cd $TESTPATH
|
||||||
make check-one TESTONE="$SUBDIR$TESTFILE"
|
make check-one TESTONE="$SUBDIR$TESTFILE"
|
||||||
|
cd $PWD
|
||||||
else
|
else
|
||||||
echo "Can't find llvm/test directory in " `pwd`
|
echo "Can't find llvm/test directory in " `pwd`
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user