add CodeCoverage.cmake

pull/155/head
moneroexamples 5 years ago
parent 7288a8506f
commit 5379fa831b

@ -30,24 +30,24 @@ add_om_test(microcore)
add_om_test(bcstatus)
add_om_test(txsearch)
#SETUP_TARGET_FOR_COVERAGE(
#NAME mysql_cov
#EXECUTABLE mysql_tests)
#SETUP_TARGET_FOR_COVERAGE(
#NAME microcore_cov
#EXECUTABLE microcore_tests)
#SETUP_TARGET_FOR_COVERAGE(
#NAME bcstatus_cov
#EXECUTABLE bcstatus_tests)
#SETUP_TARGET_FOR_COVERAGE(
#NAME txsearch_cov
#EXECUTABLE txsearch_tests)
#add_custom_target(cov
#COMMAND ;
#DEPENDS mysql_cov microcore_cov bcstatus_cov txsearch_cov
#COMMENT "Runs all coverage tests"
#)
######################################
########## CODE COVERAGE #############
######################################
include(CodeCoverage)
#APPEND_COVERAGE_COMPILER_FLAGS()
set(COVERAGE_LCOV_EXCLUDES
'../ext/*' '*boost/*' '*c++/*'
'*/monero/*' '*googletest/*' '*googlemock/*'
'*restbed/*' '*/mysql++/*' '*tests/*')
SETUP_TARGET_FOR_COVERAGE_LCOV(
NAME coverage
EXECUTABLE mysql_tests
microcore_tests
bcstatus
txsearch)

Loading…
Cancel
Save