[totem-pl-parser] build: Use gnome-common code coverage macros to add gcov support
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser] build: Use gnome-common code coverage macros to add gcov support
- Date: Fri, 7 Sep 2012 20:27:18 +0000 (UTC)
commit 97cbbf6caaf89460fa99640e5ca7ff748a864cb6
Author: Philip Withnall <philip tecnocode co uk>
Date: Tue Aug 21 21:27:55 2012 +0100
build: Use gnome-common code coverage macros to add gcov support
This replaces totem-pl-parserâs existing home-grown solution with the
gnome-common code coverage macros added in gnome-common 3.5.6/3.6.0.
To use:
cd plparse && make check-code-coverage
this will run the totem-pl-parser test suite and build a code coverage
report of the code which was touched. The report will be an HTML file and
its URI will be printed on completion.
Closes: https://bugzilla.gnome.org/show_bug.cgi?id=683212
configure.in | 1 +
plparse/Makefile.am | 6 ++++++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/configure.in b/configure.in
index dc16908..9135922 100644
--- a/configure.in
+++ b/configure.in
@@ -204,6 +204,7 @@ AC_SUBST([AM_LDFLAGS])
GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
GOBJECT_INTROSPECTION_CHECK([0.9.5])
+GNOME_CODE_COVERAGE
AC_CONFIG_FILES([
Makefile
diff --git a/plparse/Makefile.am b/plparse/Makefile.am
index 831e5e4..f2cd2b1 100644
--- a/plparse/Makefile.am
+++ b/plparse/Makefile.am
@@ -78,6 +78,7 @@ libtotem_plparser_la_CFLAGS = \
$(LIBGCRYPT_CFLAGS) \
$(DBUS_CFLAGS) \
$(WARN_CFLAGS) \
+ $(CODE_COVERAGE_CFLAGS) \
$(AM_CFLAGS) \
-D_FILE_OFFSET_BITS=64 \
-D_LARGEFILE64_SOURCE \
@@ -94,6 +95,7 @@ libtotem_plparser_la_LDFLAGS = \
-version-info $(PLPARSER_LT_VERSION) \
-export-symbols $(srcdir)/plparser.symbols \
-no-undefined \
+ $(CODE_COVERAGE_LDFLAGS) \
$(AM_LDFLAGS)
libtotem_plparser_mini_la_SOURCES = \
@@ -134,6 +136,7 @@ libtotem_plparser_mini_la_CPPFLAGS = \
libtotem_plparser_mini_la_CFLAGS = \
$(TOTEM_PLPARSER_MINI_CFLAGS) \
$(WARN_CFLAGS) \
+ $(CODE_COVERAGE_CFLAGS) \
$(AM_CFLAGS)
libtotem_plparser_mini_la_LIBADD = \
@@ -144,6 +147,7 @@ libtotem_plparser_mini_la_LDFLAGS = \
-version-info $(PLPARSER_LT_VERSION) \
-export-symbols $(srcdir)/plparser-mini.symbols \
-no-undefined \
+ $(CODE_COVERAGE_LDFLAGS) \
$(AM_LDFLAGS)
totem-pl-parser-builtins.h: totem-pl-parser.h totem-disc.h
@@ -214,4 +218,6 @@ typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
CLEANFILES += $(gir_DATA) $(typelib_DATA)
endif
+ GNOME_CODE_COVERAGE_RULES@
+
-include $(top_srcdir)/git.mk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]