[librsvg: 1/2] coverage: Oops, ignore cargo_cache as well
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 1/2] coverage: Oops, ignore cargo_cache as well
- Date: Wed, 15 Jun 2022 18:53:49 +0000 (UTC)
commit 01793b836f4bd9e69c5bca8ccc42718a1f6dbde7
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Jun 15 12:07:56 2022 -0500
coverage: Oops, ignore cargo_cache as well
We don't want coverage data for dependencies.
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/710>
ci/gen-coverage.sh | 14 ++++++++++++++
1 file changed, 14 insertions(+)
---
diff --git a/ci/gen-coverage.sh b/ci/gen-coverage.sh
index 871b22038..0b780b575 100644
--- a/ci/gen-coverage.sh
+++ b/ci/gen-coverage.sh
@@ -8,6 +8,19 @@ call_grcov() {
output_type=$1
output_path=$2
+ # Explanation of the options below:
+ # grcov coverage-profiles _build - paths where to find .rawprof (llvm) and .gcda (gcc)
files, respectively
+ # --binary-path ./_build/target/debug/ - where the Rust test binaries are located
+ # --source-dir . - toplevel source directory
+ # --prefix-dir ../../ - prefix to remove from C source files, since they are
relative to builddir
+ # --branch - compute branch coverage if possible
+ # --ignore build.rs - https://github.com/mozilla/grcov/issues/845
+ # --ignore '**/build/markup5ever*' - ignore generated code from dependencies
+ # --ignore '**/build/cssparser*' - ignore generated code from dependencies
+ # --ignore 'cargo_cache/*' - ignore code from dependencies
+ # --output-type $output_type
+ # --output-path $output_path
+
grcov coverage-profiles _build \
--binary-path ./_build/target/debug/ \
--source-dir . \
@@ -16,6 +29,7 @@ call_grcov() {
--ignore build.rs \
--ignore '**/build/markup5ever*' \
--ignore '**/build/cssparser*' \
+ --ignore 'cargo_cache/*' \
--output-type $output_type \
--output-path $output_path
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]