llvm-project/llvm/test/tools/llvm-cov/Inputs
Petr Hosek 0204fd25b0 [CoverageMapping] Remove dots from paths inside the profile
We already remove dots from collected paths and path mappings. This
makes it difficult to match paths inside the profile which contain
dots. For example, we would never match /path/to/../file.c because
the collected path is always be normalized to /path/file.c. This
change enables dot removal for paths inside the profile to address
the issue.

Differential Revision: https://reviews.llvm.org/D123164
2022-06-28 20:53:01 -07:00
..
coverage_prefix_map [llvm-cov][NFC] Add test for coverage-prefix-map remappings 2021-08-30 17:19:57 -07:00
multiple_objects
multiple_objects_not_all_instrumented
multithreaded_report
relative_dir [CoverageMapping] Remove dots from paths inside the profile 2022-06-28 20:53:01 -07:00
sources_specified
universal_bin_wrapping_archives
README
allowlist1.txt [LLVM][llvm-cov] Inclusive language: rename option -name-whitelist to -name-allowlist 2021-11-26 11:08:01 -05:00
allowlist2.txt [LLVM][llvm-cov] Inclusive language: rename option -name-whitelist to -name-allowlist 2021-11-26 11:08:01 -05:00
binary-formats.canonical.json
binary-formats.macho32b
binary-formats.macho32l
binary-formats.macho64l
binary-formats.proftext
binary-formats.v1.linux64l
binary-formats.v2.linux32l
binary-formats.v2.linux64l
binary-formats.v3.macho64l
binary-formats.v6.linux64l [Coverage] Store compilation dir separately in coverage mapping 2021-02-18 14:34:39 -08:00
branch-c-general.c
branch-c-general.o32l
branch-c-general.proftext
branch-logical-mixed.o32l
branch-logical-mixed.proftext
branch-macros.o32l
branch-macros.proftext
branch-showBranchPercentage.o32l
branch-showBranchPercentage.proftext
branch-templates.o32l
branch-templates.proftext
combine_expansions.covmapping
combine_expansions.proftext
compilation_dir.covmapping [Coverage] Support overriding compilation directory 2021-05-11 15:26:45 -07:00
compilation_dir.proftext [Coverage] Support overriding compilation directory 2021-05-11 15:26:45 -07:00
deferred-regions.covmapping
deferred-regions.profdata
dir-with-filtering.covmapping
dir-with-filtering.proftext
dir-with-filtering1.cpp
dir-with-filtering2.cpp
double_dots.covmapping
double_dots.proftext
elf_binary_comdat.profdata
hideUnexecutedSubviews.proftext
highlightedRanges.covmapping
highlightedRanges.profdata
ifdef.covmapping
ifdef.profdata
instrprof-comdat.h Revert "[llvm-cov] reset executation count to 0 after wrapped segment" 2021-03-09 14:47:32 -08:00
lineExecutionCounts.covmapping
lineExecutionCounts.proftext
malformedRegions.covmapping
multiple-files.covmapping
multiple-files.proftext
multiple-files2.covmapping
name_allowlist.covmapping [LLVM][llvm-cov] Inclusive language: rename option -name-whitelist to -name-allowlist 2021-11-26 11:08:01 -05:00
name_allowlist.cpp [LLVM][llvm-cov] Inclusive language: rename option -name-whitelist to -name-allowlist 2021-11-26 11:08:01 -05:00
name_allowlist.proftext [LLVM][llvm-cov] Inclusive language: rename option -name-whitelist to -name-allowlist 2021-11-26 11:08:01 -05:00
name_whitelist.covmapping
name_whitelist.cpp
name_whitelist.proftext
native_separators.covmapping
path_equivalence.covmapping
path_equivalence.proftext
prefer_used_to_unused.covmapping
prefer_used_to_unused.cpp
prefer_used_to_unused.proftext
prevent_false_instantiations.covmapping
prevent_false_instantiations.cpp
prevent_false_instantiations.proftext
range_based_for.gcda
range_based_for.gcno
regionMarkers.covmapping
regionMarkers.proftext
report.covmapping
report.profdata
showExpansions.covmapping
showExpansions.json
showExpansions.profdata
showProjectSummary.covmapping
showProjectSummary.proftext
showProjectSummary.test
showTabsHTML.covmapping
showTabsHTML.proftext
templateInstantiations.covmapping
templateInstantiations.profdata
universal-binary
universal-binary.proftext
whitelist1.txt
whitelist2.txt
zeroFunctionFile.covmapping
zeroFunctionFile.h
zeroFunctionFile.proftext

README

These inputs were pre-generated to allow for easier testing of llvm-cov.

The files used to test the gcov compatible code coverage tool were generated
using the following method:

  test.gcno and test.gcda were create by running clang:
    clang++ -g -ftest-coverage -fprofile-arcs test.cpp

  test.cpp.gcov was created by running gcov 4.2.1:
    gcov test.cpp

The 'covmapping' files that are used to test llvm-cov contain raw sections
with the coverage mapping data generated by the compiler and linker. They are
created by running clang and llvm-cov:
  clang++ -fprofile-instr-generate -fcoverage-mapping -o test test.cpp
  llvm-cov convert-for-testing -o test.covmapping test

The 'profdata' files were generated by running an instrumented version of the
program and merging the raw profile data using llvm-profdata.
  ./test
  llvm-profdata merge -o test.profdata default.profraw