Use AX_CODE_COVERAGE for test-coverage statistics
authorThomas Zimmermann <tdz@users.sourceforge.net>
Fri, 12 Aug 2016 08:50:53 +0000 (10:50 +0200)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 15 Aug 2016 13:30:51 +0000 (14:30 +0100)
commitbe04ba8354f8981ac33c66555464fdabc24d3a6a
tree501c4f20296520787cdac76b5dfb7e569ddeea74
parent1a30d452a48fa7c665906f0923adb49fc6ef016e
Use AX_CODE_COVERAGE for test-coverage statistics

DBus uses custom rules in its Makefiles to implement test-coverage
statistics.

This patch implements test-coverage statistics with the autoconf macro
AX_CODE_COVERAGE. The script automatically tests for tools (e.g., gcov,
lcov), sets build variables and creates Makefile rules.

Run 'configure' with '--enable-code-coverage' to enable support for
test-coverage statistics. Run 'make check-code-coverage' to run the
tests and generate the statistics.

Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>
[smcv: do not alter compiler.m4; move AM_CXXFLAGS to the one place we
compile C++]
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=88922
Makefile.am
bus/Makefile.am
configure.ac
dbus/Makefile.am
test/Makefile.am
tools/lcov.am [deleted file]