diff options
-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'), |