File: generate_coverage_report

package info (click to toggle)
cppcheck 1.76.1-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 13,608 kB
  • sloc: cpp: 140,390; python: 3,430; ansic: 2,808; xml: 670; makefile: 501; sh: 237
file content (20 lines) | stat: -rwxr-xr-x 529 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
set -e
make clean
rm -rf coverage_report
make test CXXFLAGS="-g -fprofile-arcs -ftest-coverage"
test/cfg/runtests.sh
gcov lib/*.cpp -o lib/
lcov --directory ./ --capture --output-file lcov_tmp.info -b ./
lcov --extract lcov_tmp.info "$(pwd)/*" --output-file lcov.info
genhtml lcov.info -o coverage_report --frame --legend --demangle-cpp
rm cli/*.gcda
rm cli/*.gcno
rm lib/*.gcda
rm lib/*.gcno
rm test/*.gcda
rm test/*.gcno
rm externals/tinyxml/*.gcda
rm externals/tinyxml/*.gcno
rm lcov.info lcov_tmp.info
make clean