Browse Source

lcov ignore src/examples (#7341)

sbg
Daniel Agar 8 years ago committed by GitHub
parent
commit
beaa758605
  1. 4
      cmake/common/coverage.cmake

4
cmake/common/coverage.cmake

@ -93,7 +93,9 @@ FUNCTION(SETUP_TARGET_FOR_COVERAGE _targetname _testrunner _outputname) @@ -93,7 +93,9 @@ FUNCTION(SETUP_TARGET_FOR_COVERAGE _targetname _testrunner _outputname)
add_custom_target(${_targetname} DEPENDS ${coverage_info})
add_custom_command(OUTPUT ${coverage_cleaned}
COMMAND COMMAND ${LCOV_PATH} --quiet --remove ${coverage_info} 'tests/*' '/usr/*' --output-file ${coverage_cleaned}
COMMAND COMMAND ${LCOV_PATH} --quiet
--remove ${coverage_info} 'tests/*' '/usr/*' 'src/examples*'
--output-file ${coverage_cleaned}
DEPENDS ${coverage_info}
)

Loading…
Cancel
Save