[telepathy-glib/master] Add a top-level target to run valgrind, and make it log the output

Simon McVittie simon.mcvittie at collabora.co.uk
Thu Dec 3 11:06:52 PST 2009


---
 .gitignore  |    1 +
 Makefile.am |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
index f14a250..c3bf33c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -71,3 +71,4 @@ tests/test-*
 tests/tools/actual.h
 tests/tools/actual-body.h
 tools/telepathy-glib-env
+/valgrind.log
diff --git a/Makefile.am b/Makefile.am
index fd871bb..5d2f606 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -14,6 +14,9 @@ check-local::
 	egrep -A 5 '[F]IXME|[T]ODO|[X]XX' $(srcdir)/telepathy-glib/*.[ch] \
 		> FIXME.out || true
 
+check-valgrind:
+	$(MAKE) -C tests check-valgrind 2>&1 | tee valgrind.log
+
 maintainer-upload-release: _maintainer-upload-release-local
 _maintainer-upload-release-local: _maintainer-upload-release-check
 	rsync -rvzPp --chmod=Dg+s,ug+rwX,o=rX docs/reference/html/ \
-- 
1.5.6.5




More information about the telepathy-commits mailing list