]> 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 12:14:45 +0000 (13:14 +0100)
commit172826bfa8bbd28f1ebf9508110f375d5d990678
tree695b9a07b71c8ac475b09f354ff189b5d8b57846
parent7554a7ab294aea9974031fe1148c183b316527d4
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.

(cherry picked from commit c100308b7d30bbde67f2b7b357e8b09d4f23dccc)
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