aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-13 01:39:08 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-13 01:39:08 +0000
commit61e88aec10e345617c054125c4fdfdc7a692be47 (patch)
treebf81ef9faa942e33635290dca30e0aa44f39272f /test
parent8b6d1e38583dc7932d23c4803c223f54d79248dd (diff)
downloadexternal_llvm-61e88aec10e345617c054125c4fdfdc7a692be47.zip
external_llvm-61e88aec10e345617c054125c4fdfdc7a692be47.tar.gz
external_llvm-61e88aec10e345617c054125c4fdfdc7a692be47.tar.bz2
Sink llvm-gcc dependent tests into distinct subdirs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/LLVMC/C++/dash-x.cpp (renamed from test/LLVMC/dash-x.cpp)2
-rw-r--r--test/LLVMC/C++/dg.exp5
-rw-r--r--test/LLVMC/C++/hello.cpp (renamed from test/LLVMC/hello.cpp)0
-rw-r--r--test/LLVMC/C++/together.cpp (renamed from test/LLVMC/together.cpp)2
-rw-r--r--test/LLVMC/C/dg.exp5
-rw-r--r--test/LLVMC/C/emit-llvm.c (renamed from test/LLVMC/emit-llvm.c)0
-rw-r--r--test/LLVMC/C/hello.c (renamed from test/LLVMC/hello.c)0
-rw-r--r--test/LLVMC/C/include.c (renamed from test/LLVMC/include.c)0
-rw-r--r--test/LLVMC/C/opt-test.c (renamed from test/LLVMC/opt-test.c)0
-rw-r--r--test/LLVMC/C/sink.c (renamed from test/LLVMC/sink.c)0
-rw-r--r--test/LLVMC/C/wall.c (renamed from test/LLVMC/wall.c)0
-rw-r--r--test/LLVMC/ObjC++/dg.exp5
-rw-r--r--test/LLVMC/ObjC++/hello.mm (renamed from test/LLVMC/hello.mm)0
-rw-r--r--test/LLVMC/ObjC/dg.exp5
-rw-r--r--test/LLVMC/ObjC/hello.m (renamed from test/LLVMC/hello.m)0
-rw-r--r--test/LLVMC/dg.exp3
-rw-r--r--test/LLVMC/llvmc.exp19
17 files changed, 25 insertions, 21 deletions
diff --git a/test/LLVMC/dash-x.cpp b/test/LLVMC/C++/dash-x.cpp
index eb2883d..faf8b30 100644
--- a/test/LLVMC/dash-x.cpp
+++ b/test/LLVMC/C++/dash-x.cpp
@@ -1,5 +1,5 @@
// Test that we can compile .c files as C++ and vice versa
-// RUN: llvmc -x c++ %s -x c %p/test_data/false.cpp -x lisp -x whatnot -x none %p/test_data/false2.cpp -o %t
+// RUN: llvmc -x c++ %s -x c %p/../test_data/false.cpp -x lisp -x whatnot -x none %p/../test_data/false2.cpp -o %t
// RUN: ./%t | grep hello
#include <iostream>
diff --git a/test/LLVMC/C++/dg.exp b/test/LLVMC/C++/dg.exp
new file mode 100644
index 0000000..fc852e3
--- /dev/null
+++ b/test/LLVMC/C++/dg.exp
@@ -0,0 +1,5 @@
+load_lib llvm.exp
+
+if [ llvm_gcc_supports c++ ] then {
+ RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
+}
diff --git a/test/LLVMC/hello.cpp b/test/LLVMC/C++/hello.cpp
index 27c89d6..27c89d6 100644
--- a/test/LLVMC/hello.cpp
+++ b/test/LLVMC/C++/hello.cpp
diff --git a/test/LLVMC/together.cpp b/test/LLVMC/C++/together.cpp
index b07250e..f1320ca 100644
--- a/test/LLVMC/together.cpp
+++ b/test/LLVMC/C++/together.cpp
@@ -1,5 +1,5 @@
// Check that we can compile files of different types together.
-// RUN: llvmc %s %p/test_data/together.c -o %t
+// RUN: llvmc %s %p/../test_data/together.c -o %t
// RUN: ./%t | grep hello
extern "C" void test();
diff --git a/test/LLVMC/C/dg.exp b/test/LLVMC/C/dg.exp
new file mode 100644
index 0000000..a9be28a
--- /dev/null
+++ b/test/LLVMC/C/dg.exp
@@ -0,0 +1,5 @@
+load_lib llvm.exp
+
+if [ llvm_gcc_supports c ] then {
+ RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
+}
diff --git a/test/LLVMC/emit-llvm.c b/test/LLVMC/C/emit-llvm.c
index 38bbba6..38bbba6 100644
--- a/test/LLVMC/emit-llvm.c
+++ b/test/LLVMC/C/emit-llvm.c
diff --git a/test/LLVMC/hello.c b/test/LLVMC/C/hello.c
index 1cda9c3..1cda9c3 100644
--- a/test/LLVMC/hello.c
+++ b/test/LLVMC/C/hello.c
diff --git a/test/LLVMC/include.c b/test/LLVMC/C/include.c
index 07ae761..07ae761 100644
--- a/test/LLVMC/include.c
+++ b/test/LLVMC/C/include.c
diff --git a/test/LLVMC/opt-test.c b/test/LLVMC/C/opt-test.c
index ed2df52..ed2df52 100644
--- a/test/LLVMC/opt-test.c
+++ b/test/LLVMC/C/opt-test.c
diff --git a/test/LLVMC/sink.c b/test/LLVMC/C/sink.c
index 3edbf78..3edbf78 100644
--- a/test/LLVMC/sink.c
+++ b/test/LLVMC/C/sink.c
diff --git a/test/LLVMC/wall.c b/test/LLVMC/C/wall.c
index 2c72ea6..2c72ea6 100644
--- a/test/LLVMC/wall.c
+++ b/test/LLVMC/C/wall.c
diff --git a/test/LLVMC/ObjC++/dg.exp b/test/LLVMC/ObjC++/dg.exp
new file mode 100644
index 0000000..41c3db2
--- /dev/null
+++ b/test/LLVMC/ObjC++/dg.exp
@@ -0,0 +1,5 @@
+load_lib llvm.exp
+
+if [ llvm_gcc_supports obj-c++ ] then {
+ RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{mm}]]
+}
diff --git a/test/LLVMC/hello.mm b/test/LLVMC/ObjC++/hello.mm
index ff82e4a..ff82e4a 100644
--- a/test/LLVMC/hello.mm
+++ b/test/LLVMC/ObjC++/hello.mm
diff --git a/test/LLVMC/ObjC/dg.exp b/test/LLVMC/ObjC/dg.exp
new file mode 100644
index 0000000..18f73a7
--- /dev/null
+++ b/test/LLVMC/ObjC/dg.exp
@@ -0,0 +1,5 @@
+load_lib llvm.exp
+
+if [ llvm_gcc_supports objc ] then {
+ RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{m}]]
+}
diff --git a/test/LLVMC/hello.m b/test/LLVMC/ObjC/hello.m
index 1cda9c3..1cda9c3 100644
--- a/test/LLVMC/hello.m
+++ b/test/LLVMC/ObjC/hello.m
diff --git a/test/LLVMC/dg.exp b/test/LLVMC/dg.exp
new file mode 100644
index 0000000..f7d275a
--- /dev/null
+++ b/test/LLVMC/dg.exp
@@ -0,0 +1,3 @@
+load_lib llvm.exp
+
+RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{td}]]
diff --git a/test/LLVMC/llvmc.exp b/test/LLVMC/llvmc.exp
deleted file mode 100644
index f33e243..0000000
--- a/test/LLVMC/llvmc.exp
+++ /dev/null
@@ -1,19 +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}]]
-}
-
-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/*.{mm}]]
-}
-
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{td}]]