mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-03 16:47:47 +08:00
updated coverage config
This commit is contained in:
@@ -88,7 +88,7 @@ jobs:
|
||||
else
|
||||
GCOV_TOOL="gcov"
|
||||
fi
|
||||
LCOV_IGNORE=(--ignore-errors gcov,source,graph,mismatch)
|
||||
LCOV_IGNORE=(--ignore-errors gcov,source,graph,mismatch,unused)
|
||||
|
||||
lcov --gcov-tool "$GCOV_TOOL" "${LCOV_IGNORE[@]}" \
|
||||
--capture \
|
||||
@@ -100,11 +100,8 @@ jobs:
|
||||
'${{ github.workspace }}/*' \
|
||||
--output-file lcov.info
|
||||
lcov "${LCOV_IGNORE[@]}" --remove lcov.info \
|
||||
'*/googletest/*' \
|
||||
'*/_deps/*' \
|
||||
'*/sqlite3/*' \
|
||||
'*/corelib/test/*' \
|
||||
'*/utilite/test/*' \
|
||||
'*/rtflann/*' \
|
||||
--output-file lcov.info
|
||||
|
||||
lcov --summary lcov.info
|
||||
|
||||
+2
-5
@@ -32,7 +32,7 @@ detect_gcov_tool() {
|
||||
fi
|
||||
}
|
||||
GCOV_TOOL="$(detect_gcov_tool)"
|
||||
LCOV_IGNORE=(--ignore-errors gcov,source,graph,mismatch)
|
||||
LCOV_IGNORE=(--ignore-errors gcov,source,graph,mismatch,unused)
|
||||
|
||||
configure_coverage_build() {
|
||||
local -a gtest_args=()
|
||||
@@ -104,11 +104,8 @@ lcov "${LCOV_IGNORE[@]}" --extract "$INFO_FILE" \
|
||||
"${ROOT}/*" \
|
||||
--output-file "$INFO_FILE"
|
||||
lcov "${LCOV_IGNORE[@]}" --remove "$INFO_FILE" \
|
||||
'*/googletest/*' \
|
||||
'*/_deps/*' \
|
||||
'*/sqlite3/*' \
|
||||
'*/corelib/test/*' \
|
||||
'*/utilite/test/*' \
|
||||
'*/rtflann/*' \
|
||||
--output-file "$INFO_FILE"
|
||||
|
||||
echo "Generating HTML..."
|
||||
|
||||
Reference in New Issue
Block a user