Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 16 lines (15 sloc) 0.392 kb
8ed5dad @aggro80 Add script generate_coverage_report for generating test coverage report ...
aggro80 authored
1 #!/bin/bash
b57bab5 @nicolas17 coverage report script: Quit immediately on errors,
nicolas17 authored
2 set -e
8ed5dad @aggro80 Add script generate_coverage_report for generating test coverage report ...
aggro80 authored
3 make clean
b57bab5 @nicolas17 coverage report script: Quit immediately on errors,
nicolas17 authored
4 rm -rf coverage_report
4a76d75 @danmar LCOV: updated the generate_coverage_report to avoid some redundant compi...
authored
5 make test CXXFLAGS="-g -fprofile-arcs -ftest-coverage"
cacfa69 @danmar Restructuring: Generate coverage report
authored
6 gcov lib/*.cpp -o lib/
7082371 @nicolas17 coverage report script: Extract only relevant data from the .info file.
nicolas17 authored
7 lcov --directory ./ --capture --output-file lcov_tmp.info -b ./
8 lcov --extract lcov_tmp.info "$(pwd)/*" --output-file lcov.info
8ed5dad @aggro80 Add script generate_coverage_report for generating test coverage report ...
aggro80 authored
9 genhtml lcov.info -o coverage_report
cacfa69 @danmar Restructuring: Generate coverage report
authored
10 rm lib/*.gcda
11 rm lib/*.gcno
24c60c8 @aggro80 Better cleanup for coverage script.
aggro80 authored
12 rm test/*.gcda
13 rm test/*.gcno
7082371 @nicolas17 coverage report script: Extract only relevant data from the .info file.
nicolas17 authored
14 rm lcov.info lcov_tmp.info
8ed5dad @aggro80 Add script generate_coverage_report for generating test coverage report ...
aggro80 authored
15 make clean
Something went wrong with that request. Please try again.