summaryrefslogtreecommitdiff
path: root/test/LLVMC/dg.exp
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-02-08 11:44:37 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-02-08 11:44:37 +0000
commit6dff394afda28f66a521246d0562dc788995a577 (patch)
treef6c40ccee78e7ec13f6437b7e2b3ef6d29a2fb92 /test/LLVMC/dg.exp
parent0a1fcce09230e9b4bd30a8f07447aa075dce7470 (diff)
downloadllvm-6dff394afda28f66a521246d0562dc788995a577.tar.gz
llvm-6dff394afda28f66a521246d0562dc788995a577.tar.bz2
llvm-6dff394afda28f66a521246d0562dc788995a577.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64084 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/LLVMC/dg.exp')
-rw-r--r--test/LLVMC/dg.exp26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/LLVMC/dg.exp b/test/LLVMC/dg.exp
new file mode 100644
index 0000000000..75ae326617
--- /dev/null
+++ b/test/LLVMC/dg.exp
@@ -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}]]