Skip to content

Commit

Permalink
fix: build_coverage scripts has errors
Browse files Browse the repository at this point in the history
Part of #54

With moving of dependencies, some ignores of lcov are not matched and
considered as errors

Also choose to ignore version errors
  • Loading branch information
Gashmob committed Dec 29, 2024
1 parent 7106c2a commit 6e4471c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/bin/build_coverage
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

set -euo pipefail

lcov --directory "$ROOT_DIR" --capture --output-file coverage.info
lcov --ignore-errors version --directory "$ROOT_DIR" --capture --output-file coverage.info

# Remove external files and dependencies
lcov --remove coverage.info '/nix/store/*' --output-file coverage.info
lcov --remove coverage.info '*/antlr4_runtime/*' '*/antlr4cpp_generated_src/*' --output-file coverage.info
lcov --remove coverage.info '*/cxxopts.hpp' --output-file coverage.info
lcov --ignore-errors unused --remove coverage.info '/nix/store/*' --output-file coverage.info
lcov --ignore-errors unused --remove coverage.info "$ROOT_DIR/out/*/antlr4cpp_generated_src/*" --output-file coverage.info

# Display result
lcov --list coverage.info

0 comments on commit 6e4471c

Please sign in to comment.