From: Daniel Dunbar Date: Fri, 10 Apr 2009 19:49:21 +0000 (+0000) Subject: Support %S in Python TestRunner X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d8076a0e437d9fd902088cc221ae438714adfae;p=clang Support %S in Python TestRunner git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68814 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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'),