Skip to content

Commit fece869

Browse files
authored
[rocfft] allow exporting llvm-cov format to lcov format (#1822)
We want to upload code coverage reports to codecov.io and the reports must be in lcov format before doing so. This PR adds a command to the coverage target that that exports the profdata file to a coverage.info file, which can then be uploaded to codecov.io by CI.
1 parent 3738f44 commit fece869

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clients/tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ if(BUILD_CODE_COVERAGE)
458458
COMMAND ${LLVM_PROFDATA} merge -sparse ./coverage-report/profraw/rocfft-coverage_*.profraw -o ./coverage-report/rocfft.profdata
459459
COMMAND ${LLVM_COV} report -object ./library/src/librocfft.so -instr-profile=./coverage-report/rocfft.profdata
460460
COMMAND ${LLVM_COV} show -object ./library/src/librocfft.so -instr-profile=./coverage-report/rocfft.profdata -format=html -output-dir=coverage-report
461+
COMMAND ${LLVM_COV} export -object ./library/src/librocfft.so -instr-profile=./coverage-report/rocfft.profdata -format=lcov > ./coverage-report/coverage.info
461462
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
462463
)
463464

0 commit comments

Comments
 (0)