brintos

brintos / llvm-project-archived public Read only

0
0
Text · 885 B · 3773ba3 Raw
22 lines · plain
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 generated4using the following method:5 6  test.gcno and test.gcda were create by running clang:7    clang++ -g -ftest-coverage -fprofile-arcs test.cpp8 9  test.cpp.gcov was created by running gcov 4.2.1:10    gcov test.cpp11 12The 'covmapping' files that are used to test llvm-cov contain raw sections13with the coverage mapping data generated by the compiler and linker. They are14created by running clang and llvm-cov:15  clang++ -fprofile-instr-generate -fcoverage-mapping -o test test.cpp16  llvm-cov convert-for-testing -o test.covmapping test17 18The 'profdata' files were generated by running an instrumented version of the19program and merging the raw profile data using llvm-profdata.20  ./test21  llvm-profdata merge -o test.profdata default.profraw22