diff options
author | Jakub Sitnicki <jsitnicki@gmail.com> | 2015-01-11 15:07:22 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2015-01-11 19:32:43 +0100 |
commit | 7552030ef90004857b4535f835e19fe734b22a39 (patch) | |
tree | 8565c8684d90213d38888fed7f108ea24eb1dd4a /configure.ac | |
parent | ffe2106d4e556526119b89eedb62047fd8eab7de (diff) |
build: add code coverage support
Build all targets, except for CLI tools (mmcli, uml290), with special
flags needed for collecting code coverage information when the build has
been configured with --enable-code-coverage.
Three new targets are available in the top build directory:
- `check-code-coverage' runs the test suite and generates a code
coverage report,
- `code-coverage-capture' generates a code coverage report from already
collected data, which can come in handy when one wants to see code
paths touched by a particular test,
- `code-coverage-clean' removes the collected coverage data and the
generated reports.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 9e8587dc..22417cc1 100644 --- a/configure.ac +++ b/configure.ac @@ -110,6 +110,9 @@ AC_SUBST(GLIB_MKENUMS) GDBUS_CODEGEN=`$PKG_CONFIG --variable=gdbus_codegen gio-2.0` AC_SUBST(GDBUS_CODEGEN) +# Code coverage (disabled by default) +AX_CODE_COVERAGE + # GObject Introspection GOBJECT_INTROSPECTION_CHECK([0.9.6]) @@ -302,7 +305,13 @@ echo " compiler: ${CC} cflags: ${CFLAGS} Maintainer mode: ${USE_MAINTAINER_MODE} + Code coverage: ${CODE_COVERAGE_ENABLED}" +if test "x${CODE_COVERAGE_ENABLED}" = "xyes"; then + echo " Code coverage cflags: ${CODE_COVERAGE_CFLAGS}" + echo " Code coverage ldflags: ${CODE_COVERAGE_LDFLAGS}" +fi +echo " D-Bus system directory: ${DBUS_SYS_DIR} udev base directory: ${UDEV_BASE_DIR} systemd unit directory: ${with_systemdsystemunitdir} |