]> git.ipfire.org Git - thirdparty/bind9.git/commit
Simplify start/stop helper func in system tests
authorTom Krizek <tkrizek@isc.org>
Thu, 24 Nov 2022 16:42:43 +0000 (17:42 +0100)
committerTom Krizek <tkrizek@isc.org>
Fri, 25 Nov 2022 08:27:33 +0000 (09:27 +0100)
commitc100308b7d30bbde67f2b7b357e8b09d4f23dccc
tree3dfb03c8211e67bcfe85bed63867ad21aa9c9ba4
parent6678f672abebf53bf523e3e8e657c7540d9e0379
Simplify start/stop helper func in system tests

The system test should never attempt to start or stop any other server
than those that belong to that system test. Therefore, it is not
necessary to specify the system test name in function calls.

Additionally, this makes it possible to run the test inside a
differently named directory, as its name is automatically detected with
the $SYSTESTDIR variable. This enables running the system tests inside a
temporary directory.

Direct use of stop.pl was replaced with a more systematic approach to
use stop_servers helper function.
23 files changed:
bin/tests/system/addzone/tests.sh
bin/tests/system/conf.sh.common
bin/tests/system/dnssec/tests.sh
bin/tests/system/dnstap/tests.sh
bin/tests/system/forward/tests.sh
bin/tests/system/inline/tests.sh
bin/tests/system/kasp/tests.sh
bin/tests/system/legacy/tests.sh
bin/tests/system/logfileconfig/tests.sh
bin/tests/system/masterformat/tests.sh
bin/tests/system/mirror/tests.sh
bin/tests/system/mkeys/tests.sh
bin/tests/system/notify/tests.sh
bin/tests/system/nsec3/tests.sh
bin/tests/system/nsupdate/tests.sh
bin/tests/system/nzd2nzf/tests.sh
bin/tests/system/rpz/tests.sh
bin/tests/system/rpzrecurse/tests.sh
bin/tests/system/rrsetorder/tests.sh
bin/tests/system/serve-stale/tests.sh
bin/tests/system/stub/tests.sh
bin/tests/system/unknown/tests.sh
bin/tests/system/xfer/tests.sh