@@ -119,11 +119,11 @@ Running an Individual Test
119
119
---
120
120
The tests can be run individually using the following command:
121
121
122
- sh run.sh [flags] <test-name> [<test-arguments>]
122
+ sh legacy. run.sh [flags] <test-name> [<test-arguments>]
123
123
124
124
e.g.
125
125
126
- sh run.sh [flags] notify
126
+ sh legacy. run.sh [flags] notify
127
127
128
128
Optional flags are:
129
129
@@ -165,10 +165,10 @@ To run all the system tests, enter the command:
165
165
sh runall.sh [-c] [-n] [numproc]
166
166
167
167
The 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").
169
169
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.
172
172
173
173
The optional "numproc" argument specifies the maximum number of tests that can
174
174
run in parallel. The default is 1, which means that all of the tests run
@@ -288,9 +288,9 @@ Re-Running the Tests
288
288
---
289
289
If there is a requirement to re-run a test (or the entire test suite), the
290
290
files 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.
294
294
295
295
Deletion of the files produced by the set of tests (e.g. after the execution
296
296
of "runall.sh") can be carried out using the command:
@@ -330,8 +330,8 @@ tests.sh Runs the actual tests. This file is mandatory.
330
330
331
331
clean.sh Run at the end to clean up temporary files, but only if the test
332
332
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.
335
335
336
336
ns<N> These subdirectories contain test name servers that can be queried
337
337
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
350
350
Port Usage
351
351
---
352
352
In 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.
355
355
356
356
The convention used in the system tests is that the number passed is the start
357
357
of a range of 100 ports. The test is free to use the ports as required,
@@ -403,10 +403,10 @@ General
403
403
directory.
404
404
405
405
2. 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:
408
408
409
- sh run.sh -p 12300 mytest -D xyz
409
+ sh legacy. run.sh -p 12300 mytest -D xyz
410
410
411
411
... will run "mytest" with a port range of 12300 to 12399. Each of the
412
412
framework 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.
577
577
When running a test, the servers are started using "start.sh" (which is nothing
578
578
more than a wrapper for start.pl). The options for "start.pl" are documented
579
579
in 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.
582
582
583
583
584
584
"named" Command-Line Options
@@ -675,8 +675,8 @@ the options available are listed in the file's header and will not be repeated
675
675
here.
676
676
677
677
In 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:
680
680
681
681
sh stop.sh <test-name> [server]
682
682
@@ -788,10 +788,10 @@ This section is aimed at developers maintaining BIND's system test framework.
788
788
789
789
Notes on Parallel Execution
790
790
---
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.)
795
795
796
796
All system tests are capable of being run in parallel. For this to work, each
797
797
test 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
801
801
when "make check" is run, and contains a target for each test of the form:
802
802
803
803
<test-name>:
804
- @$(SHELL) run.sh -p <baseport> <test-name>
804
+ @$(SHELL) legacy. run.sh -p <baseport> <test-name>
805
805
806
806
The <baseport> is unique and the values of <baseport> for each test are
807
807
separated by at least 100 ports.
@@ -825,7 +825,7 @@ If the test fails, all these files are retained. But if the test succeeds,
825
825
they are cleaned up at different times:
826
826
827
827
1. 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".
829
829
830
830
2. Files that may not be cleaned up if named exits abnormally can be removed
831
831
using the "cleanall.sh" script.
0 commit comments