From 2342ea600a94a3311ad3379ca948df799d78ed88 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 13 Jan 2020 14:49:53 +1100 Subject: [PATCH] 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. --- Tools/scripts/run-coverage | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tools/scripts/run-coverage b/Tools/scripts/run-coverage index 488194f583..2f43bb095f 100755 --- a/Tools/scripts/run-coverage +++ b/Tools/scripts/run-coverage @@ -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