@@ -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
@@ -241,9 +241,9 @@ Re-Running the Tests
241
241
---
242
242
If there is a requirement to re-run a test (or the entire test suite), the
243
243
files 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.
247
247
248
248
Deletion of the files produced by the set of tests (e.g. after the execution of
249
249
make) can be carried out using the command:
@@ -283,8 +283,8 @@ tests.sh Runs the actual tests. This file is mandatory.
283
283
284
284
clean.sh Run at the end to clean up temporary files, but only if the test
285
285
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.
288
288
289
289
ns<N> These subdirectories contain test name servers that can be queried
290
290
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
303
303
Port Usage
304
304
---
305
305
In 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.
308
308
309
309
The convention used in the system tests is that the number passed is the start
310
310
of a range of 100 ports. The test is free to use the ports as required,
@@ -356,10 +356,10 @@ General
356
356
directory.
357
357
358
358
2. 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:
361
361
362
- sh run.sh -p 12300 mytest -D xyz
362
+ sh legacy. run.sh -p 12300 mytest -D xyz
363
363
364
364
... will run "mytest" with a port range of 12300 to 12399. Each of the
365
365
framework 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.
530
530
When running a test, the servers are started using "start.sh" (which is nothing
531
531
more than a wrapper for start.pl). The options for "start.pl" are documented
532
532
in 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.
535
535
536
536
537
537
"named" Command-Line Options
@@ -628,8 +628,8 @@ the options available are listed in the file's header and will not be repeated
628
628
here.
629
629
630
630
In 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:
633
633
634
634
sh stop.sh <test-name> [server]
635
635
@@ -738,9 +738,10 @@ This section is aimed at developers maintaining BIND's system test framework.
738
738
739
739
Notes on Parallel Execution
740
740
---
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.
744
745
745
746
All system tests are capable of being run in parallel. For this to work, each
746
747
test 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,
763
764
they are cleaned up at different times:
764
765
765
766
1. 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".
767
768
768
769
2. Files that may not be cleaned up if named exits abnormally can be removed
769
770
using the "cleanall.sh" script.
0 commit comments