From b83b9dc2c6b6dd62b79a3ebf9ff10c902b3d545d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Wed, 9 Mar 2022 11:28:06 +0100 Subject: [PATCH] Remove support for running system tests under Valgrind Valgrind support has been scarcely used. (cherry picked from commit 658d62a6f49b0322c02f162d55468a5e7af0869f) --- bin/tests/system/README | 8 -------- bin/tests/system/cleanall.sh | 3 +-- bin/tests/system/start.pl | 18 +++--------------- 3 files changed, 4 insertions(+), 25 deletions(-) diff --git a/bin/tests/system/README b/bin/tests/system/README index 00146be307..58e6048ae0 100644 --- a/bin/tests/system/README +++ b/bin/tests/system/README @@ -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 === diff --git a/bin/tests/system/cleanall.sh b/bin/tests/system/cleanall.sh index 21d1c040b9..a7e48ad7bd 100644 --- a/bin/tests/system/cleanall.sh +++ b/bin/tests/system/cleanall.sh @@ -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 diff --git a/bin/tests/system/start.pl b/bin/tests/system/start.pl index 2a2d7809f7..c0163a2a23 100755 --- a/bin/tests/system/start.pl +++ b/bin/tests/system/start.pl @@ -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";