diff options
author | John Wiegley <johnw@newartisans.com> | 2008-08-13 18:15:12 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-08-13 18:15:12 -0400 |
commit | f900213daeb57ca653a1491ac36da94c76b7d017 (patch) | |
tree | f21ab4a56a2b23095c10674d106fbf747b2a6052 | |
parent | 3231e380bbe6ebd5641a24a493078e8aee0fdfe3 (diff) | |
download | fork-ledger-f900213daeb57ca653a1491ac36da94c76b7d017.tar.gz fork-ledger-f900213daeb57ca653a1491ac36da94c76b7d017.tar.bz2 fork-ledger-f900213daeb57ca653a1491ac36da94c76b7d017.zip |
Added a 'make report', which uses GCOV and LCOV to produce code coverage
statistics after running 'make fullcheck'. In order to generate these
reports, you need lcov installed and you must run acprep with the '--gcov'
option.
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | Makefile.am | 14 |
2 files changed, 17 insertions, 2 deletions
@@ -59,8 +59,9 @@ /doc/.dirstamp /doc/Doxyfile.bak /doc/Doxyfile.gen -/doc/html -/doc/latex +/doc/html/ +/doc/latex/ +/doc/report/ /elc-stamp /elisp-comp /install-sh diff --git a/Makefile.am b/Makefile.am index 1a0c3031..afa653b0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -346,6 +346,20 @@ docs: pdf $(top_builddir)/doc/refman.pdf libs: (cd lib; make) +report: all + -rm -fr build + lcov -d $(shell pwd) --zerocounters + -mkdir doc/report + lcov -c -i -d $(shell pwd) -o doc/report/ledger_base.info + make fullcheck + lcov -c -d $(shell pwd) --checksum -o doc/report/ledger_test.info + lcov -a doc/report/ledger_base.info \ + -a doc/report/ledger_test.info -o doc/report/ledger_total.info + lcov --extract doc/report/ledger_total.info '*src/ledger/*' \ + -o doc/report/ledger_cov.info + genhtml -o doc/report doc/report/ledger_cov.info + @echo Coverage reported generated\; now open doc/report/index.html + ###################################################################### copy-sources: |