llvm.org GIT mirror llvm / 78fb2ac
Changes to fix problems with "make check". Apparently you can redefine functions and Tcl's just tickled with that. The fix is to give the "new" test system a different interface function name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36022 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
7 changed file(s) with 11 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
0 load_lib llvm.exp
11
2 llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
33
0 load_lib llvm.exp
11
2 llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
0 load_lib llvm.exp
11
2 llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
0 load_lib llvm.exp
11
2 llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
0 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
1 ; RUN: grep {ret i1 false}
1 ; RUN: grep {ret i1 false}
22 bool %test(bool %V) {
33 %Y = setlt bool %V, false
44 ret bool %Y
0 load_lib llvm.exp
11
2 llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
3939
4040 proc substitute { line test tmpFile } {
4141 global srcroot objroot srcdir objdir subdir target_triplet prcontext
42 global llvmgcc llvmgxx global llvmgcc_version llvmgccmajvers
42 global llvmgcc llvmgxx llvmgcc_version llvmgccmajvers
4343 global gccpath gxxpath compile_c compile_cxx link shlibext llvmlibsdir
44 set path [file join $srcdir $subdir]
45 set tmp [file join Output $tmpFile]
4446
4547 set new_line $line
4648 #replace %prcontext with prcontext.tcl (Must replace before %p)
6870 return $new_line
6971 }
7072
71 proc llvm-runtest { programs } {
73 proc RunLLVMTests { test_source_files } {
7274 global srcroot objroot srcdir objdir subdir target_triplet
7375 set timeout 60
7476
8486
8587 file mkdir Output
8688
87 foreach test $programs {
89 foreach test $test_source_files {
8890 #Should figure out best way to set the timeout
8991 #set timeout 40
9092