ci: improve lcov HTML output
In particular, demangle C++ symbols in the function coverage view. Change-Id: I882a88fda77c468e26b935ad6088b4254e875151
This commit is contained in:
1 parent
339161aca3
commit
931dfe8a63
2 files changed
+14
-5
No files matched your search
@@ -18,4 +18,9 @@ if has Ubuntu $NODE_LABELS; then
|
||||
sudo apt-get -qq install build-essential pkg-config libboost-all-dev \
|
||||
libcrypto++-dev libsqlite3-dev libssl-dev \
|
||||
libpcap-dev
|
||||
|
||||
if [[ $JOB_NAME == *"code-coverage" ]]; then
|
||||
sudo apt-get -qq install lcov libgd-perl python-setuptools
|
||||
sudo easy_install --upgrade gcovr
|
||||
fi
|
||||
fi
|
||||
@@ -15,8 +15,9 @@ if [[ $JOB_NAME == *"code-coverage" ]]; then
|
||||
|
||||
# Generate also a detailed HTML output, but using lcov (better results)
|
||||
lcov --quiet \
|
||||
--capture --no-external \
|
||||
--capture \
|
||||
--directory . \
|
||||
--no-external \
|
||||
--rc lcov_branch_coverage=1 \
|
||||
--output-file build/coverage-with-tests.info
|
||||
|
||||
@@ -25,8 +26,11 @@ if [[ $JOB_NAME == *"code-coverage" ]]; then
|
||||
--rc lcov_branch_coverage=1 \
|
||||
--output-file build/coverage.info
|
||||
|
||||
genhtml --legend \
|
||||
--rc genhtml_branch_coverage=1 \
|
||||
build/coverage.info \
|
||||
--output-directory build/coverage
|
||||
genhtml --branch-coverage \
|
||||
--demangle-cpp \
|
||||
--frames \
|
||||
--legend \
|
||||
--output-directory build/coverage \
|
||||
--title "ndn-tools unit tests" \
|
||||
build/coverage.info
|
||||
fi
|
||||
Reference in new issue
Block a user