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