2009-10-05 09:51:09 +02:00
|
|
|
#!/bin/bash
|
2010-06-01 20:20:19 +02:00
|
|
|
set -e
|
2009-10-05 09:51:09 +02:00
|
|
|
make clean
|
2010-06-01 20:20:19 +02:00
|
|
|
rm -rf coverage_report
|
2011-03-14 11:21:35 +01:00
|
|
|
make test CXXFLAGS="-g -fprofile-arcs -ftest-coverage"
|
2015-08-14 01:06:50 +02:00
|
|
|
test/cfg/runtests.sh
|
2009-10-26 17:56:56 +01:00
|
|
|
gcov lib/*.cpp -o lib/
|
2010-06-01 20:21:29 +02:00
|
|
|
lcov --directory ./ --capture --output-file lcov_tmp.info -b ./
|
|
|
|
lcov --extract lcov_tmp.info "$(pwd)/*" --output-file lcov.info
|
2016-02-02 12:23:33 +01:00
|
|
|
genhtml lcov.info -o coverage_report --frame --legend --demangle-cpp
|
2012-10-16 07:57:12 +02:00
|
|
|
rm cli/*.gcda
|
|
|
|
rm cli/*.gcno
|
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
|
2020-11-16 09:11:08 +01:00
|
|
|
rm externals/tinyxml2/*.gcda
|
|
|
|
rm externals/tinyxml2/*.gcno
|
2010-06-01 20:21:29 +02:00
|
|
|
rm lcov.info lcov_tmp.info
|
2009-10-05 09:51:09 +02:00
|
|
|
make clean
|