Rather than requiring ARM support for the ELF tests (which is odd), move the
tests that require ARM into a subdirectory to use lit to disable them if the
support is not present. Play this game to prevent disabling the ELF tests on
the Windows build bots as they have caught issues in the past with interactions
between various platforms.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210408
91177308-0d34-0410-b5e6-
96231b3b80d8
--- /dev/null
+@ RUN: not llvm-mc -triple arm-elf -filetype asm -o /dev/null %s 2>&1 | FileCheck %s
+
+ .syntax unified
+
+ .type TYPE #32
+// CHECK: error: expected symbol type in directive
+// CHECK: .type TYPE #32
+// CHECK: ^
+
--- /dev/null
+@ RUN: llvm-mc -triple arm-elf -filetype asm -o - %s | FileCheck %s
+
+ .syntax unified
+
+ .type TYPE #STT_FUNC
+// CHECK: .type TYPE,%function
+
+ .type type #function
+// CHECK: .type type,%function
+
+ .type comma_TYPE, #STT_FUNC
+// CHECK: .type comma_TYPE,%function
+
+ .type comma_type, #function
+// CHECK: .type comma_type,%function
+
--- /dev/null
+targets = set(config.root.targets_to_build.split())
+if not 'ARM' in targets:
+ config.unsupported = True
+
+++ /dev/null
-@ RUN: not llvm-mc -triple arm-elf -filetype asm -o /dev/null %s 2>&1 | FileCheck %s
-
- .syntax unified
-
- .type TYPE #32
-// CHECK: error: expected symbol type in directive
-// CHECK: .type TYPE #32
-// CHECK: ^
-
+++ /dev/null
-@ RUN: llvm-mc -triple arm-elf -filetype asm -o - %s | FileCheck %s
-
- .syntax unified
-
- .type TYPE #STT_FUNC
-// CHECK: .type TYPE,%function
-
- .type type #function
-// CHECK: .type type,%function
-
- .type comma_TYPE, #STT_FUNC
-// CHECK: .type comma_TYPE,%function
-
- .type comma_type, #function
-// CHECK: .type comma_type,%function
-