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 /plugins | |
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 'plugins')
-rw-r--r-- | plugins/Makefile.am | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am index d2cbcb1c..c29364db 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -3,6 +3,9 @@ include $(top_srcdir)/gtester.make # Common CPPFLAGS and LDFLAGS +AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) +AM_LDFLAGS = $(CODE_COVERAGE_LDFLAGS) + PLUGIN_COMMON_COMPILER_FLAGS = \ $(MM_CFLAGS) \ $(GUDEV_CFLAGS) \ @@ -13,13 +16,15 @@ PLUGIN_COMMON_COMPILER_FLAGS = \ -I$(top_builddir)/include \ -I$(top_srcdir)/libmm-glib \ -I$(top_srcdir)/libmm-glib/generated \ - -I$(top_builddir)/libmm-glib/generated + -I$(top_builddir)/libmm-glib/generated \ + $(AM_CFLAGS) PLUGIN_COMMON_LINKER_FLAGS = \ $(GUDEV_LIBS) \ $(MM_LIBS) \ -module \ - -avoid-version + -avoid-version \ + $(AM_LDFLAGS) if WITH_QMI PLUGIN_COMMON_COMPILER_FLAGS += $(QMI_CFLAGS) |