OSDN Git Service

Sink llvm-gcc dependent tests into distinct subdirs.
authorDaniel Dunbar <daniel@zuster.org>
Sun, 13 Sep 2009 01:39:08 +0000 (01:39 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sun, 13 Sep 2009 01:39:08 +0000 (01:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81661 91177308-0d34-0410-b5e6-96231b3b80d8

17 files changed:
test/LLVMC/C++/dash-x.cpp [moved from test/LLVMC/dash-x.cpp with 67% similarity]
test/LLVMC/C++/dg.exp [new file with mode: 0644]
test/LLVMC/C++/hello.cpp [moved from test/LLVMC/hello.cpp with 100% similarity]
test/LLVMC/C++/together.cpp [moved from test/LLVMC/together.cpp with 73% similarity]
test/LLVMC/C/dg.exp [new file with mode: 0644]
test/LLVMC/C/emit-llvm.c [moved from test/LLVMC/emit-llvm.c with 100% similarity]
test/LLVMC/C/hello.c [moved from test/LLVMC/hello.c with 100% similarity]
test/LLVMC/C/include.c [moved from test/LLVMC/include.c with 100% similarity]
test/LLVMC/C/opt-test.c [moved from test/LLVMC/opt-test.c with 100% similarity]
test/LLVMC/C/sink.c [moved from test/LLVMC/sink.c with 100% similarity]
test/LLVMC/C/wall.c [moved from test/LLVMC/wall.c with 100% similarity]
test/LLVMC/ObjC++/dg.exp [new file with mode: 0644]
test/LLVMC/ObjC++/hello.mm [moved from test/LLVMC/hello.mm with 100% similarity]
test/LLVMC/ObjC/dg.exp [new file with mode: 0644]
test/LLVMC/ObjC/hello.m [moved from test/LLVMC/hello.m with 100% similarity]
test/LLVMC/dg.exp [new file with mode: 0644]
test/LLVMC/llvmc.exp [deleted file]

similarity index 67%
rename from test/LLVMC/dash-x.cpp
rename to test/LLVMC/C++/dash-x.cpp
index eb2883d..faf8b30 100644 (file)
@@ -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 (file)
index 0000000..fc852e3
--- /dev/null
@@ -0,0 +1,5 @@
+load_lib llvm.exp
+
+if [ llvm_gcc_supports c++ ] then {
+  RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
+}
similarity index 73%
rename from test/LLVMC/together.cpp
rename to test/LLVMC/C++/together.cpp
index b07250e..f1320ca 100644 (file)
@@ -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 (file)
index 0000000..a9be28a
--- /dev/null
@@ -0,0 +1,5 @@
+load_lib llvm.exp
+
+if [ llvm_gcc_supports c ] then {
+  RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
+}
similarity index 100%
rename from test/LLVMC/hello.c
rename to test/LLVMC/C/hello.c
similarity index 100%
rename from test/LLVMC/include.c
rename to test/LLVMC/C/include.c
similarity index 100%
rename from test/LLVMC/sink.c
rename to test/LLVMC/C/sink.c
similarity index 100%
rename from test/LLVMC/wall.c
rename to test/LLVMC/C/wall.c
diff --git a/test/LLVMC/ObjC++/dg.exp b/test/LLVMC/ObjC++/dg.exp
new file mode 100644 (file)
index 0000000..41c3db2
--- /dev/null
@@ -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/ObjC/dg.exp b/test/LLVMC/ObjC/dg.exp
new file mode 100644 (file)
index 0000000..18f73a7
--- /dev/null
@@ -0,0 +1,5 @@
+load_lib llvm.exp
+
+if [ llvm_gcc_supports objc ] then {
+    RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{m}]]
+}
similarity index 100%
rename from test/LLVMC/hello.m
rename to test/LLVMC/ObjC/hello.m
diff --git a/test/LLVMC/dg.exp b/test/LLVMC/dg.exp
new file mode 100644 (file)
index 0000000..f7d275a
--- /dev/null
@@ -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 (file)
index f33e243..0000000
+++ /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}]]