[llvm-objcopy] Add additional testing for various cases
commite8d332f233dd6663bf033ac6ef5caf7efba9423c
authorJames Henderson <jh7370@my.bristol.ac.uk>
Fri, 10 May 2019 12:58:52 +0000 (10 12:58 +0000)
committerJames Henderson <jh7370@my.bristol.ac.uk>
Fri, 10 May 2019 12:58:52 +0000 (10 12:58 +0000)
tree109b18c1f07289addf48787dc3923c44fbeeb46a
parent06b700153b4824d7cf3d8f206b14e264b8535065
[llvm-objcopy] Add additional testing for various cases

This patch adds a number of tests to test various cases not covered by
existing tests. All of them work correctly, with no need to change
llvm-objcopy itself, although some do indicate possible areas for
improvement.

Reviewed by: MaskRay

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360422 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objcopy/ELF/invalid-e_phoff.test [new file with mode: 0644]
test/tools/llvm-objcopy/ELF/invalid-e_shoff.test [new file with mode: 0644]
test/tools/llvm-objcopy/ELF/linked-section.test [new file with mode: 0644]
test/tools/llvm-objcopy/ELF/overlapping-sections-in-segments.test [new file with mode: 0644]
test/tools/llvm-objcopy/ELF/overlapping-sections.test [new file with mode: 0644]
test/tools/llvm-objcopy/ELF/rename-section-duplicate-names.test [new file with mode: 0644]
test/tools/llvm-objcopy/ELF/rename-section-empty-string.test [new file with mode: 0644]
test/tools/llvm-objcopy/ELF/shared-strtab-shstrtab.s [new file with mode: 0644]
test/tools/llvm-objcopy/ELF/strip-sections.test
test/tools/llvm-objcopy/ELF/tail-merged-string-tables.test [new file with mode: 0644]