From 6e4471c01a9785bd79e6b8ef52597893bfa9659b Mon Sep 17 00:00:00 2001 From: Kevin Traini Date: Sun, 29 Dec 2024 16:24:35 +0100 Subject: [PATCH] fix: build_coverage scripts has errors Part of #54 With moving of dependencies, some ignores of lcov are not matched and considered as errors Also choose to ignore version errors --- tools/bin/build_coverage | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/bin/build_coverage b/tools/bin/build_coverage index 3b1e13d..2694ff9 100755 --- a/tools/bin/build_coverage +++ b/tools/bin/build_coverage @@ -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