diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2006-07-02 21:45:26 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2006-07-02 21:45:26 +0000 |
commit | f411695f3e009b4d348a8fa2dd32c0171f1ff683 (patch) | |
tree | 7571868c433b4e197ca8985a9657cb1752c56813 /coverage/lcov.mak | |
parent | 9eb7943282c38c815cfbac34cff4062a94e72e62 (diff) |
add an inspect target that inspects every element feature, so we can have that added for coverage
Original commit message from CVS:
* Makefile.am:
* check.mak:
add an inspect target that inspects every element feature,
so we can have that added for coverage
* coverage/lcov.mak:
add support for lcov
Diffstat (limited to 'coverage/lcov.mak')
-rw-r--r-- | coverage/lcov.mak | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/coverage/lcov.mak b/coverage/lcov.mak new file mode 100644 index 0000000..0d23b19 --- /dev/null +++ b/coverage/lcov.mak @@ -0,0 +1,16 @@ +lcov: + find . -name "*.gcda" -exec rm {} \; + make -C tests/check inspect + make -C tests/check check + make lcov-report + +lcov-report: + @-rm -rf lcov + mkdir lcov + lcov --directory . --capture --output-file lcov/lcov.info + lcov -l lcov/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > lcov/remove + lcov -l lcov/lcov.info | grep "tests/check/" | cut -d: -f1 >> lcov/remove + lcov -r lcov/lcov.info `cat lcov/remove` > lcov/lcov.cleaned.info + rm lcov/remove + mv lcov/lcov.cleaned.info lcov/lcov.info + genhtml -o lcov lcov/lcov.info |