CodeCoverage.cmake (jansson-2.13.1.tar.bz2) | : | CodeCoverage.cmake (jansson-2.14.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 113 | skipping to change at line 113 | |||
ADD_CUSTOM_TARGET(${_targetname} | ADD_CUSTOM_TARGET(${_targetname} | |||
# Cleanup lcov | # Cleanup lcov | |||
${LCOV_PATH} --directory . --zerocounters | ${LCOV_PATH} --directory . --zerocounters | |||
# Run tests | # Run tests | |||
COMMAND ${_testrunner} ${ARGV3} | COMMAND ${_testrunner} ${ARGV3} | |||
# Capturing lcov counters and generating report | # Capturing lcov counters and generating report | |||
COMMAND ${LCOV_PATH} --directory . --capture --output-file ${_out putname}.info --rc lcov_branch_coverage=1 | COMMAND ${LCOV_PATH} --directory . --capture --output-file ${_out putname}.info --rc lcov_branch_coverage=1 | |||
COMMAND ${LCOV_PATH} --remove ${_outputname}.info '*/build/includ | COMMAND ${LCOV_PATH} --remove ${_outputname}.info '*/build/includ | |||
e/*' '*/test/*' '/usr/include/*' --output-file ${_outputname}.info.cleaned --rc | e/*' '*/test/*' '/usr/include/*' --output-file ${_outputname}.info --rc lcov_bra | |||
lcov_branch_coverage=1 | nch_coverage=1 | |||
COMMAND ${GENHTML_PATH} --branch-coverage -o ${_outputname} ${_ou | # COMMAND ${GENHTML_PATH} --branch-coverage -o ${_outputname} ${_ | |||
tputname}.info.cleaned | outputname}.info.cleaned | |||
COMMAND ${CMAKE_COMMAND} -E remove ${_outputname}.info ${_outputn | # COMMAND ${CMAKE_COMMAND} -E remove ${_outputname}.info ${_outpu | |||
ame}.info.cleaned | tname}.info.cleaned | |||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} | WORKING_DIRECTORY ${CMAKE_BINARY_DIR} | |||
COMMENT "Resetting code coverage counters to zero.\nProcessing co de coverage counters and generating report." | COMMENT "Resetting code coverage counters to zero.\nProcessing co de coverage counters and generating report." | |||
) | ) | |||
# Show info where to find the report | # Show info where to find the report | |||
ADD_CUSTOM_COMMAND(TARGET ${_targetname} POST_BUILD | ADD_CUSTOM_COMMAND(TARGET ${_targetname} POST_BUILD | |||
COMMAND ; | COMMAND ; | |||
COMMENT "Open ./${_outputname}/index.html in your browser to view the coverage report." | COMMENT "Open ./${_outputname}/index.html in your browser to view the coverage report." | |||
) | ) | |||
End of changes. 1 change blocks. | ||||
7 lines changed or deleted | 7 lines changed or added |