diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-04-10 19:49:21 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-10 19:49:21 +0000 |
| commit | e3f4197524c569aab190f753a61fcd7d6848b88b (patch) | |
| tree | e8d99c4032f3fea29bca0badfafc18f0a04c81df | |
| parent | 61b35cd15e448b088cf2915aae1931de492978bf (diff) | |
| download | bcm5719-llvm-e3f4197524c569aab190f753a61fcd7d6848b88b.tar.gz bcm5719-llvm-e3f4197524c569aab190f753a61fcd7d6848b88b.zip | |
Support %S in Python TestRunner
llvm-svn: 68814
| -rwxr-xr-x | clang/utils/test/TestRunner.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/utils/test/TestRunner.py b/clang/utils/test/TestRunner.py index 6212f355722..1cb8b9db75b 100755 --- a/clang/utils/test/TestRunner.py +++ b/clang/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'), |

