README
1These inputs were pre-generated to allow for easier testing of llvm-cov.
2
3The files used to test the gcov compatible code coverage tool were generated
4using the following method:
5
6 test.gcno and test.gcda were create by running clang:
7 clang++ -g -ftest-coverage -fprofile-arcs test.cpp
8
9 test.cpp.gcov was created by running gcov 4.2.1:
10 gcov test.cpp
11
12The 'covmapping' files that are used to test llvm-cov contain raw sections
13with the coverage mapping data generated by the compiler and linker. They are
14created by running clang and llvm-cov:
15 clang++ -fprofile-instr-generate -fcoverage-mapping -o test test.cpp
16 llvm-cov convert-for-testing -o test.covmapping test
17
18The 'profdata' files were generated by running an instrumented version of the
19program and merging the raw profile data using llvm-profdata.
20 ./test
21 llvm-profdata merge -o test.profdata default.profraw
22