[gspell/wip/valgrind-check] Use AX_VALGRIND_CHECK
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gspell/wip/valgrind-check] Use AX_VALGRIND_CHECK
- Date: Mon, 1 Aug 2016 14:47:22 +0000 (UTC)
commit 6a8babe45668212a7ead2223e2c02d2b7110355e
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Aug 1 14:13:23 2016 +0200
Use AX_VALGRIND_CHECK
As explained in the GNOME Programming Guidelines:
https://developer.gnome.org/programming-guidelines/stable/tooling.html.en
Take suppression files from:
https://github.com/dtrebbien/GNOME.supp
as explained at:
https://wiki.gnome.org/Valgrind
configure.ac | 5 +++++
testsuite/Makefile.am | 11 +++++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4e87858..2114209 100644
--- a/configure.ac
+++ b/configure.ac
@@ -150,6 +150,10 @@ VAPIGEN_CHECK
AX_REQUIRE_DEFINED([AX_CODE_COVERAGE])
AX_CODE_COVERAGE()
+# Valgrind check
+AX_REQUIRE_DEFINED([AX_VALGRIND_CHECK])
+AX_VALGRIND_CHECK
+
# Check for Mac OS X platform
AC_MSG_CHECKING([for Mac OS X platform])
case "$host" in
@@ -225,5 +229,6 @@ Configuration:
GObject introspection: ${found_introspection}
Vala: ${enable_vala}
Code coverage: ${enable_code_coverage}
+ Valgrind check: ${enable_valgrind}
Installed tests: ${enable_installed_tests}
"
diff --git a/testsuite/Makefile.am b/testsuite/Makefile.am
index 669c026..821f316 100644
--- a/testsuite/Makefile.am
+++ b/testsuite/Makefile.am
@@ -1,5 +1,16 @@
@CODE_COVERAGE_RULES@
+@VALGRIND_CHECK_RULES@
+
+# https://github.com/dtrebbien/GNOME.supp
+VALGRIND_SUPPRESSIONS_FILES = \
+ $(top_srcdir)/../GNOME.supp/build/base.supp \
+ $(top_srcdir)/../GNOME.supp/build/glib.supp \
+ $(top_srcdir)/../GNOME.supp/build/gio.supp \
+ $(top_srcdir)/../GNOME.supp/build/pango.supp \
+ $(top_srcdir)/../GNOME.supp/build/gdk.supp \
+ $(top_srcdir)/../GNOME.supp/build/gtk3.supp
+
AM_CPPFLAGS = \
-I$(top_srcdir) \
$(WARN_CFLAGS) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]