cppcheck/generate_coverage_report

15 lines
334 B
Plaintext
Raw Normal View History

#!/bin/bash
set -e
make clean
rm -rf coverage_report
make test CXXFLAGS="-Wall -Wextra -pedantic -g -fprofile-arcs -ftest-coverage"
gcov lib/*.cpp -o lib/
lcov --directory ./ --capture --output-file lcov.info -b ./
genhtml lcov.info -o coverage_report
rm lib/*.gcda
rm lib/*.gcno
2009-10-05 10:51:23 +02:00
rm test/*.gcda
rm test/*.gcno
rm lcov.info
make clean