[llvm] r243960 - Update test suite to make "ninja check" succeed without native backend builtin

Mehdi Amini mehdi.amini at apple.com
Mon Aug 3 23:32:55 PDT 2015


Author: mehdi_amini
Date: Tue Aug  4 01:32:54 2015
New Revision: 243960

URL: http://llvm.org/viewvc/llvm-project?rev=243960&view=rev
Log:
Update test suite to make "ninja check" succeed without native backend builtin

Requires "native" feature in most places that were failing.

From: Mehdi Amini <mehdi.amini at apple.com>

Added:
    llvm/trunk/test/CodeGen/Generic/lit.local.cfg
    llvm/trunk/test/DebugInfo/lit.local.cfg
Modified:
    llvm/trunk/test/Feature/optnone-llc.ll
    llvm/trunk/test/Feature/optnone.ll
    llvm/trunk/test/Linker/subprogram-linkonce-weak-odr.ll
    llvm/trunk/test/Linker/subprogram-linkonce-weak.ll
    llvm/trunk/test/Linker/type-unique-odr-a.ll
    llvm/trunk/test/Linker/type-unique-simple-a.ll
    llvm/trunk/test/Linker/type-unique-simple2-a.ll
    llvm/trunk/test/Linker/type-unique-simple2.ll
    llvm/trunk/test/Linker/type-unique-type-array-a.ll
    llvm/trunk/test/Other/2010-05-06-Printer.ll
    llvm/trunk/test/Transforms/BranchFolding/2007-10-19-InlineAsmDirectives.ll
    llvm/trunk/test/tools/llvm-mc/fatal_warnings.test
    llvm/trunk/test/tools/llvm-mc/line_end_with_space.test
    llvm/trunk/test/tools/llvm-mc/no_warnings.test
    llvm/trunk/test/tools/lto/opt-level.ll

Added: llvm/trunk/test/CodeGen/Generic/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Generic/lit.local.cfg?rev=243960&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/lit.local.cfg (added)
+++ llvm/trunk/test/CodeGen/Generic/lit.local.cfg Tue Aug  4 01:32:54 2015
@@ -0,0 +1,3 @@
+if 'native' not in config.available_features:
+    config.unsupported = True
+

Added: llvm/trunk/test/DebugInfo/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/lit.local.cfg?rev=243960&view=auto
==============================================================================
--- llvm/trunk/test/DebugInfo/lit.local.cfg (added)
+++ llvm/trunk/test/DebugInfo/lit.local.cfg Tue Aug  4 01:32:54 2015
@@ -0,0 +1,3 @@
+if 'native' not in config.available_features:
+    config.unsupported = True
+

Modified: llvm/trunk/test/Feature/optnone-llc.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Feature/optnone-llc.ll?rev=243960&r1=243959&r2=243960&view=diff
==============================================================================
--- llvm/trunk/test/Feature/optnone-llc.ll (original)
+++ llvm/trunk/test/Feature/optnone-llc.ll Tue Aug  4 01:32:54 2015
@@ -4,7 +4,7 @@
 ; RUN: llc -O3 -debug %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=LLC-Ox
 ; RUN: llc -misched-postra -debug %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=LLC-MORE
 
-; REQUIRES: asserts
+; REQUIRES: asserts, native
 
 ; This test verifies that we don't run Machine Function optimizations
 ; on optnone functions.

Modified: llvm/trunk/test/Feature/optnone.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Feature/optnone.ll?rev=243960&r1=243959&r2=243960&view=diff
==============================================================================
--- llvm/trunk/test/Feature/optnone.ll (original)
+++ llvm/trunk/test/Feature/optnone.ll Tue Aug  4 01:32:54 2015
@@ -1,4 +1,5 @@
 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+; REQUIRE: native
 
 ; Check for the presence of attribute optnone in the disassembly.
 

Modified: llvm/trunk/test/Linker/subprogram-linkonce-weak-odr.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/subprogram-linkonce-weak-odr.ll?rev=243960&r1=243959&r2=243960&view=diff
==============================================================================
--- llvm/trunk/test/Linker/subprogram-linkonce-weak-odr.ll (original)
+++ llvm/trunk/test/Linker/subprogram-linkonce-weak-odr.ll Tue Aug  4 01:32:54 2015
@@ -1,3 +1,4 @@
+; REQUIRES: native
 ; RUN: llvm-link %s %S/Inputs/subprogram-linkonce-weak-odr.ll -S -o %t1
 ; RUN: FileCheck %s -check-prefix=LW -check-prefix=CHECK <%t1
 ; RUN: llvm-link %S/Inputs/subprogram-linkonce-weak-odr.ll %s -S -o %t2

