Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoyner-tri committed Aug 29, 2024
1 parent 5e0f5c3 commit be64d71
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions driver/configurations/bazel/step-build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,18 @@ endif()

if(COVERAGE)
set(KCOV_TOOL "${DASHBOARD_SOURCE_DIRECTORY}/tools/dynamic_analysis/kcov_tool")
execute_process(COMMAND "${KCOV_TOOL}" ci_merge)
execute_process(
COMMAND "${KCOV_TOOL}" ci_merge
COMMAND_ECHO STDERR
RESULT_VARIABLE KCOV_MERGE_RESULT_VARIABLE)
if(NOT KCOV_MERGE_RESULT_VARIABLE EQUAL 0)
fatal("kcov merge failed")
endif()
set(KCOV_MERGED "${DASHBOARD_SOURCE_DIRECTORY}/bazel-kcov/kcov-merged")
execute_process(COMMAND "${CMAKE_COMMAND}" -E copy "${KCOV_MERGED}/cobertura.xml" "${KCOV_MERGED}/coverage.xml")
execute_process(
COMMAND "${CMAKE_COMMAND}" -E copy "${KCOV_MERGED}/cobertura.xml" "${KCOV_MERGED}/coverage.xml"
COMMAND_ECHO STDERR
COMMAND_ERROR_IS_FATAL ANY)
set(ENV{COBERTURADIR} "${KCOV_MERGED}")
ctest_coverage(RETURN_VALUE DASHBOARD_COVERAGE_RETURN_VALUE
CAPTURE_CMAKE_ERROR DASHBOARD_COVERAGE_CAPTURE_CMAKE_ERROR
Expand Down

0 comments on commit be64d71

Please sign in to comment.