[llvm] 0d96422 - [Object][Wasm] Move wasm Object tests into their own directory (NFC) (#81072)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 11 09:30:52 PDT 2024
Author: Derek Schuff
Date: 2024-04-11T09:30:48-07:00
New Revision: 0d96422768908a8235f05a5d3b1d43ecc6038004
URL: https://github.com/llvm/llvm-project/commit/0d96422768908a8235f05a5d3b1d43ecc6038004
DIFF: https://github.com/llvm/llvm-project/commit/0d96422768908a8235f05a5d3b1d43ecc6038004.diff
LOG: [Object][Wasm] Move wasm Object tests into their own directory (NFC) (#81072)
Added:
llvm/test/Object/Wasm/bad-data-symbol.yaml
llvm/test/Object/Wasm/bad-metadata-version.yaml
llvm/test/Object/Wasm/bad-reloc-type.test
llvm/test/Object/Wasm/bad-relocation.yaml
llvm/test/Object/Wasm/bad-symbol-type.test
llvm/test/Object/Wasm/duplicate-name.test
llvm/test/Object/Wasm/invalid-file.yaml
llvm/test/Object/Wasm/invalid-section-order.test
llvm/test/Object/Wasm/invalid-start.test
llvm/test/Object/Wasm/linked-namesec-with-linkingsec.yaml
llvm/test/Object/Wasm/linked-symbol-table.yaml
llvm/test/Object/Wasm/missing-version.test
llvm/test/Object/Wasm/obj2yaml-tables.test
llvm/test/Object/Wasm/relocs-and-producers.yaml
llvm/test/Object/Wasm/string-outside-section.test
Modified:
Removed:
llvm/test/Object/wasm-bad-data-symbol.yaml
llvm/test/Object/wasm-bad-metadata-version.yaml
llvm/test/Object/wasm-bad-reloc-type.test
llvm/test/Object/wasm-bad-relocation.yaml
llvm/test/Object/wasm-bad-symbol-type.test
llvm/test/Object/wasm-duplicate-name.test
llvm/test/Object/wasm-invalid-file.yaml
llvm/test/Object/wasm-invalid-section-order.test
llvm/test/Object/wasm-invalid-start.test
llvm/test/Object/wasm-linked-namesec-with-linkingsec.yaml
llvm/test/Object/wasm-linked-symbol-table.yaml
llvm/test/Object/wasm-missing-version.test
llvm/test/Object/wasm-obj2yaml-tables.test
llvm/test/Object/wasm-relocs-and-producers.yaml
llvm/test/Object/wasm-string-outside-section.test
################################################################################
diff --git a/llvm/test/Object/wasm-bad-data-symbol.yaml b/llvm/test/Object/Wasm/bad-data-symbol.yaml
similarity index 100%
rename from llvm/test/Object/wasm-bad-data-symbol.yaml
rename to llvm/test/Object/Wasm/bad-data-symbol.yaml
diff --git a/llvm/test/Object/wasm-bad-metadata-version.yaml b/llvm/test/Object/Wasm/bad-metadata-version.yaml
similarity index 100%
rename from llvm/test/Object/wasm-bad-metadata-version.yaml
rename to llvm/test/Object/Wasm/bad-metadata-version.yaml
diff --git a/llvm/test/Object/Wasm/bad-reloc-type.test b/llvm/test/Object/Wasm/bad-reloc-type.test
new file mode 100644
index 00000000000000..4e210271c0b93e
--- /dev/null
+++ b/llvm/test/Object/Wasm/bad-reloc-type.test
@@ -0,0 +1,3 @@
+RUN: not llvm-objdump -s %p/../Inputs/WASM/bad-reloc-type.wasm 2>&1 | FileCheck %s
+
+CHECK: invalid relocation type: 63
diff --git a/llvm/test/Object/wasm-bad-relocation.yaml b/llvm/test/Object/Wasm/bad-relocation.yaml
similarity index 100%
rename from llvm/test/Object/wasm-bad-relocation.yaml
rename to llvm/test/Object/Wasm/bad-relocation.yaml
diff --git a/llvm/test/Object/Wasm/bad-symbol-type.test b/llvm/test/Object/Wasm/bad-symbol-type.test
new file mode 100644
index 00000000000000..5b9770f18bb621
--- /dev/null
+++ b/llvm/test/Object/Wasm/bad-symbol-type.test
@@ -0,0 +1,3 @@
+RUN: not llvm-objdump -s %p/../Inputs/WASM/bad-symbol-type.wasm 2>&1 | FileCheck %s
+
+CHECK: invalid symbol type: 63
diff --git a/llvm/test/Object/wasm-duplicate-name.test b/llvm/test/Object/Wasm/duplicate-name.test
similarity index 100%
rename from llvm/test/Object/wasm-duplicate-name.test
rename to llvm/test/Object/Wasm/duplicate-name.test
diff --git a/llvm/test/Object/wasm-invalid-file.yaml b/llvm/test/Object/Wasm/invalid-file.yaml
similarity index 100%
rename from llvm/test/Object/wasm-invalid-file.yaml
rename to llvm/test/Object/Wasm/invalid-file.yaml
diff --git a/llvm/test/Object/wasm-invalid-section-order.test b/llvm/test/Object/Wasm/invalid-section-order.test
similarity index 82%
rename from llvm/test/Object/wasm-invalid-section-order.test
rename to llvm/test/Object/Wasm/invalid-section-order.test
index 9a67f09150e5eb..93cf9eb57059c1 100644
--- a/llvm/test/Object/wasm-invalid-section-order.test
+++ b/llvm/test/Object/Wasm/invalid-section-order.test
@@ -1,4 +1,4 @@
-# RUN: not obj2yaml %p/Inputs/WASM/invalid-section-order.wasm 2>&1 | FileCheck %s
+# RUN: not obj2yaml %p/../Inputs/WASM/invalid-section-order.wasm 2>&1 | FileCheck %s
# CHECK: {{.*}}: out of order section type: 10
# Inputs/WASM/invalid-section-order.wasm is generated from this ll file, by
diff --git a/llvm/test/Object/wasm-invalid-start.test b/llvm/test/Object/Wasm/invalid-start.test
similarity index 100%
rename from llvm/test/Object/wasm-invalid-start.test
rename to llvm/test/Object/Wasm/invalid-start.test
diff --git a/llvm/test/Object/wasm-linked-namesec-with-linkingsec.yaml b/llvm/test/Object/Wasm/linked-namesec-with-linkingsec.yaml
similarity index 100%
rename from llvm/test/Object/wasm-linked-namesec-with-linkingsec.yaml
rename to llvm/test/Object/Wasm/linked-namesec-with-linkingsec.yaml
diff --git a/llvm/test/Object/wasm-linked-symbol-table.yaml b/llvm/test/Object/Wasm/linked-symbol-table.yaml
similarity index 100%
rename from llvm/test/Object/wasm-linked-symbol-table.yaml
rename to llvm/test/Object/Wasm/linked-symbol-table.yaml
diff --git a/llvm/test/Object/Wasm/missing-version.test b/llvm/test/Object/Wasm/missing-version.test
new file mode 100644
index 00000000000000..754658e9d0ddce
--- /dev/null
+++ b/llvm/test/Object/Wasm/missing-version.test
@@ -0,0 +1,2 @@
+# RUN: not llvm-objdump -h %p/../Inputs/WASM/missing-version.wasm 2>&1 | FileCheck %s
+# CHECK: {{.*}}: missing version number
diff --git a/llvm/test/Object/wasm-obj2yaml-tables.test b/llvm/test/Object/Wasm/obj2yaml-tables.test
similarity index 98%
rename from llvm/test/Object/wasm-obj2yaml-tables.test
rename to llvm/test/Object/Wasm/obj2yaml-tables.test
index 870ffd179a1c25..877238437b0105 100644
--- a/llvm/test/Object/wasm-obj2yaml-tables.test
+++ b/llvm/test/Object/Wasm/obj2yaml-tables.test
@@ -1,4 +1,4 @@
-RUN: obj2yaml %p/Inputs/WASM/multi-table.wasm | FileCheck %s
+RUN: obj2yaml %p/../Inputs/WASM/multi-table.wasm | FileCheck %s
# CHECK: - Type: TABLE
diff --git a/llvm/test/Object/wasm-relocs-and-producers.yaml b/llvm/test/Object/Wasm/relocs-and-producers.yaml
similarity index 100%
rename from llvm/test/Object/wasm-relocs-and-producers.yaml
rename to llvm/test/Object/Wasm/relocs-and-producers.yaml
diff --git a/llvm/test/Object/Wasm/string-outside-section.test b/llvm/test/Object/Wasm/string-outside-section.test
new file mode 100644
index 00000000000000..31f4a6080d9bdf
--- /dev/null
+++ b/llvm/test/Object/Wasm/string-outside-section.test
@@ -0,0 +1,3 @@
+RUN: not --crash llvm-objdump -s %p/../Inputs/WASM/string-outside-section.wasm 2>&1 | FileCheck %s
+
+CHECK: LLVM ERROR: EOF while reading string
diff --git a/llvm/test/Object/wasm-bad-reloc-type.test b/llvm/test/Object/wasm-bad-reloc-type.test
deleted file mode 100644
index 000acbd55fce53..00000000000000
--- a/llvm/test/Object/wasm-bad-reloc-type.test
+++ /dev/null
@@ -1,3 +0,0 @@
-RUN: not llvm-objdump -s %p/Inputs/WASM/bad-reloc-type.wasm 2>&1 | FileCheck %s
-
-CHECK: invalid relocation type: 63
diff --git a/llvm/test/Object/wasm-bad-symbol-type.test b/llvm/test/Object/wasm-bad-symbol-type.test
deleted file mode 100644
index 4b7c30ad8b7387..00000000000000
--- a/llvm/test/Object/wasm-bad-symbol-type.test
+++ /dev/null
@@ -1,3 +0,0 @@
-RUN: not llvm-objdump -s %p/Inputs/WASM/bad-symbol-type.wasm 2>&1 | FileCheck %s
-
-CHECK: invalid symbol type: 63
diff --git a/llvm/test/Object/wasm-missing-version.test b/llvm/test/Object/wasm-missing-version.test
deleted file mode 100644
index beb0b5e9105bf9..00000000000000
--- a/llvm/test/Object/wasm-missing-version.test
+++ /dev/null
@@ -1,2 +0,0 @@
-# RUN: not llvm-objdump -h %p/Inputs/WASM/missing-version.wasm 2>&1 | FileCheck %s
-# CHECK: {{.*}}: missing version number
diff --git a/llvm/test/Object/wasm-string-outside-section.test b/llvm/test/Object/wasm-string-outside-section.test
deleted file mode 100644
index 3fa6217bae8e31..00000000000000
--- a/llvm/test/Object/wasm-string-outside-section.test
+++ /dev/null
@@ -1,3 +0,0 @@
-RUN: not --crash llvm-objdump -s %p/Inputs/WASM/string-outside-section.wasm 2>&1 | FileCheck %s
-
-CHECK: LLVM ERROR: EOF while reading string
More information about the llvm-commits
mailing list