Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automate coverage summary report generation.
This report replaces the lcov report that was generated manually for each release. The lcov report was overly verbose just to say that we have virtually 100% coverage.
- Loading branch information
Showing
13 changed files
with
505 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,3 @@ | ||
# Release Build Instructions | ||
|
||
## Generate Coverage Report | ||
|
||
These instructions are temporary until a fully automated report is implemented. | ||
|
||
- In `test/src/lcov.conf` remove: | ||
``` | ||
# Specify the regular expression of lines to exclude | ||
lcov_excl_line=lcov_excl_line=\{\+{0,1}uncovered[^_]|\{\+{0,1}uncoverable[^_] | ||
# Coverage rate limits | ||
genhtml_hi_limit = 100 | ||
genhtml_med_limit = 90 | ||
``` | ||
|
||
And change `uncover(ed|able)_branch` to `uncoverable_branch`. | ||
|
||
- In `test/lib/pgBackRestTest/Common/JobTest.pm` modify: | ||
``` | ||
if (!$bTest || $iTotalLines != $iCoveredLines || $iTotalBranches != $iCoveredBranches) | ||
``` | ||
to: | ||
``` | ||
if (!$bTest) | ||
``` | ||
|
||
- Run: | ||
``` | ||
/backrest/test/test.pl --dev-test --vm=u18 --c-only | ||
``` | ||
|
||
- Copy coverage report: | ||
``` | ||
cd <pgbackrest-base>/doc/site | ||
rm -rf coverage | ||
cp -r ../../test/coverage/c coverage | ||
``` | ||
|
||
- In `doc/site/coverage` replace: | ||
``` | ||
<title>LCOV - all.lcov</title> | ||
``` | ||
with: | ||
``` | ||
<title>pgBackRest vX.XX C Code Coverage</title> | ||
``` | ||
|
||
- In `doc/site/coverage` replace: | ||
``` | ||
<tr><td class="title">LCOV - code coverage report</td></tr> | ||
``` | ||
with: | ||
``` | ||
<tr><td class="title">pgBackRest vX.XX C Code Coverage</td></tr> | ||
``` | ||
|
||
- In `doc/site/coverage` replace: | ||
``` | ||
<title>LCOV - all.lcov - | ||
``` | ||
with: | ||
``` | ||
<title>pgBackRest vX.XX C Code Coverage - | ||
``` | ||
|
||
- In `doc/site/coverage` replace: | ||
``` | ||
<td class="headerValue">all.lcov</td> | ||
``` | ||
with: | ||
``` | ||
<td class="headerValue">all C unit</td> | ||
``` | ||
|
||
- Switch to prior dir and copy coverage: | ||
``` | ||
cd prior/X.XX | ||
rm -rf coverage | ||
cp -r ../../coverage . | ||
``` | ||
## Run `doc/release.pl` |
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
Oops, something went wrong.