Commit 99ff22d6 authored by Alexander Kanavin's avatar Alexander Kanavin

Add lcov support

parent 4cea164b
......@@ -32,3 +32,11 @@ update-online-doc:
git push ; \
popd > /dev/null && \
rm -rf $(PACKAGE)-$(VERSION)
lcov: check
@rm -rf lcov-report
@lcov -c --directory src/ --output-file lcov.output
@genhtml lcov.output --output-directory lcov-report
@rm lcov.output
@echo "Coverage report is in file://$(abs_srcdir)/lcov-report/index.html"
......@@ -35,6 +35,11 @@ PKG_CHECK_MODULES([CHECK], [check >= 0.9.4], [have_check=yes], [have_check=no])
AC_SUBST(CHECK_CFLAGS)
AC_SUBST(CHECK_LIBS)
AC_ARG_ENABLE([coverage],
[AS_HELP_STRING([--enable-coverage], [compile with coverage info])])
AS_IF([test "x$enable_coverage" = "xyes"],
[CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"])
# allow fake installations for "distcheck"
AC_ARG_ENABLE(distcheck,
[ --enable-distcheck build for distcheck target],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment