-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP coverage support * Make it work * Regenerate documentation * Gate env vars on coverage being enabled * Add coverage targets * Allow 2 actions when generating coverage Co-authored-by: Krasimir Georgiev <krasimir@google.com>
- Loading branch information
1 parent
c5c3603
commit 7465c1a
Showing
11 changed files
with
129 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
if [[ -n "${VERBOSE_COVERAGE:-}" ]]; then | ||
set -x | ||
fi | ||
|
||
readonly profdata_file=$COVERAGE_DIR/coverage.profdata | ||
|
||
"$RUNFILES_DIR/$TEST_WORKSPACE/$RUST_LLVM_PROFDATA" \ | ||
merge \ | ||
--sparse "$COVERAGE_DIR"/*.profraw \ | ||
-output "$profdata_file" | ||
|
||
"$RUNFILES_DIR/$TEST_WORKSPACE/$RUST_LLVM_COV" \ | ||
export \ | ||
-format=lcov \ | ||
-instr-profile "$profdata_file" \ | ||
-ignore-filename-regex='.*external/.+' \ | ||
-ignore-filename-regex='/tmp/.+' \ | ||
-path-equivalence="$ROOT",. \ | ||
"$RUNFILES_DIR/$TEST_WORKSPACE/$TEST_BINARY" \ | ||
| sed 's#/proc/self/cwd/##' > "$COVERAGE_OUTPUT_FILE" |