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
This commit is contained in:
Daniel Dunbar 2009-09-13 01:39:08 +00:00
parent 43c8a06266
commit 8a2b012ba7
17 changed files with 25 additions and 21 deletions

View 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>

5
test/LLVMC/C++/dg.exp Normal file
View File

@ -0,0 +1,5 @@
load_lib llvm.exp
if [ llvm_gcc_supports c++ ] then {
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
}

View 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();

5
test/LLVMC/C/dg.exp Normal file
View File

@ -0,0 +1,5 @@
load_lib llvm.exp
if [ llvm_gcc_supports c ] then {
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
}

5
test/LLVMC/ObjC++/dg.exp Normal file
View File

@ -0,0 +1,5 @@
load_lib llvm.exp
if [ llvm_gcc_supports obj-c++ ] then {
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{mm}]]
}

5
test/LLVMC/ObjC/dg.exp Normal file
View File

@ -0,0 +1,5 @@
load_lib llvm.exp
if [ llvm_gcc_supports objc ] then {
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{m}]]
}

3
test/LLVMC/dg.exp Normal file
View File

@ -0,0 +1,3 @@
load_lib llvm.exp
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{td}]]

View File

@ -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}]]