[pygobject] tests: Update check.valgrind with always-malloc and add logging options
- From: Simon Feltman <sfeltman src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] tests: Update check.valgrind with always-malloc and add logging options
- Date: Mon, 7 Oct 2013 02:05:30 +0000 (UTC)
commit 62f185bef20b42f18290a3cf1d3b19dddc957f8a
Author: Simon Feltman <sfeltman src gnome org>
Date: Sun Oct 6 16:41:37 2013 -0700
tests: Update check.valgrind with always-malloc and add logging options
Based on notes in https://wiki.gnome.org/Valgrind we need to use
always-malloc for valgrind runs.
Add check.valgrindlog and check.valgrindxml which output valgrind logs into
an ignored local tmp. Output logs are named <head-sha>-$TEST_NAMES.log so we
can track commits and use diff tools on the logs.
.gitignore | 1 +
Makefile.am | 6 ++++++
tests/Makefile.am | 10 +++++++++-
3 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index de5c0fc..a2307e6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -65,3 +65,4 @@ Makefile.in
/stamp-h1
/tags
/xmldocs.make
+/tmp/*
diff --git a/Makefile.am b/Makefile.am
index 5e91024..5051b54 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -148,4 +148,10 @@ check.nemiver:
check.valgrind:
cd tests && $(MAKE) check.valgrind
+check.valgrindlog:
+ cd tests && $(MAKE) check.valgrindlog
+
+check.valgrindxml:
+ cd tests && $(MAKE) check.valgrindxml
+
@GNOME_CODE_COVERAGE_RULES@
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 899242a..a7b0323 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -153,4 +153,12 @@ check.nemiver:
EXEC_NAME="nemiver" $(MAKE) check
check.valgrind:
- EXEC_NAME="valgrind --leak-check=full --show-possibly-lost=no --suppressions=python.supp"
G_DEBUG=gc-friendly $(MAKE) check
+ EXEC_NAME="G_SLICE=always-malloc valgrind --leak-check=full --show-possibly-lost=no
--suppressions=python.supp" G_DEBUG=gc-friendly $(MAKE) check
+
+check.valgrindlog:
+ mkdir -p $(top_builddir)/tmp
+ EXEC_NAME="G_SLICE=always-malloc valgrind --log-file=$(top_builddir)/tmp/`git rev-parse HEAD | cut
-c1-8`-$$TEST_NAMES.log --leak-check=full --show-possibly-lost=no --suppressions=python.supp"
G_DEBUG=gc-friendly $(MAKE) check
+
+check.valgrindxml:
+ mkdir -p $(top_builddir)/tmp
+ EXEC_NAME="G_SLICE=always-malloc valgrind --xml=yes --xml-file=$(top_builddir)/tmp/`git rev-parse
HEAD | cut -c1-8`-$$TEST_NAMES.xml --leak-check=full --show-possibly-lost=no --suppressions=python.supp"
G_DEBUG=gc-friendly $(MAKE) check
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]