Remove support for running system tests under Valgrind

Valgrind support has been scarcely used.

(cherry picked from commit 658d62a6f4)
This commit is contained in:
Ondřej Surý 2022-03-09 11:28:06 +01:00 committed by Michal Nowak
parent 7e5035be3c
commit b83b9dc2c6
No known key found for this signature in database
3 changed files with 4 additions and 25 deletions

View file

@ -710,14 +710,6 @@ or SEQUENTIAL variables.
need to edit multiple files to add a test.)
Valgrind
---
When running system tests, named can be run under Valgrind. The output from
Valgrind are sent to per-process files that can be reviewed after the test has
completed. To enable this, set the USE_VALGRIND environment variable to
"helgrind" to run the Helgrind tool, or any other value to run the Memcheck
tool. To use "helgrind" effectively, build BIND with --disable-atomic.
Developer Notes for pytest runner
===

View file

@ -20,8 +20,7 @@
find . -type f \( \
-name '*~' -o -name 'core' -o -name '*.core' \
-o -name '*.log' -o -name '*.pid' -o -name '*.keyset' \
-o -name named.run -o -name ans.run \
-o -name '*-valgrind-*.log' \) -print | xargs rm -f
-o -name named.run -o -name ans.run \) -print | xargs rm -f
status=0

View file

@ -230,22 +230,10 @@ sub construct_ns_command {
my $command;
if ($ENV{'USE_VALGRIND'}) {
$command = "valgrind -q --gen-suppressions=all --num-callers=48 --fullpath-after= --log-file=named-$server-valgrind-%p.log ";
if ($ENV{'USE_VALGRIND'} eq 'helgrind') {
$command .= "--tool=helgrind ";
} else {
$command .= "--tool=memcheck --track-origins=yes --leak-check=full ";
}
$command .= "$NAMED -m none ";
if ($taskset) {
$command = "taskset $taskset $NAMED ";
} else {
if ($taskset) {
$command = "taskset $taskset $NAMED ";
} else {
$command = "$NAMED ";
}
$command = "$NAMED ";
}
my $args_file = $testdir . "/" . $server . "/" . "named.args";