Modified: llvm/trunk/test/Linker/subprogram-linkonce-weak.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/subprogram-linkonce-weak.ll?rev=243960&r1=243959&r2=243960&view=diff
==============================================================================
--- llvm/trunk/test/Linker/subprogram-linkonce-weak.ll (original)
+++ llvm/trunk/test/Linker/subprogram-linkonce-weak.ll Tue Aug  4 01:32:54 2015
@@ -1,3 +1,4 @@
+; REQUIRES: native
 ; RUN: llvm-link %s %S/Inputs/subprogram-linkonce-weak.ll -S -o %t1
 ; RUN: FileCheck %s -check-prefix=LW -check-prefix=CHECK <%t1
 ; RUN: llvm-link %S/Inputs/subprogram-linkonce-weak.ll %s -S -o %t2

Modified: llvm/trunk/test/Linker/type-unique-odr-a.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/type-unique-odr-a.ll?rev=243960&r1=243959&r2=243960&view=diff
==============================================================================
--- llvm/trunk/test/Linker/type-unique-odr-a.ll (original)
+++ llvm/trunk/test/Linker/type-unique-odr-a.ll Tue Aug  4 01:32:54 2015
@@ -1,4 +1,4 @@
-; REQUIRES: object-emission
+; REQUIRES: object-emission, native
 ;
 ; RUN: llvm-link %s %p/type-unique-odr-b.ll -S -o - | %llc_dwarf -filetype=obj -O0 | llvm-dwarfdump -debug-dump=info - | FileCheck %s
 ;

Modified: llvm/trunk/test/Linker/type-unique-simple-a.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/type-unique-simple-a.ll?rev=243960&r1=243959&r2=243960&view=diff
==============================================================================
--- llvm/trunk/test/Linker/type-unique-simple-a.ll (original)
+++ llvm/trunk/test/Linker/type-unique-simple-a.ll Tue Aug  4 01:32:54 2015
@@ -1,4 +1,4 @@
-; REQUIRES: object-emission
+; REQUIRES: object-emission, native
 
 ; RUN: llvm-link %s %p/type-unique-simple-b.ll -S -o %t
 ; RUN: cat %t | FileCheck %s -check-prefix=LINK

Modified: llvm/trunk/test/Linker/type-unique-simple2-a.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/type-unique-simple2-a.ll?rev=243960&r1=243959&r2=243960&view=diff
==============================================================================
--- llvm/trunk/test/Linker/type-unique-simple2-a.ll (original)
+++ llvm/trunk/test/Linker/type-unique-simple2-a.ll Tue Aug  4 01:32:54 2015
@@ -1,4 +1,4 @@
-; REQUIRES: object-emission
+; REQUIRES: object-emission, native
 ;
 ; RUN: llvm-link %s %p/type-unique-simple2-b.ll -S -o - | %llc_dwarf -filetype=obj -O0 | llvm-dwarfdump -debug-dump=info - | FileCheck %s
 ;

Modified: llvm/trunk/test/Linker/type-unique-simple2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/type-unique-simple2.ll?rev=243960&r1=243959&r2=243960&view=diff
==============================================================================
--- llvm/trunk/test/Linker/type-unique-simple2.ll (original)
+++ llvm/trunk/test/Linker/type-unique-simple2.ll Tue Aug  4 01:32:54 2015
@@ -1,4 +1,4 @@
-; REQUIRES: object-emission
+; REQUIRES: object-emission; native
 
 ; RUN: llvm-link %S/Inputs/type-unique-simple2-a.ll %S/Inputs/type-unique-simple2-b.ll -S -o %t
 ; RUN: cat %t | FileCheck %S/Inputs/type-unique-simple2-a.ll -check-prefix=LINK

