From 16154ef9f953aa05c14db64b74bd40cf4473bee4 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 21 Apr 2007 20:41:27 +0000 Subject: [PATCH] Use the llvm_supports_target function to prevent running of tests for targets that LLVM is not configured to support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36315 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/ARM/dg.exp | 4 +++- test/CodeGen/Alpha/dg.exp | 4 +++- test/CodeGen/CBackend/dg.exp | 4 +++- test/CodeGen/IA64/dg.exp | 4 +++- test/CodeGen/PowerPC/dg.exp | 4 +++- test/CodeGen/SPARC/dg.exp | 4 +++- test/CodeGen/X86/dg.exp | 4 +++- 7 files changed, 21 insertions(+), 7 deletions(-) diff --git a/test/CodeGen/ARM/dg.exp b/test/CodeGen/ARM/dg.exp index 879685ca879..ba4ade5c104 100644 --- a/test/CodeGen/ARM/dg.exp +++ b/test/CodeGen/ARM/dg.exp @@ -1,3 +1,5 @@ load_lib llvm.exp -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] +if { [llvm_supports_target ARM] } { + RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] +} diff --git a/test/CodeGen/Alpha/dg.exp b/test/CodeGen/Alpha/dg.exp index 39954d8a498..fb9f710b295 100644 --- a/test/CodeGen/Alpha/dg.exp +++ b/test/CodeGen/Alpha/dg.exp @@ -1,3 +1,5 @@ load_lib llvm.exp -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll}]] +if { [llvm_supports_target Alpha] } { + RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll}]] +} diff --git a/test/CodeGen/CBackend/dg.exp b/test/CodeGen/CBackend/dg.exp index 879685ca879..304b90f4ff0 100644 --- a/test/CodeGen/CBackend/dg.exp +++ b/test/CodeGen/CBackend/dg.exp @@ -1,3 +1,5 @@ load_lib llvm.exp -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] +if { [llvm_supports_target CBackend] } { + RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] +} diff --git a/test/CodeGen/IA64/dg.exp b/test/CodeGen/IA64/dg.exp index 879685ca879..32e44b4aec5 100644 --- a/test/CodeGen/IA64/dg.exp +++ b/test/CodeGen/IA64/dg.exp @@ -1,3 +1,5 @@ load_lib llvm.exp -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] +if { [llvm_supports_target IA64] } { + RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] +} diff --git a/test/CodeGen/PowerPC/dg.exp b/test/CodeGen/PowerPC/dg.exp index 879685ca879..22b60bc721f 100644 --- a/test/CodeGen/PowerPC/dg.exp +++ b/test/CodeGen/PowerPC/dg.exp @@ -1,3 +1,5 @@ load_lib llvm.exp -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] +if { [llvm_supports_target PowerPC] } { + RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] +} diff --git a/test/CodeGen/SPARC/dg.exp b/test/CodeGen/SPARC/dg.exp index 879685ca879..a1ce6a10612 100644 --- a/test/CodeGen/SPARC/dg.exp +++ b/test/CodeGen/SPARC/dg.exp @@ -1,3 +1,5 @@ load_lib llvm.exp -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] +if { [llvm_supports_target Sparc] } { + RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] +} diff --git a/test/CodeGen/X86/dg.exp b/test/CodeGen/X86/dg.exp index 879685ca879..161fccceb09 100644 --- a/test/CodeGen/X86/dg.exp +++ b/test/CodeGen/X86/dg.exp @@ -1,3 +1,5 @@ load_lib llvm.exp -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] +if { [llvm_supports_target X86] } { + RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] +} -- 2.34.1