summaryrefslogtreecommitdiffstats
path: root/clang/test/TestRunner.sh
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-05 22:22:35 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-05 22:22:35 +0000
commit5641111e3fedf70e032e096d5aa40e6734e9cecf (patch)
tree5c17a2b4eeb50ec4661f4051f95bf463cb491d51 /clang/test/TestRunner.sh
parentfe37cc831b186f3327b2bcfba9c30e579392b363 (diff)
downloadbcm5719-llvm-5641111e3fedf70e032e096d5aa40e6734e9cecf.tar.gz
bcm5719-llvm-5641111e3fedf70e032e096d5aa40e6734e9cecf.zip
Make use of the Index library through the index-test tool.
'index-test' is now able to provide additional info for a Decl, through multiple AST files: -Find declarations -Find definitions -Find references llvm-svn: 74803
Diffstat (limited to 'clang/test/TestRunner.sh')
-rwxr-xr-xclang/test/TestRunner.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/TestRunner.sh b/clang/test/TestRunner.sh
index bb20728578c..07451eb4859 100755
--- a/clang/test/TestRunner.sh
+++ b/clang/test/TestRunner.sh
@@ -11,6 +11,7 @@
# %S - Replaced with the directory where the input file resides
# %prcontext - prcontext.tcl script
# %t - temporary file name (derived from testcase name)
+# %T - directory of temporary file name
#
FILENAME=$1
@@ -19,6 +20,7 @@ SUBST=$1
FILEDIR=`dirname $TESTNAME`
OUTPUT=Output/$1.out
+OUTPUTDIR=`dirname $OUTPUT`
# create the output directory if it does not already exist
mkdir -p `dirname $OUTPUT` > /dev/null 2>&1
@@ -86,6 +88,7 @@ grep 'RUN:' $FILENAME | \
-e "s|%s|$SUBST|g" \
-e "s|%S|$FILEDIR|g" \
-e "s|%prcontext|prcontext.tcl|g" \
+ -e "s|%T|$OUTPUTDIR|g" \
-e "s|%t|$TEMPOUTPUT|g" > $SCRIPT
IS_XFAIL=0
OpenPOWER on IntegriCloud