File tree Expand file tree Collapse file tree 3 files changed +31
-21
lines changed
Expand file tree Collapse file tree 3 files changed +31
-21
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ DNF_PKGS=(
3131FORMULAE=(boost openssl pkgconf)
3232case $JOB_NAME in
3333 * code-coverage)
34- APT_PKGS+=(lcov)
34+ APT_PKGS+=(lcov libjson-xs-perl )
3535 ;;
3636 * Docs)
3737 APT_PKGS+=(doxygen graphviz)
Original file line number Diff line number Diff line change @@ -8,29 +8,37 @@ export UV_NO_MANAGED_PYTHON=1
88
99set -x
1010
11- # Generate an XML report (Cobertura format) and a detailed HTML report using gcovr
11+ # Generate a detailed HTML report and an XML report in Cobertura format using gcovr
1212# Note: trailing slashes are important in the paths below. Do not remove them!
13- uvx gcovr@5.2 \
14- --object-directory build \
13+ uvx --from ' git+https://github.com/ gcovr/gcovr@99b82e7 ' gcovr \
14+ --decisions \
1515 --filter PSync/ \
1616 --exclude-throw-branches \
1717 --exclude-unreachable-branches \
1818 --cobertura build/coverage.xml \
1919 --html-details build/gcovr/ \
20- --print-summary
20+ --txt-summary \
21+ build
2122
2223# Generate a detailed HTML report using lcov
23- lcov --quiet \
24- --capture \
25- --directory . \
26- --exclude " $PWD /tests/*" \
27- --no-external \
28- --rc lcov_branch_coverage=1 \
29- --output-file build/coverage.info
24+ lcov \
25+ --quiet \
26+ --capture \
27+ --directory . \
28+ --include " $PWD /PSync/*" \
29+ --ignore-errors count,inconsistent \
30+ --branch-coverage \
31+ --rc no_exception_branch=1 \
32+ --output-file build/coverage.info
3033
31- genhtml --branch-coverage \
32- --demangle-cpp \
33- --legend \
34- --output-directory build/lcov \
35- --title " PSync unit tests" \
36- build/coverage.info
34+ genhtml \
35+ --quiet \
36+ --branch-coverage \
37+ --demangle-cpp \
38+ --flat \
39+ --legend \
40+ --missed \
41+ --show-proportion \
42+ --title " PSync $( cat VERSION.info) " \
43+ --output-directory build/lcov \
44+ build/coverage.info
Original file line number Diff line number Diff line change @@ -86,10 +86,12 @@ def configure(conf):
8686 conf .write_config_header ('PSync/detail/config.hpp' , define_prefix = 'PSYNC_' )
8787
8888def build (bld ):
89+ version (bld )
90+
8991 bld .shlib (
9092 target = 'PSync' ,
91- vnum = VERSION ,
92- cnum = VERSION ,
93+ vnum = VERSION_BASE ,
94+ cnum = VERSION_BASE ,
9395 source = bld .path .ant_glob ('PSync/**/*.cpp' ),
9496 use = 'BOOST NDN_CXX' ,
9597 includes = '.' ,
@@ -110,7 +112,7 @@ def build(bld):
110112 source = 'PSync.pc.in' ,
111113 target = 'PSync.pc' ,
112114 install_path = '${LIBDIR}/pkgconfig' ,
113- VERSION = VERSION )
115+ VERSION = VERSION_BASE )
114116
115117def docs (bld ):
116118 from waflib import Options
You can’t perform that action at this time.
0 commit comments