[all-commits] [llvm/llvm-project] f65ab6: [llvm-readelf][test] - Refine the sections-ext.test

Georgii Rymar via All-commits all-commits at lists.llvm.org
Wed Aug 26 04:10:30 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f65ab626e549f8ddd4cdf10ac12371de3af73aa7
      https://github.com/llvm/llvm-project/commit/f65ab626e549f8ddd4cdf10ac12371de3af73aa7
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-08-26 (Wed, 26 Aug 2020)

  Changed paths:
    A llvm/test/tools/llvm-readobj/COFF/Inputs/trivial.ll
    R llvm/test/tools/llvm-readobj/ELF/Inputs/trivial.ll
    R llvm/test/tools/llvm-readobj/ELF/Inputs/trivial.obj.elf-i386
    M llvm/test/tools/llvm-readobj/ELF/sections-ext.test
    A llvm/test/tools/llvm-readobj/MachO/Inputs/trivial.ll
    A llvm/test/tools/llvm-readobj/wasm/Inputs/trivial.ll

  Log Message:
  -----------
  [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




More information about the All-commits mailing list