diff options
author | Tanya Lattner <tonic@nondot.org> | 2004-11-19 22:46:23 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2004-11-19 22:46:23 +0000 |
commit | f9e7943915edf1945e9cbf81930bc5271bad60db (patch) | |
tree | 781726b24d71220ec37d7f196c0670faae6c09bd /test/lib | |
parent | c8c1f12778e543bf89b2cd5cf77f8d81e9ccfcac (diff) |
Adding srcdir arg. Added ability to specify the path to an input file. This is needed for when srcdir != objdir.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18021 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/llvm-dg.exp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/test/lib/llvm-dg.exp b/test/lib/llvm-dg.exp index 8363af7807..7c104c0f46 100644 --- a/test/lib/llvm-dg.exp +++ b/test/lib/llvm-dg.exp @@ -1,4 +1,4 @@ -proc llvm-runtest { programs objdir subdir target_triplet llvmgcc llvmgxx prcontext} { +proc llvm-runtest { programs objdir srcdir subdir target_triplet llvmgcc llvmgxx prcontext} { set path [file join $objdir $subdir] @@ -14,7 +14,9 @@ proc llvm-runtest { programs objdir subdir target_triplet llvmgcc llvmgxx prcont foreach test $programs { - set timeout 40 + #Should figure out best way to set the timeout + #set timeout 40 + set filename [file tail $test] set output [file join Output $filename.out] set script $output.script @@ -46,15 +48,18 @@ proc llvm-runtest { programs objdir subdir target_triplet llvmgcc llvmgxx prcont #replace %t with temp filenames regsub -all {%t} $new_runline [file join Output $tmpFile] new_runline + #replace %prcontext with prcontext.tcl (Must replace before %p) + regsub -all {%prcontext} $new_runline $prcontext new_runline + + #replace %p with path to source, + regsub -all {%p} $new_runline $srcdir new_runline + #replace %llvmgcc with actual path to llvmgcc regsub -all {%llvmgcc} $new_runline $llvmgcc new_runline #replace %llvmgxx with actual path to llvmg++ regsub -all {%llvmgxx} $new_runline $llvmgxx new_runline - #replace %prcontext with prcontext.tcl (Goes away when we remove qmtest) - regsub -all {%prcontext} $new_runline $prcontext new_runline - puts $scriptFileId $new_runline } elseif {[regexp {XFAIL:[ *](.+)} $line match targets]} { set targets |