@@ -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
@@ -241,9 +241,9 @@ Re-Running the Tests
241241---
242242If there is a requirement to re-run a test (or the entire test suite), the
243243files produced by the tests should be deleted first. Normally, these files are
244- deleted if the test succeeds but are retained on error. The run.sh script
245- automatically calls a given test's clean.sh script before invoking its setup.sh
246- script.
244+ deleted if the test succeeds but are retained on error. The legacy. run.sh
245+ script automatically calls a given test's clean.sh script before invoking its
246+ setup.sh script.
247247
248248Deletion of the files produced by the set of tests (e.g. after the execution of
249249make) can be carried out using the command:
@@ -283,8 +283,8 @@ tests.sh Runs the actual tests. This file is mandatory.
283283
284284clean.sh Run at the end to clean up temporary files, but only if the test
285285 was completed successfully and its running was not inhibited by the
286- "-n" switch being passed to "run.sh". Otherwise the temporary
287- files are left in place for inspection.
286+ "-n" switch being passed to "legacy. run.sh". Otherwise the
287+ temporary files are left in place for inspection.
288288
289289ns<N> These subdirectories contain test name servers that can be queried
290290 or can interact with each other. The value of N indicates the
@@ -303,8 +303,8 @@ ans<N> Like ns[X], but these are simple mock name servers implemented in
303303Port Usage
304304---
305305In order for the tests to run in parallel, each test requires a unique set of
306- ports. These are specified by the "-p" option passed to "run.sh", which sets
307- environment variables that the scripts listed above can reference.
306+ ports. These are specified by the "-p" option passed to "legacy. run.sh", which
307+ sets environment variables that the scripts listed above can reference.
308308
309309The convention used in the system tests is that the number passed is the start
310310of a range of 100 ports. The test is free to use the ports as required,
@@ -356,10 +356,10 @@ General
356356directory.
357357
3583582. Arguments can be only passed to the script if the test is being run as a
359- one-off with "run.sh". In this case, everything on the command line after the
360- name of the test is passed to each script. For example, the command:
359+ one-off with "legacy. run.sh". In this case, everything on the command line
360+ after the name of the test is passed to each script. For example, the command:
361361
362- sh run.sh -p 12300 mytest -D xyz
362+ sh legacy. run.sh -p 12300 mytest -D xyz
363363
364364... will run "mytest" with a port range of 12300 to 12399. Each of the
365365framework scripts provided by the test will be invoked using the remaining
@@ -530,8 +530,8 @@ Ideally, the directory numbers should start at 1 and work upwards.
530530When running a test, the servers are started using "start.sh" (which is nothing
531531more than a wrapper for start.pl). The options for "start.pl" are documented
532532in the header for that file, so will not be repeated here. In summary, when
533- invoked by "run.sh", start.pl looks for directories named "nsN" or "ansN" in
534- the test directory and starts the servers it finds there.
533+ invoked by "legacy. run.sh", start.pl looks for directories named "nsN" or
534+ "ansN" in the test directory and starts the servers it finds there.
535535
536536
537537"named" Command-Line Options
@@ -628,8 +628,8 @@ the options available are listed in the file's header and will not be repeated
628628here.
629629
630630In summary though, the nameservers for a given test, if left running by
631- specifying the "-k" flag to "run.sh" when the test is started, can be stopped
632- by the command:
631+ specifying the "-k" flag to "legacy. run.sh" when the test is started, can be
632+ stopped by the command:
633633
634634 sh stop.sh <test-name> [server]
635635
@@ -738,9 +738,10 @@ This section is aimed at developers maintaining BIND's system test framework.
738738
739739Notes on Parallel Execution
740740---
741- Although execution of an individual test is controlled by "run.sh", which
742- executes the above shell scripts (and starts the relevant servers) for each
743- test, the running of all tests in the test suite is controlled by the Makefile.
741+ Although execution of an individual test is controlled by "legacy.run.sh",
742+ which executes the above shell scripts (and starts the relevant servers) for
743+ each test, the running of all tests in the test suite is controlled by the
744+ Makefile.
744745
745746All system tests are capable of being run in parallel. For this to work, each
746747test needs to use a unique set of ports. To avoid the need to define which
@@ -763,7 +764,7 @@ If the test fails, all these files are retained. But if the test succeeds,
763764they are cleaned up at different times:
764765
7657661. Files generated by the test itself are cleaned up by the test's own
766- "clean.sh", which is called from "run.sh".
767+ "clean.sh", which is called from "legacy. run.sh".
767768
7687692. Files that may not be cleaned up if named exits abnormally can be removed
769770using the "cleanall.sh" script.
0 commit comments