Quiet down the coverage output a bit

This commit is contained in:
Drew DeVault 2016-06-19 13:51:32 -04:00
parent 2aaa37b129
commit d47a9d7752

View file

@ -10,16 +10,16 @@ done
if (( $ret == 0 )) if (( $ret == 0 ))
then then
if grep 'enable-coverage:BOOL=YES' "$1/CMakeCache.txt" if grep 'enable-coverage:BOOL=YES' "$1/CMakeCache.txt" > /dev/null
then then
echo "Generating coverage reports" echo "Generating coverage reports"
rm -rf "$1/coverage" rm -rf "$1/coverage"
mkdir "$1/coverage" mkdir "$1/coverage"
lcov --directory "$1" \ lcov --directory "$1" \
--capture \ --capture \
--output-file "$1/coverage/lcov.info" --output-file "$1/coverage/lcov.info" > /dev/null
lcov --remove "$1/coverage/lcov.info" 'test/*' '/usr/*' \ lcov --remove "$1/coverage/lcov.info" 'test/*' '/usr/*' \
--output-file "$1/coverage/lcov.info.clean" --output-file "$1/coverage/lcov.info.clean" > /dev/null
genhtml -o "$1/coverage/" "$1/coverage/lcov.info.clean" genhtml -o "$1/coverage/" "$1/coverage/lcov.info.clean"
fi fi
fi fi