[all-commits] [llvm/llvm-project] 1c25a3: Introduce SingleByteCoverage tests (w/yaml2obj) (#...

NAKAMURA Takumi via All-commits all-commits at lists.llvm.org
Mon Dec 23 13:41:05 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c25a3bfa57209e7a29eaae58ce5e0432aafe8c3
      https://github.com/llvm/llvm-project/commit/1c25a3bfa57209e7a29eaae58ce5e0432aafe8c3
  Author: NAKAMURA Takumi <geek4civic at gmail.com>
  Date:   2024-12-24 (Tue, 24 Dec 2024)

  Changed paths:
    M clang/test/CoverageMapping/single-byte-counters.cpp
    A llvm/test/tools/llvm-cov/Inputs/branch-c-general-single.proftext
    A llvm/test/tools/llvm-cov/Inputs/branch-c-general-single.yaml
    M llvm/test/tools/llvm-cov/Inputs/branch-c-general.c
    A llvm/test/tools/llvm-cov/Inputs/branch-logical-mixed-single.proftext
    A llvm/test/tools/llvm-cov/Inputs/branch-logical-mixed-single.yaml
    A llvm/test/tools/llvm-cov/Inputs/branch-logical-mixed.cpp
    A llvm/test/tools/llvm-cov/Inputs/branch-macros-single.proftext
    A llvm/test/tools/llvm-cov/Inputs/branch-macros-single.yaml
    A llvm/test/tools/llvm-cov/Inputs/branch-macros.cpp
    A llvm/test/tools/llvm-cov/Inputs/branch-showBranchPercentage.c
    A llvm/test/tools/llvm-cov/Inputs/branch-templates-single.proftext
    A llvm/test/tools/llvm-cov/Inputs/branch-templates-single.yaml
    A llvm/test/tools/llvm-cov/Inputs/branch-templates.cpp
    A llvm/test/tools/llvm-cov/Inputs/showLineExecutionCounts-single.proftext
    A llvm/test/tools/llvm-cov/Inputs/showLineExecutionCounts-single.yaml
    A llvm/test/tools/llvm-cov/Inputs/showLineExecutionCounts.cpp
    A llvm/test/tools/llvm-cov/Inputs/yaml.makefile
    M llvm/test/tools/llvm-cov/branch-c-general.test
    R llvm/test/tools/llvm-cov/branch-logical-mixed.cpp
    A llvm/test/tools/llvm-cov/branch-logical-mixed.test
    R llvm/test/tools/llvm-cov/branch-macros.cpp
    A llvm/test/tools/llvm-cov/branch-macros.test
    M llvm/test/tools/llvm-cov/branch-noShowBranch.test
    R llvm/test/tools/llvm-cov/branch-showBranchPercentage.c
    A llvm/test/tools/llvm-cov/branch-showBranchPercentage.test
    R llvm/test/tools/llvm-cov/branch-templates.cpp
    A llvm/test/tools/llvm-cov/branch-templates.test
    R llvm/test/tools/llvm-cov/showLineExecutionCounts.cpp
    A llvm/test/tools/llvm-cov/showLineExecutionCounts.test
    R llvm/test/tools/llvm-cov/threads.c
    A llvm/test/tools/llvm-cov/threads.test

  Log Message:
  -----------
  Introduce SingleByteCoverage tests (w/yaml2obj) (#113114)

Restructure some tests to split into `%.test` and Inputs/%.c*`.

Add test actions with `yaml2obj` for single byte coverage. `FileCheck`
lines are:
- Relax to accept both counter values and single values `1`. A few line
counting are greater than `1` due to `llvm-profdata merge`. They will be
fixed by #110972.
- Suppress matching with `--check-prefixes=CHECK,BRCOV`, since the
current implementation of single byte doesn't emit any branch coverages.
They will be integrated to `CHECK` finally.
- Some tests are not unified but use dedicated `CHECK` lines for single
byte, since old format is different (esp. "partial fold"). They will be
unified when `Inputs` will be regenerated.

Introduce llvm/test/tools/llvm-cov/Inputs/yaml.makefile for convenience.
`%-single.yaml` and `%-single.proftext` are generated by it. It could be
used to regenerate other files.


https://discourse.llvm.org/t/rfc-integrating-singlebytecoverage-with-branch-coverage/82492



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list