BIND 10 trac614, updated. f79cea1f5a7ce45498a7a94cb5ed9aae6dfe1a7f [trac614] Some documentation for the scripts
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Feb 25 18:35:04 UTC 2011
The branch, trac614 has been updated
via f79cea1f5a7ce45498a7a94cb5ed9aae6dfe1a7f (commit)
from 6458b98ea487620fd4c47b0de5b5bc2e5fe97794 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f79cea1f5a7ce45498a7a94cb5ed9aae6dfe1a7f
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Fri Feb 25 19:34:17 2011 +0100
[trac614] Some documentation for the scripts
Only in comments at the beginning of them, but it should be enough.
-----------------------------------------------------------------------
Summary of changes:
tools/tests_in_valgrind.sh | 18 +++++++++++++++++-
tools/valgrind_test_cleaner.pl | 12 ++++++++++++
2 files changed, 29 insertions(+), 1 deletions(-)
-----------------------------------------------------------------------
diff --git a/tools/tests_in_valgrind.sh b/tools/tests_in_valgrind.sh
index bf489b4..cee177f 100755
--- a/tools/tests_in_valgrind.sh
+++ b/tools/tests_in_valgrind.sh
@@ -1,7 +1,23 @@
#!/bin/bash
-
# Yes, really bash, there are some bashisms
+###########################################
+# This script runs all tests in valgrind. Configure and compile bind the way
+# you want it to be tested (you should use --with-gtest, however, or you get
+# no tests). Then run this script from the top build directory.
+#
+# Note that the test isn't what you would call "production quality" (it is
+# expected to be used by the bind10 developers, not end user) and might break,
+# some ways of breaking it are known.
+#
+# There are two variables that modify it's behaviour.
+# * VALGRIND_FLAGS are the flag passed to valgrind. There are some, hopefully
+# reasonable defaults which you can overwrite. Note that the variable is
+# used unmodified inside a sed pattern with # as a modifier, which can
+# easily break it. There was no motivation to fix this.
+# * VALGRIND_FILE is the file to store the output into. Default is valgrind.log
+###########################################
+
# First, make sure the tests are up to date
make
diff --git a/tools/valgrind_test_cleaner.pl b/tools/valgrind_test_cleaner.pl
index 7f8f432..5ebf297 100755
--- a/tools/valgrind_test_cleaner.pl
+++ b/tools/valgrind_test_cleaner.pl
@@ -2,6 +2,18 @@
use strict;
use warnings;
+# This script can be used on a valgrind output of the tests (from
+# tests_in_valgrind.sh) to remove some uninteresting error reports.
+# Since we care about the tested application not leaking/crashing, not
+# the tests itself, memory leaks that are caused only by the tests
+# (eg. unreleased test data), we don't want to have logs full of them.
+#
+# This script does some heuristics to eliminate some of such error
+# reports. Currently, the memory lost reports whose stack contains
+# no call from the real application are suppressed.
+#
+# Of course, the rest still can contain many uninteresting entries.
+
my ($block, $blockOK);
sub endBlock(_) {
More information about the bind10-changes
mailing list