bind9/bin/tests/system/dlv
Michał Kępień 3b7bc3421c Simplify trailing period handling in system tests
Windows systems do not allow a trailing period in file names while Unix
systems do.  When BIND system tests are run, the $TP environment
variable is set to an empty string on Windows systems and to "." on Unix
systems.  This environment variable is then used by system test scripts
for handling this discrepancy properly.

In multiple system test scripts, a variable holding a zone name is set
to a string with a trailing period while the names of the zone's
corresponding dlvset-* and/or dsset-* files are determined using
numerous sed invocations like the following one:

    dlvsets="$dlvsets dlvset-`echo $zone |sed -e "s/.$//g"`$TP"

In order to improve code readability, use zone names without trailing
periods and replace sed invocations with variable substitutions.

To retain local consistency, also remove the trailing period from
certain other zone names used in system tests that are not subsequently
processed using sed.

(cherry picked from commit da2c1b74ad)
2019-04-26 20:38:29 +02:00
..
ns1 DLV tests unsupported/disabled algorithms 2019-04-17 10:35:19 +02:00
ns2 DLV tests unsupported/disabled algorithms 2019-04-17 10:35:19 +02:00
ns3 Simplify trailing period handling in system tests 2019-04-26 20:38:29 +02:00
ns4 Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
ns5 DLV tests unsupported/disabled algorithms 2019-04-17 10:35:19 +02:00
ns6 Convert the system tests that were using DSA to use a default algorithm defined in conf.sh 2018-10-05 11:16:13 +02:00
ns7 DLV tests unsupported/disabled algorithms 2019-04-17 10:35:19 +02:00
ns8 DLV tests unsupported/disabled algorithms 2019-04-17 10:35:19 +02:00
clean.sh DLV tests unsupported/disabled algorithms 2019-04-17 10:35:19 +02:00
setup.sh DLV tests unsupported/disabled algorithms 2019-04-17 10:35:19 +02:00
tests.sh DLV tests unsupported/disabled algorithms 2019-04-17 10:35:19 +02:00