Tweak .gitignore to ignore gcov files; add a convenience script (lcov.sh) to run lcov & package results

This commit is contained in:
Brian Cox 2017-08-28 23:01:35 -07:00
parent 78b09e081f
commit 02dd677d71
2 changed files with 21 additions and 0 deletions

3
.gitignore vendored
View File

@ -21,6 +21,9 @@ src/test-harness/twtest
**/*.dll
**/*.exe
**/*~
**/*#
**/*.bak
**/.DS_Store
**/*.gcno
**/*.gcda
releases/

18
lcov.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
if [ -d ./lcov ]; then
rm -Rf ./lcov
fi
if [ -e ./lcov.dat ]; then
rm ./lcov.dat
fi
if [ -e ./lcov.tgz ]; then
rm ./lcov.tgz
fi
lcov --capture --directory src --output-file ./lcov.dat
genhtml ./lcov.dat --output-directory lcov
tar -zcvf lcov.tgz lcov