bind9/bin/tests/system/dsdigest
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 Replace duplicated code snippet with calls to helper functions 2018-06-13 07:57:40 +02:00
ns2 Simplify trailing period handling in system tests 2019-04-26 20:38:29 +02:00
ns3 Remove support for obsoleted ECC-GOST (GOST R 34.11-94) algorithm 2018-06-05 09:14:14 +02:00
ns4 Remove support for obsoleted ECC-GOST (GOST R 34.11-94) algorithm 2018-06-05 09:14:14 +02:00
clean.sh update system tests so validation won't fail when using IANA key 2018-05-31 18:22:33 +02:00
setup.sh Call clean.sh from all relevant setup.sh scripts 2019-02-28 12:39:06 +01:00
tests.sh Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00