@@ -32,9 +32,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Coverage
|
- name: Coverage
|
||||||
run: |
|
run: |
|
||||||
GCOV_TOOL="$(dirname "$(command -v g++)")/gcov"
|
GCOV_TOOL_DIR="$(dirname "$(g++ -print-file-name=libgcov.a)")"
|
||||||
GCOV_TOOL="$(g++ -print-prog-name=gcov)"
|
GCOV_TOOL="$GCOV_TOOL_DIR/gcov"
|
||||||
lcov --gcov-tool "$GCOV_TOOL" --capture --directory build --output-file build/coverage.info
|
if [ ! -x "$GCOV_TOOL" ]; then
|
||||||
lcov --remove build/coverage.info "/usr/*" "*/build/*" "*/_deps/*" --output-file build/coverage.info
|
GCOV_TOOL="$(command -v gcov)"
|
||||||
lcov --summary build/coverage.info
|
fi
|
||||||
|
lcov --gcov-tool "$GCOV_TOOL" --capture --directory build --output-file build/coverage.info
|
||||||
|
lcov --remove build/coverage.info "/usr/*" "*/build/*" "*/_deps/*" --output-file build/coverage.info
|
||||||
|
lcov --summary build/coverage.info
|
||||||
genhtml build/coverage.info --output-directory build/coverage-html
|
genhtml build/coverage.info --output-directory build/coverage-html
|
||||||
|
|||||||
Reference in New Issue
Block a user