From 326dd32af1ecc9df2013b516f7f8f427a4b6cf5c Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 3 Jan 2014 14:41:52 +0100 Subject: Add code coverage support Add a MATE_CODE_COVERAGE m4 macro to allow projects to easily add code coverage support using lcov. This is heavily based on the code coverage tooling from GLib (LGPLv2.1+), originally written by Patrick Hulin and modified by Matthias Clasen, Stef Walter and Simon McVittie since. Adapted for use in MATE by Sander Sweers. See GNOME commit: https://git.gnome.org/browse/gnome-common/commit/?id=493d55921f26ac3a9a3b7cc33756c88daace329e And follow up commits: https://git.gnome.org/browse/gnome-common/log/macros2/gnome-code-coverage.m4 --- macros/mate-autogen | 3 +++ 1 file changed, 3 insertions(+) (limited to 'macros/mate-autogen') diff --git a/macros/mate-autogen b/macros/mate-autogen index 5b3a44d..63bf691 100644 --- a/macros/mate-autogen +++ b/macros/mate-autogen @@ -320,6 +320,9 @@ for configure_ac in $configure_files; do grep "^MATE_CXX_WARNINGS" $configure_ac >/dev/null; then require_m4macro mate-compiler-flags.m4 fi + if grep "^MATE_CODE_COVERAGE" $configure_ac >/dev/null; then + require_m4macro mate-code-coverage.m4 + fi done #tell Mandrake autoconf wrapper we want autoconf 2.5x, not 2.13 -- cgit v1.2.1