[v9_10] Add facility to run system test nameds under Valgrind (#38546)

This commit is contained in:
Evan Hunt
2015-02-25 16:21:49 -08:00
parent 9a8e6aaeec
commit 8dfc6c27f1
8 changed files with 59 additions and 20 deletions

View File

@@ -151,7 +151,11 @@ sub start_server {
if ($server =~ /^ns/) {
$cleanup_files = "{*.jnl,*.bk,*.st,named.run}";
$command = "$NAMED ";
if ($ENV{'USE_VALGRIND'}) {
$command = "valgrind -q --gen-suppressions=all --track-origins=yes --num-callers=48 --leak-check=full --fullpath-after= --log-file=named-$server-valgrind-%p.log $NAMED -m none -M external ";
} else {
$command = "$NAMED ";
}
if ($options) {
$command .= "$options";
} elsif (-e $args_file) {
@@ -196,7 +200,11 @@ sub start_server {
$pid_file = "named.pid";
} elsif ($server =~ /^lwresd/) {
$cleanup_files = "{lwresd.run}";
$command = "$LWRESD ";
if ($ENV{'USE_VALGRIND'}) {
$command = "valgrind -q --gen-suppressions=all --track-origins=yes --num-callers=48 --leak-check=full --fullpath-after= --log-file=lwresd-valgrind-%p.log $LWRESD -m none -M external ";
} else {
$command = "$LWRESD ";
}
if ($options) {
$command .= "$options";
} else {