2019-02-20 15:48:14 +02:00
|
|
|
# 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
|
2019-05-11 20:51:51 +02:00
|
|
|
lcov_excl_line=lcov_excl_line=\{\+{0,1}uncovered[^_]|\{\+{0,1}uncoverable[^_]
|
2019-02-20 15:48:14 +02:00
|
|
|
|
|
|
|
# Coverage rate limits
|
|
|
|
genhtml_hi_limit = 100
|
|
|
|
genhtml_med_limit = 90
|
|
|
|
```
|
|
|
|
|
2019-05-11 20:51:51 +02:00
|
|
|
And change `uncover(ed|able)_branch` to `uncoverable_branch`.
|
|
|
|
|
2019-02-20 15:48:14 +02:00
|
|
|
- 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:
|
|
|
|
```
|
2019-03-10 18:56:00 +02:00
|
|
|
cd <pgbackrest-base>/doc/site
|
|
|
|
rm -rf coverage
|
2019-02-20 15:48:14 +02:00
|
|
|
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:
|
|
|
|
```
|
2019-03-10 18:56:00 +02:00
|
|
|
<td class="headerValue">all.lcov</td>
|
2019-02-20 15:48:14 +02:00
|
|
|
```
|
|
|
|
with:
|
|
|
|
```
|
|
|
|
<td class="headerValue">all C unit</td>
|
|
|
|
```
|
|
|
|
|
|
|
|
- Switch to prior dir and copy coverage:
|
|
|
|
```
|
2019-04-11 15:14:22 +02:00
|
|
|
cd prior/X.XX
|
|
|
|
rm -rf coverage
|
2019-02-20 15:48:14 +02:00
|
|
|
cp -r ../../coverage .
|
|
|
|
```
|