diff options
author | Tanya Lattner <tonic@nondot.org> | 2004-11-07 05:02:56 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2004-11-07 05:02:56 +0000 |
commit | 70053a51609e4915cd2209425143a08462e69c2c (patch) | |
tree | d157b28b217e118ec4b710e1a9330bb5d7c1af14 | |
parent | 60896169465c278307df4d3c0defde20d64d6e2d (diff) |
With the changes to these files, the Regression test suite should be tested by dejagnu without anyproblem.
Some variables could be made global.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17557 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/lib/llvm-dg.exp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/test/lib/llvm-dg.exp b/test/lib/llvm-dg.exp index a90477073f..77722c72af 100644 --- a/test/lib/llvm-dg.exp +++ b/test/lib/llvm-dg.exp @@ -1,4 +1,4 @@ -proc llvm-runtest { programs srcdir subdir target_triplet} { +proc llvm-runtest { programs srcdir subdir target_triplet llvmgcc llvmgxx prcontext} { set path [file join $srcdir $subdir] @@ -37,9 +37,19 @@ proc llvm-runtest { programs srcdir subdir target_triplet} { #replace %s with filename regsub -all {%s} $runline $filename new_runline - + + #replace %t with temp filenames regsub -all {%t} $new_runline [file join Output $tmpFile] 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 actual path to llvmg++ (Goes away when we remove qmtest) + regsub -all {%prcontext} $new_runline "python $prcontext" new_runline + puts $scriptFileId $new_runline } elseif {[regexp {XFAIL:[ *](.+)} $line match targets]} { set targets |