Browse Source

coverage: Added `coverage` makefile target

Added coverage files to `clean` and `coverage` target to generate HTML
report of coverage.
ppa-0.6.1
Christian Decker 8 years ago
committed by Rusty Russell
parent
commit
07fbeee29d
  1. 1
      .gitignore
  2. 9
      Makefile

1
.gitignore

@ -12,3 +12,4 @@ libsecp256k1.la
gen_*
daemon/lightning-cli
check-bolt
coverage

9
Makefile

@ -271,6 +271,13 @@ check-source: check-makefile check-source-bolt check-whitespace \
full-check: check $(TEST_PROGRAMS) check-source
coverage/coverage.info: check $(TEST_PROGRAMS)
mkdir coverage || true
lcov --capture --directory . --output-file coverage/coverage.info
coverage: coverage/coverage.info
genhtml coverage/coverage.info --output-directory coverage
# Ignore test/ directories.
TAGS: FORCE
$(RM) TAGS; find * -name test -type d -prune -o -name '*.[ch]' -print | xargs etags --append
@ -360,6 +367,8 @@ clean: daemon-clean wire-clean
$(RM) ccan/config.h gen_*.h
$(RM) ccan/ccan/cdump/tools/cdump-enumstr.o
$(RM) doc/deployable-lightning.{aux,bbl,blg,dvi,log,out,tex}
find . -name '*gcda' -delete
find . -name '*gcno' -delete
include daemon/Makefile

Loading…
Cancel
Save