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