Restructuring: Generate coverage report

This commit is contained in:
Daniel Marjamäki 2009-10-26 17:56:56 +01:00
parent cf62e8ce64
commit cacfa694b0
1 changed files with 3 additions and 3 deletions

View File

@ -2,11 +2,11 @@
make clean make clean
rm -r coverage_report rm -r coverage_report
make test CXXFLAGS="-Wall -Wextra -pedantic -g -fprofile-arcs -ftest-coverage" make test CXXFLAGS="-Wall -Wextra -pedantic -g -fprofile-arcs -ftest-coverage"
gcov src/*.cpp -o src/ gcov lib/*.cpp -o lib/
lcov --directory ./ --capture --output-file lcov.info -b ./ lcov --directory ./ --capture --output-file lcov.info -b ./
genhtml lcov.info -o coverage_report genhtml lcov.info -o coverage_report
rm src/*.gcda rm lib/*.gcda
rm src/*.gcno rm lib/*.gcno
rm test/*.gcda rm test/*.gcda
rm test/*.gcno rm test/*.gcno
rm lcov.info rm lcov.info