From bc1652378c43f27f0c0323641e95d60968b8d143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Mon, 11 Jun 2018 20:25:53 +0200 Subject: =?UTF-8?q?Un-quiet=20the=20lcov=20commands=20to=20find=20out=20wh?= =?UTF-8?q?y=20it=E2=80=99s=20different=20up=20there?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmake/Modules/CodeCoverage.cmake | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmake/Modules/CodeCoverage.cmake b/cmake/Modules/CodeCoverage.cmake index 77586ab..98e3274 100644 --- a/cmake/Modules/CodeCoverage.cmake +++ b/cmake/Modules/CodeCoverage.cmake @@ -145,19 +145,20 @@ FUNCTION(SETUP_TARGET_FOR_COVERAGE _targetname _testrunner _outputname) COMMAND ${LCOV_PATH} --directory . --zerocounters # Create baseline coverage data file - COMMAND ${LCOV_PATH} -c -i -d . -o ${_outputname}.baseline.info -q + COMMAND ${LCOV_PATH} -c -i -d . -o ${_outputname}.baseline.info # Run tests COMMAND ${_testrunner} ${ARGV3} # Capturing lcov counters and generating report - COMMAND ${LCOV_PATH} --directory . --capture --output-file ${_outputname}.info -q + COMMAND ${LCOV_PATH} --directory . --capture --output-file ${_outputname}.info # Combine the baseline and the test data - COMMAND ${LCOV_PATH} -a ${_outputname}.info -a ${_outputname}.baseline.info -o ${_outputname}.info -q + COMMAND ${LCOV_PATH} -a ${_outputname}.info -a ${_outputname}.baseline.info -o ${_outputname}.info # Remove information about source files that are not part of # the test (system file, external libraries, etc) - COMMAND ${LCOV_PATH} --remove ${_outputname}.info 'tests/*' '/usr/*' 'external/*' 'build/*' --output-file ${_outputname}.info -q + COMMAND ${LCOV_PATH} --list ${_outputname}.info + COMMAND ${LCOV_PATH} --remove ${_outputname}.info 'tests/*' '/usr/*' 'external/*' 'build/*' --output-file ${_outputname}.info # Generate the report COMMAND ${GENHTML_PATH} -o ${_outputname} ${_outputname}.info -- cgit v1.2.3