Tools: exclude build-linux-libraries and gtest from coverage analysis

The build-linux-libraries were mavlink-generated headers created when we
build the examples.  We don't intentionally try to test anything in
there at the moment, so it's noise.
This commit is contained in:
Peter Barker 2020-01-13 14:49:53 +11:00 committed by Peter Barker
parent ba13f0bb29
commit 2342ea600a

View File

@ -49,7 +49,10 @@ LCOV_LOG="GCOV_lcov.log"
GENHTML_LOG="GCOV_genhtml.log"
lcov --no-external --capture --directory $PWD -o "$INFO_FILE" 2>&1 | tee $LCOV_LOG
# remove files we do not intentionally test:
lcov --remove "$INFO_FILE" ".waf*" -o "$INFO_FILE" 2>&1 | tee -a $LCOV_LOG
lcov --remove "$INFO_FILE" "$PWD/modules/gtest/*" -o "$INFO_FILE" 2>&1 | tee -a $LCOV_LOG
lcov --remove "$INFO_FILE" "$PWD/build/linux/libraries/*" -o "$INFO_FILE" 2>&1 | tee -a $LCOV_LOG
genhtml "$INFO_FILE" -o "$REPORT_DIR" 2>&1 | tee $GENHTML_LOG