21 lines
531 B
Bash
Executable File
21 lines
531 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
make clean
|
|
rm -rf coverage_report
|
|
make test CXXFLAGS="-g -fprofile-arcs -ftest-coverage"
|
|
test/cfg/runtests.sh
|
|
gcov lib/*.cpp -o lib/
|
|
lcov --directory ./ --capture --output-file lcov_tmp.info -b ./
|
|
lcov --extract lcov_tmp.info "$(pwd)/*" --output-file lcov.info
|
|
genhtml lcov.info -o coverage_report --frame --legend --demangle-cpp
|
|
rm cli/*.gcda
|
|
rm cli/*.gcno
|
|
rm lib/*.gcda
|
|
rm lib/*.gcno
|
|
rm test/*.gcda
|
|
rm test/*.gcno
|
|
rm externals/tinyxml2/*.gcda
|
|
rm externals/tinyxml2/*.gcno
|
|
rm lcov.info lcov_tmp.info
|
|
make clean
|