[llvm-readelf][test] - Refine the sections-ext.test
authorGeorgii Rymar <grimar@accesssoftek.com>
Mon, 24 Aug 2020 13:24:36 +0000 (16:24 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Wed, 26 Aug 2020 11:01:31 +0000 (14:01 +0300)
commitf65ab626e549f8ddd4cdf10ac12371de3af73aa7
tree724c0c38dc2c57b416c86b1af37cbe99da4c6cf1
parent00d5f1ecccc6d8ece9ac6dd19e9ad807c8a60097
[llvm-readelf][test] - Refine the sections-ext.test

The `sections-ext.test` is a test for ELF that is used
to test `--st`, `--sr` and `--sd` extension options for `-S`.

There are 2 problems with it:
1) It is broken, because for CHECK lines it contains there is
no corresponding `FileCheck` call.

2) It uses the precompiled object: `trivial.obj.elf-i386`.
This is the last ELF test where `trivial.obj.elf-i386` is used so we can get
rid of the binary and use an YAML description.

Also, there is a `Inputs/trivial.ll` file that describes how `trivial*` objects
in `Inputs` folders are created. I've removed it from `ELF`, because it is not
actual anymore (we have no more input binaries created with the use of trivial.ll there)
and copied the refined versions of it to `COFF`, `MachO` and `wasm` Input folders.

Differential revision: https://reviews.llvm.org/D86462
llvm/test/tools/llvm-readobj/COFF/Inputs/trivial.ll [new file with mode: 0644]
llvm/test/tools/llvm-readobj/ELF/Inputs/trivial.obj.elf-i386 [deleted file]
llvm/test/tools/llvm-readobj/ELF/sections-ext.test
llvm/test/tools/llvm-readobj/MachO/Inputs/trivial.ll [moved from llvm/test/tools/llvm-readobj/ELF/Inputs/trivial.ll with 66% similarity]
llvm/test/tools/llvm-readobj/wasm/Inputs/trivial.ll [new file with mode: 0644]