[latexila/wip/latexila-next: 29/56] Add code coverage support
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila/wip/latexila-next: 29/56] Add code coverage support
- Date: Sat, 13 Sep 2014 20:57:13 +0000 (UTC)
commit d73f014087d93c920cf2c301745f1c7df4d0bca5
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon May 5 18:11:24 2014 +0200
Add code coverage support
New make target:
$ make check-code-coverage
To have unit tests code coverage with an HTML report with colors etc.
Makefile.am | 2 ++
configure.ac | 1 +
src/liblatexila/Makefile.am | 5 ++++-
tests/Makefile.am | 2 ++
4 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 5125659..e2ab6f8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -81,4 +81,6 @@ MAINTAINERCLEANFILES = \
test-driver \
`find "$(srcdir)" -type f -name Makefile.in -print`
+ GNOME_CODE_COVERAGE_RULES@
+
-include $(top_srcdir)/git.mk
diff --git a/configure.ac b/configure.ac
index 87854cf..71b3fa9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -142,6 +142,7 @@ GNOME_COMPILE_WARNINGS([maximum])
GOBJECT_INTROSPECTION_CHECK([1.30.0])
VAPIGEN_CHECK
GTK_DOC_CHECK([1.14], [--flavour no-tmpl])
+GNOME_CODE_COVERAGE
# Generate files
AC_CONFIG_FILES([Makefile
diff --git a/src/liblatexila/Makefile.am b/src/liblatexila/Makefile.am
index d377ce1..4c17717 100644
--- a/src/liblatexila/Makefile.am
+++ b/src/liblatexila/Makefile.am
@@ -1,7 +1,10 @@
-AM_CPPFLAGS = $(WARN_CFLAGS)
+ GNOME_CODE_COVERAGE_RULES@
noinst_LTLIBRARIES = liblatexila.la
+liblatexila_la_CFLAGS = $(WARN_CFLAGS) $(CODE_COVERAGE_CFLAGS)
+liblatexila_la_LDFLAGS = $(CODE_COVERAGE_LDFLAGS)
+
liblatexila_headers = \
latexila-build-job.h \
latexila-build-tool.h \
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 69a7963..a9d0ac7 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,3 +1,5 @@
+ GNOME_CODE_COVERAGE_RULES@
+
AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/src/liblatexila \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]