From: Michal Nowak Date: Wed, 8 Nov 2023 18:21:30 +0000 (+0100) Subject: Add support for recording named runtime with rr X-Git-Tag: v9.19.19~17^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e088e8a992008ba5e0dc1c540f808a03e69cd619;p=thirdparty%2Fbind9.git Add support for recording named runtime with rr The traces of the named process are stored in the directory $system_test/nsX/named-Y/. --- diff --git a/bin/tests/system/README.md b/bin/tests/system/README.md index 1d4d4f7b667..b4e6f4ed55f 100644 --- a/bin/tests/system/README.md +++ b/bin/tests/system/README.md @@ -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 diff --git a/bin/tests/system/start.pl b/bin/tests/system/start.pl index 38ceb6e6b39..32d20741688 100755 --- a/bin/tests/system/start.pl +++ b/bin/tests/system/start.pl @@ -232,6 +232,9 @@ sub construct_ns_command { if ($taskset) { $command = "taskset $taskset $NAMED "; + } elsif ($ENV{'USE_RR'}) { + $ENV{'_RR_TRACE_DIR'} = "."; + $command = "rr record --chaos $NAMED "; } else { $command = "$NAMED "; }