Modified: llvm/trunk/test/Linker/type-unique-type-array-a.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/type-unique-type-array-a.ll?rev=243960&r1=243959&r2=243960&view=diff
==============================================================================
--- llvm/trunk/test/Linker/type-unique-type-array-a.ll (original)
+++ llvm/trunk/test/Linker/type-unique-type-array-a.ll Tue Aug  4 01:32:54 2015
@@ -1,4 +1,4 @@
-; REQUIRES: object-emission
+; REQUIRES: object-emission, native
 ;
 ; RUN: llvm-link %s %p/type-unique-type-array-b.ll -S -o - | %llc_dwarf -filetype=obj -O0 | llvm-dwarfdump -debug-dump=info - | FileCheck %s
 ;

Modified: llvm/trunk/test/Other/2010-05-06-Printer.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Other/2010-05-06-Printer.ll?rev=243960&r1=243959&r2=243960&view=diff
==============================================================================
--- llvm/trunk/test/Other/2010-05-06-Printer.ll (original)
+++ llvm/trunk/test/Other/2010-05-06-Printer.ll Tue Aug  4 01:32:54 2015
@@ -1,3 +1,4 @@
+; REQUIRES: native
 ; RUN: llc -O2 -print-after-all < %s 2>/dev/null
 
 define void @tester(){

Modified: llvm/trunk/test/Transforms/BranchFolding/2007-10-19-InlineAsmDirectives.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/BranchFolding/2007-10-19-InlineAsmDirectives.ll?rev=243960&r1=243959&r2=243960&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/BranchFolding/2007-10-19-InlineAsmDirectives.ll (original)
+++ llvm/trunk/test/Transforms/BranchFolding/2007-10-19-InlineAsmDirectives.ll Tue Aug  4 01:32:54 2015
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -O3 | llc -no-integrated-as | FileCheck %s
-
+; REQUIRES: X86
 ;; We don't want branch folding to fold asm directives.
 
 ; CHECK: bork_directive

Modified: llvm/trunk/test/tools/llvm-mc/fatal_warnings.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mc/fatal_warnings.test?rev=243960&r1=243959&r2=243960&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mc/fatal_warnings.test (original)
+++ llvm/trunk/test/tools/llvm-mc/fatal_warnings.test Tue Aug  4 01:32:54 2015
@@ -1,5 +1,6 @@
 # RUN: not llvm-mc --fatal-warnings %s 2>&1 | FileCheck %s
 # XFAIL: hexagon
+# REQUIRES: native
 
 # CHECK: error: .warning directive invoked in source file
 .warning

Modified: llvm/trunk/test/tools/llvm-mc/line_end_with_space.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mc/line_end_with_space.test?rev=243960&r1=243959&r2=243960&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mc/line_end_with_space.test (original)
+++ llvm/trunk/test/tools/llvm-mc/line_end_with_space.test Tue Aug  4 01:32:54 2015
@@ -1,2 +1,2 @@
 RUN: llvm-mc -disassemble %s
- 
\ No newline at end of file
+# REQUIRES: native

Modified: llvm/trunk/test/tools/llvm-mc/no_warnings.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mc/no_warnings.test?rev=243960&r1=243959&r2=243960&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mc/no_warnings.test (original)
+++ llvm/trunk/test/tools/llvm-mc/no_warnings.test Tue Aug  4 01:32:54 2015
@@ -1,5 +1,6 @@
 # RUN: llvm-mc --no-warn %s 2>&1 | FileCheck %s
 # XFAIL: hexagon
+# REQUIRES: native
 
 # CHECK-NOT: warning:
 .warning

Modified: llvm/trunk/test/tools/lto/opt-level.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/lto/opt-level.ll?rev=243960&r1=243959&r2=243960&view=diff
==============================================================================
--- llvm/trunk/test/tools/lto/opt-level.ll (original)
+++ llvm/trunk/test/tools/lto/opt-level.ll Tue Aug  4 01:32:54 2015
@@ -3,6 +3,7 @@
 ; RUN: llvm-nm -no-llvm-bc %t.dylib | FileCheck --check-prefix=CHECK-O0 %s
 ; RUN: %ld64 -lto_library %llvmshlibdir/libLTO.dylib -arch x86_64 -dylib -mllvm -O2 -o %t.dylib %t.o
 ; RUN: llvm-nm -no-llvm-bc %t.dylib | FileCheck --check-prefix=CHECK-O2 %s
+; REQUIRES: X86
 
 target triple = "x86_64-apple-macosx10.8.0"
 





More information about the llvm-commits mailing list