[llvm-commits] [llvm] r64084 - in /llvm/trunk/test/LLVMC: dg.exp llvmc.exp
Mikhail Glushenkov
foldr at codedgers.com
Sun Feb 8 03:44:46 PST 2009
Author: foldr
Date: Sun Feb 8 05:44:37 2009
New Revision: 64084
URL: http://llvm.org/viewvc/llvm-project?rev=64084&view=rev
Log:
The 'false.c' test must depend on llvm-g++.
Also, turn on Objective-C/C++ tests.
This should fix http://llvm.org/bugs/show_bug.cgi?id=3499.
Added:
llvm/trunk/test/LLVMC/dg.exp
Removed:
llvm/trunk/test/LLVMC/llvmc.exp
Added: llvm/trunk/test/LLVMC/dg.exp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/dg.exp?rev=64084&view=auto
==============================================================================
--- llvm/trunk/test/LLVMC/dg.exp (added)
+++ llvm/trunk/test/LLVMC/dg.exp Sun Feb 8 05:44:37 2009
@@ -0,0 +1,26 @@
+load_lib llvm.exp
+
+set special_file "$srcdir/$subdir/false.c"
+
+if [ llvm_gcc_supports c ] then {
+ # tcl seems to lack 'filter' which would've made this easier...
+ set temp [glob -nocomplain $srcdir/$subdir/*.{c}]
+ set c_files [list]
+ foreach f $temp { if {$f != $special_file} {lappend c_files $f}}
+
+ RunLLVMTests [lsort $c_files]
+}
+
+if [ llvm_gcc_supports c++ ] then {
+ RunLLVMTests [lsort [concat [glob -nocomplain $srcdir/$subdir/*.{cpp}] $special_file]]
+}
+
+if [ llvm_gcc_supports objc ] then {
+ RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{m}]]
+}
+
+if [ llvm_gcc_supports obj-c++ ] then {
+ RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{m}]]
+}
+
+RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{td}]]
Removed: llvm/trunk/test/LLVMC/llvmc.exp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/llvmc.exp?rev=64083&view=auto
==============================================================================
--- llvm/trunk/test/LLVMC/llvmc.exp (original)
+++ llvm/trunk/test/LLVMC/llvmc.exp (removed)
@@ -1,11 +0,0 @@
-load_lib llvm.exp
-
-if [ llvm_gcc_supports c ] then {
- RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{c}]]
-}
-
-if [ llvm_gcc_supports c++ ] then {
- RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{cpp}]]
-}
-
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{td}]]
More information about the llvm-commits
mailing list