[cfe-commits] r68814 - /cfe/trunk/utils/test/TestRunner.py

Daniel Dunbar daniel at zuster.org
Fri Apr 10 12:49:22 PDT 2009


Author: ddunbar
Date: Fri Apr 10 14:49:21 2009
New Revision: 68814

URL: http://llvm.org/viewvc/llvm-project?rev=68814&view=rev
Log:
Support %S in Python TestRunner

Modified:
    cfe/trunk/utils/test/TestRunner.py

Modified: cfe/trunk/utils/test/TestRunner.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/test/TestRunner.py?rev=68814&r1=68813&r2=68814&view=diff

==============================================================================
--- cfe/trunk/utils/test/TestRunner.py (original)
+++ cfe/trunk/utils/test/TestRunner.py Fri Apr 10 14:49:21 2009
@@ -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 @@
     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'),





More information about the cfe-commits mailing list