Add a make coverage target to merge all other coverages, and upload to codecov
This commit is contained in:
+13
-4
@@ -241,14 +241,23 @@ add_custom_target(e2e_valgrind COMMAND "E2E_BIBOUMI_SUPP_DIR=${CMAKE_CURRENT_SOU
|
||||
#
|
||||
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
include(CodeCoverage)
|
||||
SETUP_TARGET_FOR_COVERAGE(coverage
|
||||
test_suite
|
||||
coverage
|
||||
)
|
||||
SETUP_TARGET_FOR_COVERAGE(coverage_check
|
||||
make
|
||||
coverage_test_suite
|
||||
check)
|
||||
SETUP_TARGET_FOR_COVERAGE(coverage_e2e
|
||||
make
|
||||
coverage_e2e
|
||||
e2e)
|
||||
|
||||
ADD_CUSTOM_TARGET(coverage
|
||||
COMMAND ${LCOV_PATH} -a coverage_e2e.info -a coverage_test_suite.info -o coverage_total.info
|
||||
|
||||
COMMAND ${GENHTML_PATH} -o coverage_total coverage_total.info
|
||||
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
endif()
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user