@@ -119,11 +119,11 @@ Running an Individual Test
119119---
120120The tests can be run individually using the following command:
121121
122- sh run.sh [flags] <test-name> [<test-arguments>]
122+ sh legacy. run.sh [flags] <test-name> [<test-arguments>]
123123
124124e.g.
125125
126- sh run.sh [flags] notify
126+ sh legacy. run.sh [flags] notify
127127
128128Optional flags are:
129129
@@ -165,10 +165,10 @@ To run all the system tests, enter the command:
165165 sh runall.sh [-c] [-n] [numproc]
166166
167167The optional flag "-c" forces colored output (by default system test output is
168- not printed in color due to run.sh being piped through "tee").
168+ not printed in color due to legacy. run.sh being piped through "tee").
169169
170- The optional flag "-n" has the same effect as it does for "run.sh" - it causes
171- the retention of all output files from all tests.
170+ The optional flag "-n" has the same effect as it does for "legacy. run.sh" - it
171+ causes the retention of all output files from all tests.
172172
173173The optional "numproc" argument specifies the maximum number of tests that can
174174run in parallel. The default is 1, which means that all of the tests run
@@ -288,9 +288,9 @@ Re-Running the Tests
288288---
289289If there is a requirement to re-run a test (or the entire test suite), the
290290files produced by the tests should be deleted first. Normally, these files are
291- deleted if the test succeeds but are retained on error. The run.sh script
292- automatically calls a given test's clean.sh script before invoking its setup.sh
293- script.
291+ deleted if the test succeeds but are retained on error. The legacy. run.sh
292+ script automatically calls a given test's clean.sh script before invoking its
293+ setup.sh script.
294294
295295Deletion of the files produced by the set of tests (e.g. after the execution
296296of "runall.sh") can be carried out using the command:
@@ -330,8 +330,8 @@ tests.sh Runs the actual tests. This file is mandatory.
330330
331331clean.sh Run at the end to clean up temporary files, but only if the test
332332 was completed successfully and its running was not inhibited by the
333- "-n" switch being passed to "run.sh". Otherwise the temporary
334- files are left in place for inspection.
333+ "-n" switch being passed to "legacy. run.sh". Otherwise the
334+ temporary files are left in place for inspection.
335335
336336ns<N> These subdirectories contain test name servers that can be queried
337337 or can interact with each other. The value of N indicates the
@@ -350,8 +350,8 @@ ans<N> Like ns[X], but these are simple mock name servers implemented in
350350Port Usage
351351---
352352In order for the tests to run in parallel, each test requires a unique set of
353- ports. These are specified by the "-p" option passed to "run.sh", which sets
354- environment variables that the scripts listed above can reference.
353+ ports. These are specified by the "-p" option passed to "legacy. run.sh", which
354+ sets environment variables that the scripts listed above can reference.
355355
356356The convention used in the system tests is that the number passed is the start
357357of a range of 100 ports. The test is free to use the ports as required,
@@ -403,10 +403,10 @@ General
403403directory.
404404
4054052. Arguments can be only passed to the script if the test is being run as a
406- one-off with "run.sh". In this case, everything on the command line after the
407- name of the test is passed to each script. For example, the command:
406+ one-off with "legacy. run.sh". In this case, everything on the command line
407+ after the name of the test is passed to each script. For example, the command:
408408
409- sh run.sh -p 12300 mytest -D xyz
409+ sh legacy. run.sh -p 12300 mytest -D xyz
410410
411411... will run "mytest" with a port range of 12300 to 12399. Each of the
412412framework scripts provided by the test will be invoked using the remaining
@@ -577,8 +577,8 @@ Ideally, the directory numbers should start at 1 and work upwards.
577577When running a test, the servers are started using "start.sh" (which is nothing
578578more than a wrapper for start.pl). The options for "start.pl" are documented
579579in the header for that file, so will not be repeated here. In summary, when
580- invoked by "run.sh", start.pl looks for directories named "nsN" or "ansN" in
581- the test directory and starts the servers it finds there.
580+ invoked by "legacy. run.sh", start.pl looks for directories named "nsN" or
581+ "ansN" in the test directory and starts the servers it finds there.
582582
583583
584584"named" Command-Line Options
@@ -675,8 +675,8 @@ the options available are listed in the file's header and will not be repeated
675675here.
676676
677677In summary though, the nameservers for a given test, if left running by
678- specifying the "-k" flag to "run.sh" when the test is started, can be stopped
679- by the command:
678+ specifying the "-k" flag to "legacy. run.sh" when the test is started, can be
679+ stopped by the command:
680680
681681 sh stop.sh <test-name> [server]
682682
@@ -788,10 +788,10 @@ This section is aimed at developers maintaining BIND's system test framework.
788788
789789Notes on Parallel Execution
790790---
791- Although execution of an individual test is controlled by "run.sh", which
792- executes the above shell scripts (and starts the relevant servers) for each
793- test, the running of all tests in the test suite is controlled by the Makefile.
794- ("runall.sh" does little more than invoke "make" on the Makefile.)
791+ Although execution of an individual test is controlled by "legacy. run.sh",
792+ which executes the above shell scripts (and starts the relevant servers) for
793+ each test, the running of all tests in the test suite is controlled by the
794+ Makefile. ("runall.sh" does little more than invoke "make" on the Makefile.)
795795
796796All system tests are capable of being run in parallel. For this to work, each
797797test needs to use a unique set of ports. To avoid the need to define which
@@ -801,7 +801,7 @@ the ports are assigned when the tests are run. This is achieved by having the
801801when "make check" is run, and contains a target for each test of the form:
802802
803803 <test-name>:
804- @$(SHELL) run.sh -p <baseport> <test-name>
804+ @$(SHELL) legacy. run.sh -p <baseport> <test-name>
805805
806806The <baseport> is unique and the values of <baseport> for each test are
807807separated by at least 100 ports.
@@ -825,7 +825,7 @@ If the test fails, all these files are retained. But if the test succeeds,
825825they are cleaned up at different times:
826826
8278271. Files generated by the test itself are cleaned up by the test's own
828- "clean.sh", which is called from "run.sh".
828+ "clean.sh", which is called from "legacy. run.sh".
829829
8308302. Files that may not be cleaned up if named exits abnormally can be removed
831831using the "cleanall.sh" script.
0 commit comments