tools/llvm-readobj currently contains tests that are either general for all file types or that mix file types inside. This patch refactors these test and leaves only general tests in that folder. All other tests were moved to ELF/COFF/MachO and wasm accordingly. I tried to minimize amount of changes, so most of the test parts remained unchanged. Any further refactorings and improvements for particular tests should be done independently from this patch. Differential revision: https://reviews.llvm.org/D71269
20 lines
541 B
Plaintext
20 lines
541 B
Plaintext
## Test the case where no switches are specified.
|
|
|
|
# RUN: yaml2obj %s -o %t.trivial.obj.elf-x86-64
|
|
# RUN: llvm-readobj %t.trivial.obj.elf-x86-64 | FileCheck --check-prefix=HEADER %s
|
|
# RUN: llvm-readelf %t.trivial.obj.elf-x86-64 | FileCheck --check-prefix=NO-OUTPUT --allow-empty %s
|
|
|
|
# HEADER: File: {{.*}}trivial.obj.elf-x86-64
|
|
# HEADER: Format: ELF64-x86-64
|
|
# HEADER: Arch: x86_64
|
|
# HEADER: AddressSize: 64bit
|
|
|
|
# NO-OUTPUT-NOT: {{.}}
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_X86_64
|