mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Merge branch '3198-add-rr-record' into 'main'
Add support for recording named with rr Closes #3198 See merge request isc-projects/bind9!8479
This commit is contained in:
@@ -114,6 +114,13 @@ Alternately, using the make command is also supported:
|
||||
|
||||
make [-j numproc] test
|
||||
|
||||
### rr
|
||||
|
||||
When running system tests, named can be run under the rr tool. rr records a
|
||||
trace to the $system_test/nsX/named-Y/ directory, which can be later used to
|
||||
replay named. To enable this, execute start.pl with the USE_RR environment
|
||||
variable set.
|
||||
|
||||
### Test Artifacts
|
||||
|
||||
Each test module is executed inside a unique temporary directory which contains
|
||||
|
@@ -1 +1 @@
|
||||
-c named.conf -m record -T nosyslog -d 99 -D logfileconfig-ns1
|
||||
-c named.conf -m record -T nosyslog -f -d 99 -D logfileconfig-ns1
|
||||
|
@@ -1 +1 @@
|
||||
-c named.conf -m record -T nosyslog -d 99 -D logfileconfig-ns1 -L named_deflog
|
||||
-c named.conf -m record -T nosyslog -f -d 99 -D logfileconfig-ns1 -L named_deflog
|
||||
|
@@ -1 +1 @@
|
||||
-m record -c named.conf -d 99 -D rpzextra-ns1 -T maxcachesize=2097152
|
||||
-m record -c named.conf -d 99 -f -D rpzextra-ns3 -T maxcachesize=2097152
|
||||
|
@@ -230,22 +230,13 @@ 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 ";
|
||||
} elsif ($ENV{'USE_RR'}) {
|
||||
$ENV{'_RR_TRACE_DIR'} = ".";
|
||||
$command = "rr record --chaos $NAMED ";
|
||||
} else {
|
||||
if ($taskset) {
|
||||
$command = "taskset $taskset $NAMED ";
|
||||
} else {
|
||||
$command = "$NAMED ";
|
||||
}
|
||||
$command = "$NAMED ";
|
||||
}
|
||||
|
||||
my $args_file = $testdir . "/" . $server . "/" . "named.args";
|
||||
|
Reference in New Issue
Block a user