Commit f1a5f1b9 authored by Martin Pitt's avatar Martin Pitt
Browse files

Add support for lcov code coverage

Use gnome-common's new code coverage flags. Default to enabling code coverage
in autogen.sh (but not for dist).

To use this, run "make check-code-coverage" after building.
parent e46af4ab
......@@ -60,6 +60,7 @@ Makefile.in
/py-compile
/pygobject-3.0-uninstalled.pc
/pygobject-3.0.pc
/pygobject-*-coverage*
/so_locations
/stamp-h1
/tags
......
......@@ -144,3 +144,5 @@ check.nemiver:
check.valgrind:
cd tests && $(MAKE) check.valgrind
@GNOME_CODE_COVERAGE_RULES@
......@@ -16,4 +16,4 @@ fi
autoreconf --force --install --verbose || exit $?
cd "$olddir"
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
test -n "$NOCONFIGURE" || "$srcdir/configure" --enable-code-coverage "$@"
......@@ -249,6 +249,11 @@ if test "x$GCC" = "xyes"; then
fi
# enable code coverage support
GNOME_CODE_COVERAGE
CFLAGS="$CFLAGS $CODE_COVERAGE_CFLAGS"
LDFLAGS="$LDFLAGS $CODE_COVERAGE_CFLAGS"
AC_CONFIG_FILES(
Makefile
pygobject-3.0.pc
......@@ -270,5 +275,6 @@ AC_MSG_RESULT([
libffi support: $have_libffi
cairo support: $enable_cairo
thread support: $enable_thread
code coverage support: $enable_code_coverage
])
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