diff options
| author | James Henderson <jh7370@my.bristol.ac.uk> | 2019-12-09 11:43:47 +0000 |
|---|---|---|
| committer | James Henderson <jh7370@my.bristol.ac.uk> | 2019-12-09 12:24:23 +0000 |
| commit | dba420bc05aec26c2b6d060cfd186169da30b5f7 (patch) | |
| tree | 57a87953f132727241eb798fe1b9537223a50ba5 /llvm/test/tools/llvm-readobj/elf-file-headers.test | |
| parent | 0d1490bf6a68d9397a6402c8f702e30f07adacf1 (diff) | |
| download | bcm5719-llvm-dba420bc05aec26c2b6d060cfd186169da30b5f7.tar.gz bcm5719-llvm-dba420bc05aec26c2b6d060cfd186169da30b5f7.zip | |
[test][tools] Add missing and improve testing
Mostly this adds testing for certain aliases in more explicit ways.
There are also a few tidy-ups, and additions of missing testing, where
the feature was either not tested at all, or not tested explicitly and
sufficiently.
Reviewed by: MaskRay, rupprecht, grimar
Differential Revision: https://reviews.llvm.org/D71116
Diffstat (limited to 'llvm/test/tools/llvm-readobj/elf-file-headers.test')
| -rw-r--r-- | llvm/test/tools/llvm-readobj/elf-file-headers.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-readobj/elf-file-headers.test b/llvm/test/tools/llvm-readobj/elf-file-headers.test index 1cb3563a077..d3282c804cc 100644 --- a/llvm/test/tools/llvm-readobj/elf-file-headers.test +++ b/llvm/test/tools/llvm-readobj/elf-file-headers.test @@ -1,5 +1,7 @@ # RUN: yaml2obj %s --docnum=1 -o %t.i386 # RUN: llvm-readobj -h %t.i386 | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.i386 --check-prefix I386 +# RUN: llvm-readobj --file-header %t.i386 | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.i386 --check-prefix I386 +# RUN: llvm-readobj --file-headers %t.i386 | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.i386 --check-prefix I386 # I386:File: [[FILE]] # I386-NEXT:Format: ELF32-i386 @@ -44,6 +46,10 @@ FileHeader: # RUN: yaml2obj %s --docnum=2 -o %t.x86-64 # RUN: llvm-readobj -h %t.x86-64 \ # RUN: | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.x86-64 --check-prefix X86-64 +# RUN: llvm-readobj --file-header %t.x86-64 \ +# RUN: | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.x86-64 --check-prefix X86-64 +# RUN: llvm-readobj --file-headers %t.x86-64 \ +# RUN: | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.x86-64 --check-prefix X86-64 # X86-64:File: [[FILE]] # X86-64-NEXT:Format: ELF64-x86-64 @@ -88,6 +94,10 @@ FileHeader: # RUN: yaml2obj %s --docnum=3 -o %t.lanai # RUN: llvm-readobj -h %t.lanai \ # RUN: | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.lanai --check-prefix LANAI +# RUN: llvm-readobj --file-header %t.lanai \ +# RUN: | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.lanai --check-prefix LANAI +# RUN: llvm-readobj --file-headers %t.lanai \ +# RUN: | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.lanai --check-prefix LANAI --- !ELF FileHeader: |

