[llvm-readobj]Add additional testing for various ELF features
authorJames Henderson <jh7370@my.bristol.ac.uk>
Wed, 27 Feb 2019 16:41:59 +0000 (16:41 +0000)
committerJames Henderson <jh7370@my.bristol.ac.uk>
Wed, 27 Feb 2019 16:41:59 +0000 (16:41 +0000)
commit416603e32a9ce7cd99f8456f057387069a260e20
treeca203fc5381561a9fcdfcca93943177572735374
parent8c436ce3a1d81a55706966ff9966a38e57a54cba
[llvm-readobj]Add additional testing for various ELF features

This patch adds testing of areas of the code that are not fully tested,
in particular dynamic table printing, ELF type printing, handling of
edge cases where things are missing/empty (relocations/program header
tables/section header table), and the --string-dump switch.

Reviewed by: grimar, higuoxing, rupprecht

Differential Revision: https://reviews.llvm.org/D58677

llvm-svn: 355003
llvm/test/tools/llvm-readobj/elf-dynamic-empty.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/elf-dynamic-malformed.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/elf-dynamic-no-pt-dynamic.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/elf-dynamic-tags-machine-specific.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/elf-dynamic-tags.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/elf-malformed-pt-dynamic.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/elf-no-phdrs.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/elf-no-relocs.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/elf-no-shdrs.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/elf-types.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/string-dump.test [new file with mode: 0644]