[all-commits] [llvm/llvm-project] 07d448: [llvm-readobj][test] - Stop using binaries in gnu-...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Fri May 1 08:32:01 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 07d448135f328d040e51f49541467004643525ea
      https://github.com/llvm/llvm-project/commit/07d448135f328d040e51f49541467004643525ea
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-05-01 (Fri, 01 May 2020)

  Changed paths:
    R llvm/test/tools/llvm-readobj/ELF/Inputs/phdrs-elf.exe-i386
    R llvm/test/tools/llvm-readobj/ELF/Inputs/phdrs-elf.exe-x86_64
    M llvm/test/tools/llvm-readobj/ELF/gnu-phdrs.test
    R llvm/test/tools/llvm-readobj/ELF/gnu-section-mapping-no-shdrs.test
    A llvm/test/tools/llvm-readobj/ELF/gnu-section-mapping.test

  Log Message:
  -----------
  [llvm-readobj][test] - Stop using binaries in gnu-phdrs.test, split and refine it.

gnu-phdrs.test uses 2 precompiled objects and has issues:

* It does not test all possible program headers.
* It does not test target-specific headers (arm, mips).
* It does not use --strict-whitespace --match-full-line to check the format of the output.
* It is possible to check things better/nicer.
* It also tests --section-mapping.

This patch makes gnu-phdrs.test to stop using binaries and addresses issues above.
It splits --section-mapping testing to gnu-section-mapping.test

I am going to use it as a base for a follow-up patch that should also test
section to segment mapping conditions that we currently have
(see the discussion in D78709)

Differential revision: https://reviews.llvm.org/D78805




More information about the All-commits mailing list