add script for generating test coverage with gcov/lcov

These lines are taken directly from the gcov.prf qmake feature file
This commit is contained in:
Matt Broadstone 2014-08-07 14:17:14 -04:00
parent 695f7d2997
commit 81cdb98c86
1 changed files with 4 additions and 0 deletions

4
tests/gen-coverage.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
lcov --capture --directory . --output-file coverage-gcov.info --no-external
lcov --output-file coverage-gcov.info --remove coverage-gcov.info 'moc_*.cpp' '*.moc*' '.*rcc*' '*3rdparty*'
genhtml coverage-gcov.info --output-directory doc/coverage