]> granicus.if.org Git - clang/commitdiff
Support %S in Python TestRunner
authorDaniel Dunbar <daniel@zuster.org>
Fri, 10 Apr 2009 19:49:21 +0000 (19:49 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 10 Apr 2009 19:49:21 +0000 (19:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68814 91177308-0d34-0410-b5e6-96231b3b80d8

utils/test/TestRunner.py

index 6212f35572287394a231e1809eafe9b84a9f036d..1cb8b9db75b9515196ecd94e084d13c4c70dd620 100755 (executable)
@@ -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'),