aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-10 19:49:21 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-10 19:49:21 +0000
commit4d8076a0e437d9fd902088cc221ae438714adfae (patch)
treef7bc1ea79e8c9dc49ba38dca7ee93e9838796392
parentb7477cf6cf6cf4f132ba7beff42684e59bed15f4 (diff)
Support %S in Python TestRunner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68814 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xutils/test/TestRunner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/test/TestRunner.py b/utils/test/TestRunner.py
index 6212f35572..1cb8b9db75 100755
--- a/utils/test/TestRunner.py
+++ b/utils/test/TestRunner.py
@@ -8,6 +8,7 @@
#
# %s - Replaced with the input name of the program, or the program to
# execute, as appropriate.
+# %S - Replaced with the directory where the input resides.
# %llvmgcc - llvm-gcc command
# %llvmgxx - llvm-g++ command
# %prcontext - prcontext.tcl script
@@ -103,6 +104,7 @@ def runOneTest(FILENAME, SUBST, OUTPUT, TESTNAME, CLANG,
TEMPOUTPUT = OUTPUT + '.tmp'
substitutions = [('%s',SUBST),
+ ('%S',os.path.dirname(SUBST)),
('%llvmgcc','llvm-gcc -emit-llvm -w'),
('%llvmgxx','llvm-g++ -emit-llvm -w'),
('%prcontext','prcontext.tcl'),