test: move some tests into ARM directory
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 8 Jun 2014 01:04:05 +0000 (01:04 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 8 Jun 2014 01:04:05 +0000 (01:04 +0000)
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

test/MC/ELF/ARM/gnu-type-hash-diagnostics.s [new file with mode: 0644]
test/MC/ELF/ARM/gnu-type-hash.s [new file with mode: 0644]
test/MC/ELF/ARM/lit.local.cfg [new file with mode: 0644]
test/MC/ELF/gnu-type-hash-diagnostics.s [deleted file]
test/MC/ELF/gnu-type-hash.s [deleted file]

diff --git a/test/MC/ELF/ARM/gnu-type-hash-diagnostics.s b/test/MC/ELF/ARM/gnu-type-hash-diagnostics.s
new file mode 100644 (file)
index 0000000..eb36475
--- /dev/null
@@ -0,0 +1,9 @@
+@ 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:             ^
+
diff --git a/test/MC/ELF/ARM/gnu-type-hash.s b/test/MC/ELF/ARM/gnu-type-hash.s
new file mode 100644 (file)
index 0000000..ae5c47c
--- /dev/null
@@ -0,0 +1,16 @@
+@ 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
+
diff --git a/test/MC/ELF/ARM/lit.local.cfg b/test/MC/ELF/ARM/lit.local.cfg
new file mode 100644 (file)
index 0000000..ba8a4fb
--- /dev/null
@@ -0,0 +1,4 @@
+targets = set(config.root.targets_to_build.split())
+if not 'ARM' in targets:
+  config.unsupported = True
+
diff --git a/test/MC/ELF/gnu-type-hash-diagnostics.s b/test/MC/ELF/gnu-type-hash-diagnostics.s
deleted file mode 100644 (file)
index eb36475..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-@ 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:             ^
-
diff --git a/test/MC/ELF/gnu-type-hash.s b/test/MC/ELF/gnu-type-hash.s
deleted file mode 100644 (file)
index ae5c47c..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-@ 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
-