1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00
llvm-mirror/test/tools/llvm-cov/Inputs
Justin Bogner a18cefcbb1 llvm-cov: Combine segments that cover the same location
If we have multiple coverage counts for the same segment, we need to
add them up rather than arbitrarily choosing one. This fixes that and
adds a test with template instantiations to exercise it.

llvm-svn: 218432
2014-09-25 00:34:18 +00:00
..
copy_block_helper.gcda
copy_block_helper.gcno
highlightedRanges.covmapping
highlightedRanges.profdata
lineExecutionCounts.covmapping llvm-cov: Fix dropped lines when filters were applied 2014-09-19 08:13:16 +00:00
lineExecutionCounts.profdata
range_based_for.gcda
range_based_for.gcno
README
regionMarkers.covmapping
regionMarkers.profdata
showExpansions.covmapping llvm-cov: Prevent a test from matching its own check lines 2014-09-19 19:04:08 +00:00
showExpansions.profdata
templateInstantiations.covmapping llvm-cov: Combine segments that cover the same location 2014-09-25 00:34:18 +00:00
templateInstantiations.profdata llvm-cov: Combine segments that cover the same location 2014-09-25 00:34:18 +00:00
test_-a_-b_-c_-u.cpp.gcov
test_-a_-b_-c_-u.h.gcov
test_-a_-b_-u.cpp.gcov
test_-a_-b_-u.h.gcov
test_-a_-b.cpp.gcov
test_-a_-b.h.gcov
test_-a.cpp.gcov
test_-a.h.gcov
test_-b_-f.output
test_-b.output
test_-f.output
test_file_checksum_fail.gcda
test_func_checksum_fail.gcda
test_long_file_names.output
test_long_paths.output
test_missing.cpp.gcov
test_missing.h.gcov
test_missing.output
test_no_gcda.cpp.gcov
test_no_gcda.h.gcov
test_no_gcda.output
test_no_options.cpp.gcov
test_no_options.h.gcov
test_no_options.output
test_no_output.output
test_no_preserve_paths.output
test_objdir.cpp.gcov
test_objdir.h.gcov
test_paths.cpp.gcov
test_paths.gcda
test_paths.gcno
test_paths.h.gcov
test_preserve_paths.output
test_read_fail.gcno
test.cpp
test.gcda
test.gcno
test.h

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