From 093af1c00ac25e4f132fe2442a24e1264aadb28d Mon Sep 17 00:00:00 2001 From: Michal Nowak Date: Tue, 21 Jul 2020 12:12:59 +0200 Subject: [PATCH] Drop $SYSTEMTESTTOP from bin/tests/system/ The $SYSTEMTESTTOP shell variable if often set to .. in various shell scripts inside bin/tests/system/, but most of the time it is only used one line later, while sourcing conf.sh. This hardly improves code readability. $SYSTEMTESTTOP is also used for the purpose of referencing scripts/files living in bin/tests/system/, but given that the variable is always set to a short, relative path, we can drop it and replace all of its occurrences with the relative path without adversely affecting code readability. --- bin/tests/system/README | 2 +- bin/tests/system/acl/setup.sh | 2 +- bin/tests/system/acl/tests.sh | 4 ++-- bin/tests/system/additional/setup.sh | 2 +- bin/tests/system/additional/tests.sh | 4 ++-- bin/tests/system/addzone/setup.sh | 2 +- bin/tests/system/addzone/tests.sh | 4 ++-- bin/tests/system/allow-query/setup.sh | 2 +- bin/tests/system/allow-query/tests.sh | 2 +- bin/tests/system/auth/setup.sh | 2 +- bin/tests/system/auth/tests.sh | 2 +- bin/tests/system/autosign/ns1/keygen.sh | 2 +- bin/tests/system/autosign/ns2/keygen.sh | 2 +- bin/tests/system/autosign/ns3/keygen.sh | 2 +- bin/tests/system/autosign/setup.sh | 2 +- bin/tests/system/autosign/tests.sh | 4 ++-- bin/tests/system/builtin/setup.sh | 2 +- bin/tests/system/builtin/tests.sh | 4 ++-- bin/tests/system/cacheclean/setup.sh | 2 +- bin/tests/system/cacheclean/tests.sh | 2 +- bin/tests/system/case/setup.sh | 2 +- bin/tests/system/case/tests.sh | 2 +- bin/tests/system/catz/setup.sh | 2 +- bin/tests/system/catz/tests.sh | 4 ++-- bin/tests/system/cds/setup.sh | 2 +- bin/tests/system/cds/tests.sh | 2 +- bin/tests/system/chain/ns2/sign.sh | 2 +- bin/tests/system/chain/setup.sh | 2 +- bin/tests/system/chain/tests.sh | 4 ++-- bin/tests/system/checkconf/tests.sh | 2 +- bin/tests/system/checknames/setup.sh | 2 +- bin/tests/system/checknames/tests.sh | 2 +- bin/tests/system/checkzone/setup.sh | 2 +- bin/tests/system/checkzone/tests.sh | 2 +- bin/tests/system/cleanall.sh | 5 ++--- bin/tests/system/cleanpkcs11.sh | 2 +- bin/tests/system/cookie/setup.sh | 2 +- bin/tests/system/cookie/tests.sh | 4 ++-- bin/tests/system/database/setup.sh | 2 +- bin/tests/system/database/tests.sh | 2 +- bin/tests/system/delzone/setup.sh | 2 +- bin/tests/system/delzone/tests.sh | 2 +- bin/tests/system/dialup/tests.sh | 2 +- bin/tests/system/digdelv/ns2/sign.sh | 2 +- bin/tests/system/digdelv/setup.sh | 2 +- bin/tests/system/digdelv/tests.sh | 2 +- bin/tests/system/dlz/prereq.sh | 2 +- bin/tests/system/dlz/setup.sh | 2 +- bin/tests/system/dlz/tests.sh | 2 +- bin/tests/system/dlzexternal/setup.sh | 2 +- bin/tests/system/dlzexternal/tests.sh | 4 ++-- bin/tests/system/dns64/ns1/sign.sh | 2 +- bin/tests/system/dns64/setup.sh | 2 +- bin/tests/system/dns64/tests.sh | 2 +- bin/tests/system/dnssec/ns1/sign.sh | 2 +- bin/tests/system/dnssec/ns2/sign.sh | 2 +- bin/tests/system/dnssec/ns3/sign.sh | 2 +- bin/tests/system/dnssec/ns5/sign.sh | 2 +- bin/tests/system/dnssec/ns6/sign.sh | 2 +- bin/tests/system/dnssec/ns7/sign.sh | 2 +- bin/tests/system/dnssec/setup.sh | 2 +- bin/tests/system/dnssec/tests.sh | 6 +++--- bin/tests/system/dnstap/setup.sh | 2 +- bin/tests/system/dnstap/tests.sh | 2 +- bin/tests/system/dscp/setup.sh | 2 +- bin/tests/system/dscp/tests.sh | 2 +- bin/tests/system/dsdigest/ns1/sign.sh | 2 +- bin/tests/system/dsdigest/ns2/sign.sh | 2 +- bin/tests/system/dsdigest/setup.sh | 2 +- bin/tests/system/dsdigest/tests.sh | 2 +- bin/tests/system/dupsigs/ns1/reset_keys.sh | 2 +- bin/tests/system/dupsigs/setup.sh | 2 +- bin/tests/system/dupsigs/tests.sh | 2 +- bin/tests/system/dyndb/setup.sh | 2 +- bin/tests/system/dyndb/tests.sh | 4 ++-- bin/tests/system/ecdsa/ns1/sign.sh | 2 +- bin/tests/system/ecdsa/setup.sh | 2 +- bin/tests/system/ecdsa/tests.sh | 2 +- bin/tests/system/eddsa/ns1/sign.sh | 2 +- bin/tests/system/eddsa/ns2/sign.sh | 2 +- bin/tests/system/eddsa/prereq.sh | 2 +- bin/tests/system/eddsa/setup.sh | 2 +- bin/tests/system/eddsa/tests.sh | 2 +- bin/tests/system/ednscompliance/setup.sh | 2 +- bin/tests/system/ednscompliance/tests.sh | 2 +- bin/tests/system/emptyzones/setup.sh | 2 +- bin/tests/system/emptyzones/tests.sh | 4 ++-- bin/tests/system/fetchlimit/setup.sh | 2 +- bin/tests/system/fetchlimit/tests.sh | 2 +- bin/tests/system/filter-aaaa/ns1/sign.sh | 2 +- bin/tests/system/filter-aaaa/ns4/sign.sh | 2 +- bin/tests/system/filter-aaaa/setup.sh | 2 +- bin/tests/system/filter-aaaa/tests.sh | 4 ++-- bin/tests/system/formerr/setup.sh | 2 +- bin/tests/system/formerr/tests.sh | 2 +- bin/tests/system/forward/setup.sh | 2 +- bin/tests/system/forward/tests.sh | 2 +- bin/tests/system/geoip2/prereq.sh | 2 +- bin/tests/system/geoip2/setup.sh | 2 +- bin/tests/system/geoip2/tests.sh | 4 ++-- bin/tests/system/glue/setup.sh | 2 +- bin/tests/system/glue/tests.sh | 2 +- bin/tests/system/idna/setup.sh | 2 +- bin/tests/system/idna/tests.sh | 2 +- bin/tests/system/include-multiplecfg/setup.sh | 2 +- bin/tests/system/include-multiplecfg/tests.sh | 2 +- bin/tests/system/inline/ns1/sign.sh | 2 +- bin/tests/system/inline/ns3/sign.sh | 2 +- bin/tests/system/inline/ns7/sign.sh | 2 +- bin/tests/system/inline/ns8/sign.sh | 2 +- bin/tests/system/inline/setup.sh | 2 +- bin/tests/system/inline/tests.sh | 8 ++++---- bin/tests/system/integrity/setup.sh | 2 +- bin/tests/system/integrity/tests.sh | 2 +- bin/tests/system/ixfr/setup.sh | 2 +- bin/tests/system/ixfr/tests.sh | 2 +- bin/tests/system/kasp/ns2/setup.sh | 2 +- bin/tests/system/kasp/ns3/setup.sh | 2 +- bin/tests/system/kasp/ns4/setup.sh | 2 +- bin/tests/system/kasp/ns5/setup.sh | 2 +- bin/tests/system/kasp/ns6/setup.sh | 2 +- bin/tests/system/kasp/setup.sh | 2 +- bin/tests/system/kasp/tests.sh | 4 ++-- bin/tests/system/keepalive/setup.sh | 2 +- bin/tests/system/keepalive/tests.sh | 2 +- bin/tests/system/legacy/build.sh | 2 +- bin/tests/system/legacy/ns6/sign.sh | 2 +- bin/tests/system/legacy/ns7/sign.sh | 2 +- bin/tests/system/legacy/setup.sh | 2 +- bin/tests/system/legacy/tests.sh | 4 ++-- bin/tests/system/limits/setup.sh | 2 +- bin/tests/system/limits/tests.sh | 2 +- bin/tests/system/logfileconfig/setup.sh | 2 +- bin/tests/system/logfileconfig/tests.sh | 2 +- bin/tests/system/masterfile/setup.sh | 2 +- bin/tests/system/masterfile/tests.sh | 2 +- bin/tests/system/masterformat/ns1/compile.sh | 2 +- bin/tests/system/masterformat/setup.sh | 2 +- bin/tests/system/masterformat/tests.sh | 8 ++++---- bin/tests/system/metadata/setup.sh | 2 +- bin/tests/system/metadata/tests.sh | 2 +- bin/tests/system/mirror/ns1/sign.sh | 2 +- bin/tests/system/mirror/ns2/sign.sh | 2 +- bin/tests/system/mirror/setup.sh | 2 +- bin/tests/system/mirror/tests.sh | 4 ++-- bin/tests/system/mkeys/ns1/sign.sh | 2 +- bin/tests/system/mkeys/ns6/setup.sh | 2 +- bin/tests/system/mkeys/setup.sh | 4 +++- bin/tests/system/mkeys/tests.sh | 4 ++-- bin/tests/system/names/setup.sh | 2 +- bin/tests/system/names/tests.sh | 2 +- bin/tests/system/notify/setup.sh | 2 +- bin/tests/system/notify/tests.sh | 4 ++-- bin/tests/system/nslookup/setup.sh | 2 +- bin/tests/system/nslookup/tests.sh | 2 +- bin/tests/system/nsupdate/ns3/sign.sh | 2 +- bin/tests/system/nsupdate/setup.sh | 2 +- bin/tests/system/nsupdate/tests.sh | 6 +++--- bin/tests/system/nzd2nzf/setup.sh | 2 +- bin/tests/system/nzd2nzf/tests.sh | 6 +++--- bin/tests/system/padding/setup.sh | 2 +- bin/tests/system/padding/tests.sh | 4 ++-- bin/tests/system/pending/ns1/sign.sh | 2 +- bin/tests/system/pending/ns2/sign.sh | 2 +- bin/tests/system/pending/setup.sh | 2 +- bin/tests/system/pending/tests.sh | 2 +- bin/tests/system/pipelined/setup.sh | 2 +- bin/tests/system/pipelined/tests.sh | 4 ++-- bin/tests/system/pkcs11/setup.sh | 4 ++-- bin/tests/system/pkcs11/tests.sh | 2 +- bin/tests/system/qmin/setup.sh | 2 +- bin/tests/system/qmin/tests.sh | 4 ++-- bin/tests/system/reclimit/setup.sh | 2 +- bin/tests/system/reclimit/tests.sh | 2 +- bin/tests/system/redirect/ns1/sign.sh | 2 +- bin/tests/system/redirect/ns3/sign.sh | 2 +- bin/tests/system/redirect/ns5/sign.sh | 2 +- bin/tests/system/redirect/setup.sh | 2 +- bin/tests/system/redirect/tests.sh | 4 ++-- bin/tests/system/resolver/ns6/keygen.sh | 2 +- bin/tests/system/resolver/setup.sh | 2 +- bin/tests/system/resolver/tests.sh | 4 ++-- bin/tests/system/rndc/setup.sh | 2 +- bin/tests/system/rndc/tests.sh | 2 +- bin/tests/system/rootkeysentinel/ns1/sign.sh | 2 +- bin/tests/system/rootkeysentinel/ns2/sign.sh | 2 +- bin/tests/system/rootkeysentinel/setup.sh | 2 +- bin/tests/system/rootkeysentinel/tests.sh | 2 +- bin/tests/system/rpz/ckdnsrps.sh | 2 +- bin/tests/system/rpz/setup.sh | 2 +- bin/tests/system/rpz/tests.sh | 14 +++++++------- bin/tests/system/rpzextra/setup.sh | 3 +-- bin/tests/system/rpzrecurse/setup.sh | 2 +- bin/tests/system/rpzrecurse/tests.sh | 8 ++++---- bin/tests/system/rrchecker/tests.sh | 2 +- bin/tests/system/rrl/setup.sh | 2 +- bin/tests/system/rrl/tests.sh | 4 ++-- bin/tests/system/rrsetorder/setup.sh | 2 +- bin/tests/system/rrsetorder/tests.sh | 2 +- bin/tests/system/rsabigexponent/ns1/sign.sh | 2 +- bin/tests/system/rsabigexponent/ns2/sign.sh | 2 +- bin/tests/system/rsabigexponent/setup.sh | 2 +- bin/tests/system/rsabigexponent/tests.sh | 2 +- bin/tests/system/run.sh.in | 12 ++++++------ bin/tests/system/runall.sh | 3 +-- bin/tests/system/runsequential.sh | 3 +-- bin/tests/system/runtime/setup.sh | 2 +- bin/tests/system/runtime/tests.sh | 4 ++-- bin/tests/system/serve-stale/setup.sh | 2 +- bin/tests/system/serve-stale/tests.sh | 6 +++--- bin/tests/system/setup.sh | 3 +-- bin/tests/system/sfcache/ns1/sign.sh | 2 +- bin/tests/system/sfcache/ns2/sign.sh | 2 +- bin/tests/system/sfcache/ns5/sign.sh | 2 +- bin/tests/system/sfcache/setup.sh | 2 +- bin/tests/system/sfcache/tests.sh | 4 ++-- bin/tests/system/shutdown/setup.sh | 3 +-- bin/tests/system/shutdown/tests-shutdown.py | 7 ++----- bin/tests/system/smartsign/tests.sh | 2 +- bin/tests/system/sortlist/setup.sh | 2 +- bin/tests/system/sortlist/tests.sh | 2 +- bin/tests/system/spf/setup.sh | 2 +- bin/tests/system/spf/tests.sh | 2 +- bin/tests/system/staticstub/ns3/sign.sh | 2 +- bin/tests/system/staticstub/ns4/sign.sh | 2 +- bin/tests/system/staticstub/setup.sh | 2 +- bin/tests/system/staticstub/tests.sh | 4 ++-- bin/tests/system/statistics/setup.sh | 2 +- bin/tests/system/statistics/tests.sh | 2 +- bin/tests/system/statschannel/ns2/sign.sh | 2 +- bin/tests/system/statschannel/setup.sh | 2 +- bin/tests/system/statschannel/tests.sh | 4 ++-- bin/tests/system/stopall.sh | 3 +-- bin/tests/system/stress/setup.sh | 2 +- bin/tests/system/stress/tests.sh | 2 +- bin/tests/system/stub/setup.sh | 2 +- bin/tests/system/stub/tests.sh | 4 ++-- bin/tests/system/synthfromdnssec/ns1/sign.sh | 2 +- bin/tests/system/synthfromdnssec/setup.sh | 2 +- bin/tests/system/synthfromdnssec/tests.sh | 2 +- bin/tests/system/tcp/setup.sh | 2 +- bin/tests/system/tcp/tests.sh | 2 +- bin/tests/system/testcrypto.sh | 3 +-- bin/tests/system/testsummary.sh | 3 +-- bin/tests/system/tkey/ns1/setup.sh | 2 +- bin/tests/system/tkey/setup.sh | 2 +- bin/tests/system/tkey/tests.sh | 2 +- bin/tests/system/tools/setup.sh | 2 +- bin/tests/system/tools/tests.sh | 2 +- bin/tests/system/tsig/setup.sh | 2 +- bin/tests/system/tsig/tests.sh | 2 +- bin/tests/system/tsiggss/prereq.sh | 2 +- bin/tests/system/tsiggss/setup.sh | 2 +- bin/tests/system/tsiggss/tests.sh | 2 +- bin/tests/system/ttl/setup.sh | 2 +- bin/tests/system/ttl/tests.sh | 2 +- bin/tests/system/unknown/ns3/sign.sh | 2 +- bin/tests/system/unknown/setup.sh | 2 +- bin/tests/system/unknown/tests.sh | 6 +++--- bin/tests/system/upforwd/setup.sh | 2 +- bin/tests/system/upforwd/tests.sh | 2 +- bin/tests/system/verify/setup.sh | 2 +- bin/tests/system/verify/tests.sh | 2 +- bin/tests/system/verify/zones/genzones.sh | 2 +- bin/tests/system/views/setup.sh | 2 +- bin/tests/system/views/tests.sh | 4 ++-- bin/tests/system/wildcard/ns1/sign.sh | 2 +- bin/tests/system/wildcard/setup.sh | 2 +- bin/tests/system/wildcard/tests.sh | 2 +- bin/tests/system/xfer/setup.sh | 2 +- bin/tests/system/xfer/tests.sh | 6 +++--- bin/tests/system/xferquota/setup.sh | 2 +- bin/tests/system/xferquota/tests.sh | 4 ++-- bin/tests/system/zero/setup.sh | 2 +- bin/tests/system/zero/tests.sh | 2 +- bin/tests/system/zonechecks/setup.sh | 2 +- bin/tests/system/zonechecks/tests.sh | 4 ++-- 277 files changed, 346 insertions(+), 356 deletions(-) diff --git a/bin/tests/system/README b/bin/tests/system/README index 068c1107bd..3ec1da1ee3 100644 --- a/bin/tests/system/README +++ b/bin/tests/system/README @@ -374,7 +374,7 @@ a run of the full test suite (e.g. the tests are started with "runall.sh"). 3. Each script should start with the following lines: - . $SYSTEMTESTTOP/conf.sh + . ../conf.sh "conf.sh" defines a series of environment variables together with functions useful for the test scripts. (conf.sh.win32 is the Windows equivalent of this diff --git a/bin/tests/system/acl/setup.sh b/bin/tests/system/acl/setup.sh index aff35aa2be..8b7a84f4d5 100644 --- a/bin/tests/system/acl/setup.sh +++ b/bin/tests/system/acl/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh $SHELL ${TOP_SRCDIR}/bin/tests/system/genzone.sh 2 3 >ns2/example.db diff --git a/bin/tests/system/acl/tests.sh b/bin/tests/system/acl/tests.sh index bfcd7f3fe8..e13bfc4442 100644 --- a/bin/tests/system/acl/tests.sh +++ b/bin/tests/system/acl/tests.sh @@ -9,10 +9,10 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+tcp +noadd +nosea +nostat +noquest +nocomm +nocmd -p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" status=0 t=0 diff --git a/bin/tests/system/additional/setup.sh b/bin/tests/system/additional/setup.sh index 557a16243c..316eeecf6e 100644 --- a/bin/tests/system/additional/setup.sh +++ b/bin/tests/system/additional/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh copy_setports ns1/named1.conf.in ns1/named.conf diff --git a/bin/tests/system/additional/tests.sh b/bin/tests/system/additional/tests.sh index 1221e0c6c3..4039f2a01f 100644 --- a/bin/tests/system/additional/tests.sh +++ b/bin/tests/system/additional/tests.sh @@ -9,10 +9,10 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="-p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" status=0 n=0 diff --git a/bin/tests/system/addzone/setup.sh b/bin/tests/system/addzone/setup.sh index e8310f60f0..0f56e7f4c8 100644 --- a/bin/tests/system/addzone/setup.sh +++ b/bin/tests/system/addzone/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh cp -f ns1/redirect.db.1 ns1/redirect.db cp -f ns2/redirect.db.1 ns2/redirect.db diff --git a/bin/tests/system/addzone/tests.sh b/bin/tests/system/addzone/tests.sh index cec70e823d..0c98912b06 100755 --- a/bin/tests/system/addzone/tests.sh +++ b/bin/tests/system/addzone/tests.sh @@ -9,10 +9,10 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+tcp +nosea +nostat +nocmd +norec +noques +noauth +noadd +nostats +dnssec -p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" check_zonestatus() ( $RNDCCMD "10.53.0.$1" zonestatus -redirect > "zonestatus.out.ns$1.$n" && diff --git a/bin/tests/system/allow-query/setup.sh b/bin/tests/system/allow-query/setup.sh index 7c6dfe1fa5..d8e62656d1 100644 --- a/bin/tests/system/allow-query/setup.sh +++ b/bin/tests/system/allow-query/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ../common/controls.conf.in ns2/controls.conf copy_setports ns1/named.conf.in ns1/named.conf diff --git a/bin/tests/system/allow-query/tests.sh b/bin/tests/system/allow-query/tests.sh index 0ba574a04e..670a65b426 100644 --- a/bin/tests/system/allow-query/tests.sh +++ b/bin/tests/system/allow-query/tests.sh @@ -50,7 +50,7 @@ # and querying as necessary. # -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+tcp +nosea +nostat +nocmd +norec +noques +noauth +noadd +nostats +dnssec -p ${PORT}" diff --git a/bin/tests/system/auth/setup.sh b/bin/tests/system/auth/setup.sh index 9fa04998da..2989fc17b0 100644 --- a/bin/tests/system/auth/setup.sh +++ b/bin/tests/system/auth/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/auth/tests.sh b/bin/tests/system/auth/tests.sh index 0cd1b721be..7fcfb00fdd 100644 --- a/bin/tests/system/auth/tests.sh +++ b/bin/tests/system/auth/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+tcp -p ${PORT}" diff --git a/bin/tests/system/autosign/ns1/keygen.sh b/bin/tests/system/autosign/ns1/keygen.sh index 79637acd96..8967b3f28d 100644 --- a/bin/tests/system/autosign/ns1/keygen.sh +++ b/bin/tests/system/autosign/ns1/keygen.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone=. zonefile=root.db diff --git a/bin/tests/system/autosign/ns2/keygen.sh b/bin/tests/system/autosign/ns2/keygen.sh index e4b91838c1..e42a6744a1 100644 --- a/bin/tests/system/autosign/ns2/keygen.sh +++ b/bin/tests/system/autosign/ns2/keygen.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh # Have the child generate subdomain keys and pass DS sets to us. ( cd ../ns3 && $SHELL keygen.sh ) diff --git a/bin/tests/system/autosign/ns3/keygen.sh b/bin/tests/system/autosign/ns3/keygen.sh index fd26f28b4e..30b7265289 100644 --- a/bin/tests/system/autosign/ns3/keygen.sh +++ b/bin/tests/system/autosign/ns3/keygen.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh SYSTESTDIR=autosign diff --git a/bin/tests/system/autosign/setup.sh b/bin/tests/system/autosign/setup.sh index e6099c1472..477b43f2b2 100644 --- a/bin/tests/system/autosign/setup.sh +++ b/bin/tests/system/autosign/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/autosign/tests.sh b/bin/tests/system/autosign/tests.sh index 6cd45cb73f..3b6b2f7d32 100755 --- a/bin/tests/system/autosign/tests.sh +++ b/bin/tests/system/autosign/tests.sh @@ -9,13 +9,13 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 n=0 DIGOPTS="+tcp +noadd +nosea +nostat +nocmd +dnssec -p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" # convert private-type records to readable form showprivate () { diff --git a/bin/tests/system/builtin/setup.sh b/bin/tests/system/builtin/setup.sh index e683db06d9..aadae5085b 100644 --- a/bin/tests/system/builtin/setup.sh +++ b/bin/tests/system/builtin/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/builtin/tests.sh b/bin/tests/system/builtin/tests.sh index e4dfc60023..5a4c3ce962 100644 --- a/bin/tests/system/builtin/tests.sh +++ b/bin/tests/system/builtin/tests.sh @@ -7,10 +7,10 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="-p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" status=0 n=0 diff --git a/bin/tests/system/cacheclean/setup.sh b/bin/tests/system/cacheclean/setup.sh index 9fa04998da..2989fc17b0 100644 --- a/bin/tests/system/cacheclean/setup.sh +++ b/bin/tests/system/cacheclean/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/cacheclean/tests.sh b/bin/tests/system/cacheclean/tests.sh index da3a4dba6a..a204cbcdb8 100755 --- a/bin/tests/system/cacheclean/tests.sh +++ b/bin/tests/system/cacheclean/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 n=0 diff --git a/bin/tests/system/case/setup.sh b/bin/tests/system/case/setup.sh index 1d467ac638..7c1b64ce39 100644 --- a/bin/tests/system/case/setup.sh +++ b/bin/tests/system/case/setup.sh @@ -7,7 +7,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh cp -f ns1/dynamic.db.in ns1/dynamic.db copy_setports ns1/named.conf.in ns1/named.conf diff --git a/bin/tests/system/case/tests.sh b/bin/tests/system/case/tests.sh index 3669183f7c..f5ea0b9a63 100644 --- a/bin/tests/system/case/tests.sh +++ b/bin/tests/system/case/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+tcp +nosea +nostat +noquest +nocomm +nocmd -p ${PORT}" diff --git a/bin/tests/system/catz/setup.sh b/bin/tests/system/catz/setup.sh index 285cacf7f7..4879f3fa3a 100644 --- a/bin/tests/system/catz/setup.sh +++ b/bin/tests/system/catz/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/catz/tests.sh b/bin/tests/system/catz/tests.sh index c79540c4cb..2b650f38d4 100644 --- a/bin/tests/system/catz/tests.sh +++ b/bin/tests/system/catz/tests.sh @@ -12,14 +12,14 @@ set -e # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh dig_with_opts() { "$DIG" -p "${PORT}" "$@" } rndccmd() ( - "$RNDC" -c "$SYSTEMTESTTOP/common/rndc.conf" -p "${CONTROLPORT}" -s "$@" + "$RNDC" -c ../common/rndc.conf -p "${CONTROLPORT}" -s "$@" ) _wait_for_message() ( diff --git a/bin/tests/system/cds/setup.sh b/bin/tests/system/cds/setup.sh index 75f4a8eb1f..eac54ccdea 100644 --- a/bin/tests/system/cds/setup.sh +++ b/bin/tests/system/cds/setup.sh @@ -11,7 +11,7 @@ set -eu -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh touch empty diff --git a/bin/tests/system/cds/tests.sh b/bin/tests/system/cds/tests.sh index 717af19353..d0542cc31d 100644 --- a/bin/tests/system/cds/tests.sh +++ b/bin/tests/system/cds/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 n=0 diff --git a/bin/tests/system/chain/ns2/sign.sh b/bin/tests/system/chain/ns2/sign.sh index a1ea0e33ad..6586e59fc6 100644 --- a/bin/tests/system/chain/ns2/sign.sh +++ b/bin/tests/system/chain/ns2/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone=example. zonefile=example.db diff --git a/bin/tests/system/chain/setup.sh b/bin/tests/system/chain/setup.sh index a557b44afe..b08b15f328 100644 --- a/bin/tests/system/chain/setup.sh +++ b/bin/tests/system/chain/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/chain/tests.sh b/bin/tests/system/chain/tests.sh index d8b17cfd0a..2397d897ff 100644 --- a/bin/tests/system/chain/tests.sh +++ b/bin/tests/system/chain/tests.sh @@ -7,10 +7,10 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="-p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" sendcmd() { send 10.53.0.4 "${EXTRAPORT1}" diff --git a/bin/tests/system/checkconf/tests.sh b/bin/tests/system/checkconf/tests.sh index dc8f4b28a9..2b6d03614a 100644 --- a/bin/tests/system/checkconf/tests.sh +++ b/bin/tests/system/checkconf/tests.sh @@ -7,7 +7,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 n=0 diff --git a/bin/tests/system/checknames/setup.sh b/bin/tests/system/checknames/setup.sh index 15f597c829..5c6613f02f 100644 --- a/bin/tests/system/checknames/setup.sh +++ b/bin/tests/system/checknames/setup.sh @@ -7,7 +7,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/checknames/tests.sh b/bin/tests/system/checknames/tests.sh index 70558b1ddd..4897c34f07 100644 --- a/bin/tests/system/checknames/tests.sh +++ b/bin/tests/system/checknames/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 n=1 diff --git a/bin/tests/system/checkzone/setup.sh b/bin/tests/system/checkzone/setup.sh index 96f32bb596..8fd9e26d6d 100644 --- a/bin/tests/system/checkzone/setup.sh +++ b/bin/tests/system/checkzone/setup.sh @@ -7,7 +7,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh ln -s $CHECKZONE named-compilezone diff --git a/bin/tests/system/checkzone/tests.sh b/bin/tests/system/checkzone/tests.sh index 3735689f71..6daccffc2a 100644 --- a/bin/tests/system/checkzone/tests.sh +++ b/bin/tests/system/checkzone/tests.sh @@ -7,7 +7,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 n=1 diff --git a/bin/tests/system/cleanall.sh b/bin/tests/system/cleanall.sh index d4b3c665cc..54cdfe6996 100644 --- a/bin/tests/system/cleanall.sh +++ b/bin/tests/system/cleanall.sh @@ -13,8 +13,7 @@ # Clean up after system tests. # -SYSTEMTESTTOP=. -. $SYSTEMTESTTOP/conf.sh +. ./conf.sh find . -type f \( \ @@ -25,7 +24,7 @@ find . -type f \( \ status=0 -rm -f $SYSTEMTESTTOP/random.data +rm -f ../random.data for d in $SUBDIRS do diff --git a/bin/tests/system/cleanpkcs11.sh b/bin/tests/system/cleanpkcs11.sh index 7c44ce265b..d20c51a371 100644 --- a/bin/tests/system/cleanpkcs11.sh +++ b/bin/tests/system/cleanpkcs11.sh @@ -9,6 +9,6 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh [ -x "$TOP_BUILDDIR/bin/pkcs11/pkcs11-destroy" ] && $PK11DEL -w0 > /dev/null 2>&1 diff --git a/bin/tests/system/cookie/setup.sh b/bin/tests/system/cookie/setup.sh index ecc72c0276..d25b6eca17 100644 --- a/bin/tests/system/cookie/setup.sh +++ b/bin/tests/system/cookie/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/cookie/tests.sh b/bin/tests/system/cookie/tests.sh index 3871fd37f9..a17d1ed4d6 100755 --- a/bin/tests/system/cookie/tests.sh +++ b/bin/tests/system/cookie/tests.sh @@ -9,10 +9,10 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="-p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" status=0 n=0 diff --git a/bin/tests/system/database/setup.sh b/bin/tests/system/database/setup.sh index 303e87e5ea..ca378fdeb8 100644 --- a/bin/tests/system/database/setup.sh +++ b/bin/tests/system/database/setup.sh @@ -9,6 +9,6 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named1.conf.in ns1/named.conf diff --git a/bin/tests/system/database/tests.sh b/bin/tests/system/database/tests.sh index e70de1ac0c..8c850438f9 100644 --- a/bin/tests/system/database/tests.sh +++ b/bin/tests/system/database/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 n=0 diff --git a/bin/tests/system/delzone/setup.sh b/bin/tests/system/delzone/setup.sh index 20a115a4d0..903fe15367 100644 --- a/bin/tests/system/delzone/setup.sh +++ b/bin/tests/system/delzone/setup.sh @@ -9,6 +9,6 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/delzone/tests.sh b/bin/tests/system/delzone/tests.sh index 9a94212e11..b1b2ac7ebd 100755 --- a/bin/tests/system/delzone/tests.sh +++ b/bin/tests/system/delzone/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+tcp +nosea +nostat +nocmd +norec +noques +noauth +noadd +nostats +dnssec -p 5300" status=0 diff --git a/bin/tests/system/dialup/tests.sh b/bin/tests/system/dialup/tests.sh index a0f622fe84..74b7b4a7d0 100644 --- a/bin/tests/system/dialup/tests.sh +++ b/bin/tests/system/dialup/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 diff --git a/bin/tests/system/digdelv/ns2/sign.sh b/bin/tests/system/digdelv/ns2/sign.sh index efc2b30a58..a85cd99dd4 100644 --- a/bin/tests/system/digdelv/ns2/sign.sh +++ b/bin/tests/system/digdelv/ns2/sign.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh set -e diff --git a/bin/tests/system/digdelv/setup.sh b/bin/tests/system/digdelv/setup.sh index 4f37d0228c..e1a64b8c11 100644 --- a/bin/tests/system/digdelv/setup.sh +++ b/bin/tests/system/digdelv/setup.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh set -e diff --git a/bin/tests/system/digdelv/tests.sh b/bin/tests/system/digdelv/tests.sh index 6930a1c8cc..550f6964f6 100644 --- a/bin/tests/system/digdelv/tests.sh +++ b/bin/tests/system/digdelv/tests.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh set -e diff --git a/bin/tests/system/dlz/prereq.sh b/bin/tests/system/dlz/prereq.sh index c45c2b2c4c..7813e45631 100644 --- a/bin/tests/system/dlz/prereq.sh +++ b/bin/tests/system/dlz/prereq.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh if ! $FEATURETEST --with-dlz-filesystem; then echo_i "DLZ filesystem driver not supported" diff --git a/bin/tests/system/dlz/setup.sh b/bin/tests/system/dlz/setup.sh index bf1af390f2..f12c3ab3f3 100644 --- a/bin/tests/system/dlz/setup.sh +++ b/bin/tests/system/dlz/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh copy_setports ns1/named.conf.in ns1/named.conf diff --git a/bin/tests/system/dlz/tests.sh b/bin/tests/system/dlz/tests.sh index e0be7c0a75..1684a07187 100644 --- a/bin/tests/system/dlz/tests.sh +++ b/bin/tests/system/dlz/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 n=0 diff --git a/bin/tests/system/dlzexternal/setup.sh b/bin/tests/system/dlzexternal/setup.sh index d7551eade9..bd457c68b5 100644 --- a/bin/tests/system/dlzexternal/setup.sh +++ b/bin/tests/system/dlzexternal/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $TSIGKEYGEN ddns-key.example.nil > ns1/ddns.key diff --git a/bin/tests/system/dlzexternal/tests.sh b/bin/tests/system/dlzexternal/tests.sh index d843fa117b..3374dfd06a 100644 --- a/bin/tests/system/dlzexternal/tests.sh +++ b/bin/tests/system/dlzexternal/tests.sh @@ -9,13 +9,13 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 n=0 DIGOPTS="@10.53.0.1 -p ${PORT} +nocookie" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" newtest() { n=`expr $n + 1` diff --git a/bin/tests/system/dns64/ns1/sign.sh b/bin/tests/system/dns64/ns1/sign.sh index c0c32e0418..c087dc14d1 100644 --- a/bin/tests/system/dns64/ns1/sign.sh +++ b/bin/tests/system/dns64/ns1/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone=signed infile=example.db diff --git a/bin/tests/system/dns64/setup.sh b/bin/tests/system/dns64/setup.sh index f2c1131a1d..782cb06541 100644 --- a/bin/tests/system/dns64/setup.sh +++ b/bin/tests/system/dns64/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/dns64/tests.sh b/bin/tests/system/dns64/tests.sh index fbe9ad71dc..57df25b488 100644 --- a/bin/tests/system/dns64/tests.sh +++ b/bin/tests/system/dns64/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 n=0 diff --git a/bin/tests/system/dnssec/ns1/sign.sh b/bin/tests/system/dnssec/ns1/sign.sh index 5882789500..bdc67ec4b3 100644 --- a/bin/tests/system/dnssec/ns1/sign.sh +++ b/bin/tests/system/dnssec/ns1/sign.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh set -e diff --git a/bin/tests/system/dnssec/ns2/sign.sh b/bin/tests/system/dnssec/ns2/sign.sh index c99f7a537c..9cbf15fefb 100644 --- a/bin/tests/system/dnssec/ns2/sign.sh +++ b/bin/tests/system/dnssec/ns2/sign.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh set -e diff --git a/bin/tests/system/dnssec/ns3/sign.sh b/bin/tests/system/dnssec/ns3/sign.sh index cff898af74..123a970007 100644 --- a/bin/tests/system/dnssec/ns3/sign.sh +++ b/bin/tests/system/dnssec/ns3/sign.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh set -e diff --git a/bin/tests/system/dnssec/ns5/sign.sh b/bin/tests/system/dnssec/ns5/sign.sh index 54ae148e0c..f20bbe56f5 100644 --- a/bin/tests/system/dnssec/ns5/sign.sh +++ b/bin/tests/system/dnssec/ns5/sign.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh set -e diff --git a/bin/tests/system/dnssec/ns6/sign.sh b/bin/tests/system/dnssec/ns6/sign.sh index 80d8881c15..29a4dd634d 100644 --- a/bin/tests/system/dnssec/ns6/sign.sh +++ b/bin/tests/system/dnssec/ns6/sign.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh set -e diff --git a/bin/tests/system/dnssec/ns7/sign.sh b/bin/tests/system/dnssec/ns7/sign.sh index 625300339c..ef12066ad5 100644 --- a/bin/tests/system/dnssec/ns7/sign.sh +++ b/bin/tests/system/dnssec/ns7/sign.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh set -e diff --git a/bin/tests/system/dnssec/setup.sh b/bin/tests/system/dnssec/setup.sh index 9798e34be7..a01b4fbf6f 100644 --- a/bin/tests/system/dnssec/setup.sh +++ b/bin/tests/system/dnssec/setup.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh set -e diff --git a/bin/tests/system/dnssec/tests.sh b/bin/tests/system/dnssec/tests.sh index 566a4f0951..f17927d675 100644 --- a/bin/tests/system/dnssec/tests.sh +++ b/bin/tests/system/dnssec/tests.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh set -e @@ -36,7 +36,7 @@ delv_with_opts() { } rndccmd() { - "$RNDC" -c "$SYSTEMTESTTOP/common/rndc.conf" -p "$CONTROLPORT" -s "$@" + "$RNDC" -c ../common/rndc.conf -p "$CONTROLPORT" -s "$@" } # TODO: Move loadkeys_on to conf.sh.common @@ -3806,7 +3806,7 @@ ret=0 dig_with_opts . dnskey +ednsopt=KEY-TAG:fffe +ednsopt=KEY-TAG:fffd @10.53.0.1 > dig.out.ns1.test$n || ret=1 grep "trust-anchor-telemetry './IN' from .* 65534" ns1/named.run > /dev/null || ret=1 grep "trust-anchor-telemetry './IN' from .* 65533" ns1/named.run > /dev/null && ret=1 -$PERL $SYSTEMTESTTOP/stop.pl dnssec ns1 || ret=1 +$PERL ../stop.pl dnssec ns1 || ret=1 nextpart ns1/named.run > /dev/null start_server --noclean --restart --port ${PORT} dnssec ns1 || ret=1 n=$(($n+1)) diff --git a/bin/tests/system/dnstap/setup.sh b/bin/tests/system/dnstap/setup.sh index 53c207eedb..5dd570ec02 100644 --- a/bin/tests/system/dnstap/setup.sh +++ b/bin/tests/system/dnstap/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/dnstap/tests.sh b/bin/tests/system/dnstap/tests.sh index 0ed31056ae..7aaced024b 100644 --- a/bin/tests/system/dnstap/tests.sh +++ b/bin/tests/system/dnstap/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+short -p ${PORT}" RNDCCMD="$RNDC -p ${CONTROLPORT} -c ../common/rndc.conf" diff --git a/bin/tests/system/dscp/setup.sh b/bin/tests/system/dscp/setup.sh index 60ed4a345d..810fd285d4 100644 --- a/bin/tests/system/dscp/setup.sh +++ b/bin/tests/system/dscp/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/dscp/tests.sh b/bin/tests/system/dscp/tests.sh index 2d2d6d240d..ceb2e24fb9 100644 --- a/bin/tests/system/dscp/tests.sh +++ b/bin/tests/system/dscp/tests.sh @@ -7,7 +7,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+tcp +noadd +nosea +nostat +noquest -p ${PORT}" diff --git a/bin/tests/system/dsdigest/ns1/sign.sh b/bin/tests/system/dsdigest/ns1/sign.sh index ccf14bcd8e..0537546f96 100644 --- a/bin/tests/system/dsdigest/ns1/sign.sh +++ b/bin/tests/system/dsdigest/ns1/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone=. infile=root.db.in diff --git a/bin/tests/system/dsdigest/ns2/sign.sh b/bin/tests/system/dsdigest/ns2/sign.sh index 4d2ea08dff..bb528186da 100644 --- a/bin/tests/system/dsdigest/ns2/sign.sh +++ b/bin/tests/system/dsdigest/ns2/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone1=good infile1=good.db.in diff --git a/bin/tests/system/dsdigest/setup.sh b/bin/tests/system/dsdigest/setup.sh index e7308b015a..30d7f277ea 100644 --- a/bin/tests/system/dsdigest/setup.sh +++ b/bin/tests/system/dsdigest/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/dsdigest/tests.sh b/bin/tests/system/dsdigest/tests.sh index b254fd970c..4c24cd5898 100644 --- a/bin/tests/system/dsdigest/tests.sh +++ b/bin/tests/system/dsdigest/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 diff --git a/bin/tests/system/dupsigs/ns1/reset_keys.sh b/bin/tests/system/dupsigs/ns1/reset_keys.sh index 984d68ba97..c347c47a22 100644 --- a/bin/tests/system/dupsigs/ns1/reset_keys.sh +++ b/bin/tests/system/dupsigs/ns1/reset_keys.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh zone=signing.test rm -rf keys/signing.test diff --git a/bin/tests/system/dupsigs/setup.sh b/bin/tests/system/dupsigs/setup.sh index e35a82962e..efe74569bc 100644 --- a/bin/tests/system/dupsigs/setup.sh +++ b/bin/tests/system/dupsigs/setup.sh @@ -7,7 +7,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/dupsigs/tests.sh b/bin/tests/system/dupsigs/tests.sh index 5ea9279ea7..74c2313590 100644 --- a/bin/tests/system/dupsigs/tests.sh +++ b/bin/tests/system/dupsigs/tests.sh @@ -7,7 +7,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 start=`date +%s` diff --git a/bin/tests/system/dyndb/setup.sh b/bin/tests/system/dyndb/setup.sh index 0f5767dceb..7b8f53bfd5 100644 --- a/bin/tests/system/dyndb/setup.sh +++ b/bin/tests/system/dyndb/setup.sh @@ -9,6 +9,6 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf diff --git a/bin/tests/system/dyndb/tests.sh b/bin/tests/system/dyndb/tests.sh index 313204c00c..4ed198f7b4 100644 --- a/bin/tests/system/dyndb/tests.sh +++ b/bin/tests/system/dyndb/tests.sh @@ -9,13 +9,13 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 n=0 DIGOPTS="@10.53.0.1 -p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" newtest() { n=`expr $n + 1` diff --git a/bin/tests/system/ecdsa/ns1/sign.sh b/bin/tests/system/ecdsa/ns1/sign.sh index 9fc7ddb93f..411f99a70b 100644 --- a/bin/tests/system/ecdsa/ns1/sign.sh +++ b/bin/tests/system/ecdsa/ns1/sign.sh @@ -11,7 +11,7 @@ set -e -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh zone=. infile=root.db.in diff --git a/bin/tests/system/ecdsa/setup.sh b/bin/tests/system/ecdsa/setup.sh index 69c4995f41..6b747792eb 100644 --- a/bin/tests/system/ecdsa/setup.sh +++ b/bin/tests/system/ecdsa/setup.sh @@ -11,7 +11,7 @@ set -e -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/ecdsa/tests.sh b/bin/tests/system/ecdsa/tests.sh index 8fc2b21b19..aedbf2fc50 100644 --- a/bin/tests/system/ecdsa/tests.sh +++ b/bin/tests/system/ecdsa/tests.sh @@ -11,7 +11,7 @@ set -e -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh status=0 n=1 diff --git a/bin/tests/system/eddsa/ns1/sign.sh b/bin/tests/system/eddsa/ns1/sign.sh index f1a462a263..698d51d660 100644 --- a/bin/tests/system/eddsa/ns1/sign.sh +++ b/bin/tests/system/eddsa/ns1/sign.sh @@ -11,7 +11,7 @@ set -e -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh zone=. infile=root.db.in diff --git a/bin/tests/system/eddsa/ns2/sign.sh b/bin/tests/system/eddsa/ns2/sign.sh index ddd7a92746..5c1f217013 100644 --- a/bin/tests/system/eddsa/ns2/sign.sh +++ b/bin/tests/system/eddsa/ns2/sign.sh @@ -11,7 +11,7 @@ set -e -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh zone=example.com. zonefile=example.com.db diff --git a/bin/tests/system/eddsa/prereq.sh b/bin/tests/system/eddsa/prereq.sh index e86ce7eb39..564d635d50 100644 --- a/bin/tests/system/eddsa/prereq.sh +++ b/bin/tests/system/eddsa/prereq.sh @@ -11,7 +11,7 @@ set -e -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh if ! $SHELL ../testcrypto.sh eddsa; then exit 1 diff --git a/bin/tests/system/eddsa/setup.sh b/bin/tests/system/eddsa/setup.sh index 69c4995f41..6b747792eb 100644 --- a/bin/tests/system/eddsa/setup.sh +++ b/bin/tests/system/eddsa/setup.sh @@ -11,7 +11,7 @@ set -e -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/eddsa/tests.sh b/bin/tests/system/eddsa/tests.sh index 2dcc138c2f..7505eba60e 100644 --- a/bin/tests/system/eddsa/tests.sh +++ b/bin/tests/system/eddsa/tests.sh @@ -11,7 +11,7 @@ set -e -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh status=0 n=1 diff --git a/bin/tests/system/ednscompliance/setup.sh b/bin/tests/system/ednscompliance/setup.sh index 0f5767dceb..7b8f53bfd5 100644 --- a/bin/tests/system/ednscompliance/setup.sh +++ b/bin/tests/system/ednscompliance/setup.sh @@ -9,6 +9,6 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf diff --git a/bin/tests/system/ednscompliance/tests.sh b/bin/tests/system/ednscompliance/tests.sh index 515db8aaf5..433afddad6 100644 --- a/bin/tests/system/ednscompliance/tests.sh +++ b/bin/tests/system/ednscompliance/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+norec -p ${PORT}" diff --git a/bin/tests/system/emptyzones/setup.sh b/bin/tests/system/emptyzones/setup.sh index 69eebf319a..ff21b41297 100644 --- a/bin/tests/system/emptyzones/setup.sh +++ b/bin/tests/system/emptyzones/setup.sh @@ -7,7 +7,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh copy_setports ns1/named1.conf.in ns1/named.conf diff --git a/bin/tests/system/emptyzones/tests.sh b/bin/tests/system/emptyzones/tests.sh index 93ee6334ae..b96cefac94 100644 --- a/bin/tests/system/emptyzones/tests.sh +++ b/bin/tests/system/emptyzones/tests.sh @@ -9,10 +9,10 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="-p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" status=0 n=0 diff --git a/bin/tests/system/fetchlimit/setup.sh b/bin/tests/system/fetchlimit/setup.sh index c4e16dd4bd..cbc00cd64d 100644 --- a/bin/tests/system/fetchlimit/setup.sh +++ b/bin/tests/system/fetchlimit/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/fetchlimit/tests.sh b/bin/tests/system/fetchlimit/tests.sh index 027a439976..8e9ee7b3d2 100644 --- a/bin/tests/system/fetchlimit/tests.sh +++ b/bin/tests/system/fetchlimit/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGCMD="$DIG @10.53.0.3 -p ${PORT} +tcp +tries=1 +time=1" RNDCCMD="$RNDC -p ${CONTROLPORT} -s 10.53.0.3 -c ../common/rndc.conf" diff --git a/bin/tests/system/filter-aaaa/ns1/sign.sh b/bin/tests/system/filter-aaaa/ns1/sign.sh index adc29af4a3..e8f3d37dde 100755 --- a/bin/tests/system/filter-aaaa/ns1/sign.sh +++ b/bin/tests/system/filter-aaaa/ns1/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh SYSTESTDIR=filter-aaaa diff --git a/bin/tests/system/filter-aaaa/ns4/sign.sh b/bin/tests/system/filter-aaaa/ns4/sign.sh index 05780cf4c6..d7d5a43997 100755 --- a/bin/tests/system/filter-aaaa/ns4/sign.sh +++ b/bin/tests/system/filter-aaaa/ns4/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh SYSTESTDIR=filter-aaaa diff --git a/bin/tests/system/filter-aaaa/setup.sh b/bin/tests/system/filter-aaaa/setup.sh index 21a33fb482..a5ddcb20ca 100644 --- a/bin/tests/system/filter-aaaa/setup.sh +++ b/bin/tests/system/filter-aaaa/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named1.conf.in ns1/named.conf copy_setports ns2/named1.conf.in ns2/named.conf diff --git a/bin/tests/system/filter-aaaa/tests.sh b/bin/tests/system/filter-aaaa/tests.sh index 0d7a1271df..e5ac5460d8 100644 --- a/bin/tests/system/filter-aaaa/tests.sh +++ b/bin/tests/system/filter-aaaa/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 n=0 @@ -17,7 +17,7 @@ n=0 rm -f dig.out.* DIGOPTS="+tcp +noadd +nosea +nostat +nocmd -p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" for conf in conf/good*.conf do diff --git a/bin/tests/system/formerr/setup.sh b/bin/tests/system/formerr/setup.sh index 0f5767dceb..7b8f53bfd5 100644 --- a/bin/tests/system/formerr/setup.sh +++ b/bin/tests/system/formerr/setup.sh @@ -9,6 +9,6 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf diff --git a/bin/tests/system/formerr/tests.sh b/bin/tests/system/formerr/tests.sh index 51e29ea696..ca629c5f3c 100644 --- a/bin/tests/system/formerr/tests.sh +++ b/bin/tests/system/formerr/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 diff --git a/bin/tests/system/forward/setup.sh b/bin/tests/system/forward/setup.sh index 5d4894ead4..45f8cc9775 100644 --- a/bin/tests/system/forward/setup.sh +++ b/bin/tests/system/forward/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh copy_setports ns1/named.conf.in ns1/named.conf diff --git a/bin/tests/system/forward/tests.sh b/bin/tests/system/forward/tests.sh index 9a201e959f..74c4eba217 100644 --- a/bin/tests/system/forward/tests.sh +++ b/bin/tests/system/forward/tests.sh @@ -8,7 +8,7 @@ # information regarding copyright ownership. #shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh dig_with_opts() ( "$DIG" -p "$PORT" "$@" diff --git a/bin/tests/system/geoip2/prereq.sh b/bin/tests/system/geoip2/prereq.sh index 8178c2a9f2..a00c41e523 100644 --- a/bin/tests/system/geoip2/prereq.sh +++ b/bin/tests/system/geoip2/prereq.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $FEATURETEST --have-geoip2 || { echo_i "This test requires GeoIP support." >&2 diff --git a/bin/tests/system/geoip2/setup.sh b/bin/tests/system/geoip2/setup.sh index ef08a2152e..ed37f52757 100644 --- a/bin/tests/system/geoip2/setup.sh +++ b/bin/tests/system/geoip2/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/geoip2/tests.sh b/bin/tests/system/geoip2/tests.sh index 8147edb811..fcd9df1408 100644 --- a/bin/tests/system/geoip2/tests.sh +++ b/bin/tests/system/geoip2/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 n=0 @@ -18,7 +18,7 @@ rm -f dig.out.* DIGOPTS="+tcp +short -p ${PORT} @10.53.0.2" DIGOPTS6="+tcp +short -p ${PORT} @fd92:7065:b8e:ffff::2 -6" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" for conf in conf/good*.conf do diff --git a/bin/tests/system/glue/setup.sh b/bin/tests/system/glue/setup.sh index 0f5767dceb..7b8f53bfd5 100644 --- a/bin/tests/system/glue/setup.sh +++ b/bin/tests/system/glue/setup.sh @@ -9,6 +9,6 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf diff --git a/bin/tests/system/glue/tests.sh b/bin/tests/system/glue/tests.sh index 2bb2f7166e..95c26f941a 100644 --- a/bin/tests/system/glue/tests.sh +++ b/bin/tests/system/glue/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh # # Do glue tests. diff --git a/bin/tests/system/idna/setup.sh b/bin/tests/system/idna/setup.sh index bf1af390f2..f12c3ab3f3 100644 --- a/bin/tests/system/idna/setup.sh +++ b/bin/tests/system/idna/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh copy_setports ns1/named.conf.in ns1/named.conf diff --git a/bin/tests/system/idna/tests.sh b/bin/tests/system/idna/tests.sh index 45350ae5b8..6b7220bbc6 100644 --- a/bin/tests/system/idna/tests.sh +++ b/bin/tests/system/idna/tests.sh @@ -7,7 +7,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh # Set known locale for the tests diff --git a/bin/tests/system/include-multiplecfg/setup.sh b/bin/tests/system/include-multiplecfg/setup.sh index 44b0179e14..6cebc56813 100644 --- a/bin/tests/system/include-multiplecfg/setup.sh +++ b/bin/tests/system/include-multiplecfg/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/include-multiplecfg/tests.sh b/bin/tests/system/include-multiplecfg/tests.sh index f2ce745b67..a3bc11030f 100644 --- a/bin/tests/system/include-multiplecfg/tests.sh +++ b/bin/tests/system/include-multiplecfg/tests.sh @@ -12,7 +12,7 @@ # Test of include statement with glob expression. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+tcp +nosea +nostat +nocmd +norec +noques +noadd +nostats -p ${PORT}" diff --git a/bin/tests/system/inline/ns1/sign.sh b/bin/tests/system/inline/ns1/sign.sh index 587266d64a..4f495c0abe 100644 --- a/bin/tests/system/inline/ns1/sign.sh +++ b/bin/tests/system/inline/ns1/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone=. rm -f K.+*+*.key diff --git a/bin/tests/system/inline/ns3/sign.sh b/bin/tests/system/inline/ns3/sign.sh index cd4fc846a8..b00957cca4 100755 --- a/bin/tests/system/inline/ns3/sign.sh +++ b/bin/tests/system/inline/ns3/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh # Fake an unsupported key unsupportedkey=$("$KEYGEN" -q -a "$DEFAULT_ALGORITHM" -b "$DEFAULT_BITS" -n zone unsupported) diff --git a/bin/tests/system/inline/ns7/sign.sh b/bin/tests/system/inline/ns7/sign.sh index 462cd29e2e..0330a45683 100755 --- a/bin/tests/system/inline/ns7/sign.sh +++ b/bin/tests/system/inline/ns7/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh # NOTE: The number of signing keys generated below is not coincidental. More # details can be found in the comment inside ns7/named.conf. diff --git a/bin/tests/system/inline/ns8/sign.sh b/bin/tests/system/inline/ns8/sign.sh index 4e8a8df038..49f90e3367 100755 --- a/bin/tests/system/inline/ns8/sign.sh +++ b/bin/tests/system/inline/ns8/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh for zone in example01.com example02.com example03.com example04.com \ example05.com example06.com example07.com example08.com \ diff --git a/bin/tests/system/inline/setup.sh b/bin/tests/system/inline/setup.sh index dd1a5f33c5..f06052ab23 100644 --- a/bin/tests/system/inline/setup.sh +++ b/bin/tests/system/inline/setup.sh @@ -7,7 +7,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh cp ns1/root.db.in ns1/root.db diff --git a/bin/tests/system/inline/tests.sh b/bin/tests/system/inline/tests.sh index 9cfcb2ba0b..c1d3d64660 100755 --- a/bin/tests/system/inline/tests.sh +++ b/bin/tests/system/inline/tests.sh @@ -9,10 +9,10 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+tcp +dnssec -p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" wait_for_serial() ( $DIG $DIGOPTS "@$1" "$2" SOA > "$4" @@ -1340,7 +1340,7 @@ check_done_signing () ( retry_quiet 10 check_done_signing || ret=1 # Halt rather than stopping the server to prevent the file from being # flushed upon shutdown since we specifically want to avoid it. -$PERL $SYSTEMTESTTOP/stop.pl --use-rndc --halt --port ${CONTROLPORT} inline ns3 +$PERL ../stop.pl --use-rndc --halt --port ${CONTROLPORT} inline ns3 ensure_sigs_only_in_journal delayedkeys ns3/delayedkeys.db.signed start_server --noclean --restart --port ${PORT} inline ns3 # At this point, the raw zone journal will not have a source serial set. Upon @@ -1349,7 +1349,7 @@ start_server --noclean --restart --port ${PORT} inline ns3 # return delayedkeys/SOA as the next node to resign, so we restart the server # once again; with the raw zone journal now having a source serial set, # receive_secure_serial() should refrain from introducing any zone changes. -$PERL $SYSTEMTESTTOP/stop.pl --use-rndc --halt --port ${CONTROLPORT} inline ns3 +$PERL ../stop.pl --use-rndc --halt --port ${CONTROLPORT} inline ns3 ensure_sigs_only_in_journal delayedkeys ns3/delayedkeys.db.signed nextpart ns3/named.run > /dev/null start_server --noclean --restart --port ${PORT} inline ns3 diff --git a/bin/tests/system/integrity/setup.sh b/bin/tests/system/integrity/setup.sh index 0f5767dceb..7b8f53bfd5 100644 --- a/bin/tests/system/integrity/setup.sh +++ b/bin/tests/system/integrity/setup.sh @@ -9,6 +9,6 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf diff --git a/bin/tests/system/integrity/tests.sh b/bin/tests/system/integrity/tests.sh index f125ddc4a2..fd7ceae7af 100644 --- a/bin/tests/system/integrity/tests.sh +++ b/bin/tests/system/integrity/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="-p ${PORT}" diff --git a/bin/tests/system/ixfr/setup.sh b/bin/tests/system/ixfr/setup.sh index 8f216ee591..cd081e961f 100644 --- a/bin/tests/system/ixfr/setup.sh +++ b/bin/tests/system/ixfr/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/ixfr/tests.sh b/bin/tests/system/ixfr/tests.sh index 60d77a97af..ff585140b3 100644 --- a/bin/tests/system/ixfr/tests.sh +++ b/bin/tests/system/ixfr/tests.sh @@ -15,7 +15,7 @@ # in the log file - need a better approach - until then, # if you add any tests above that point, you will break the test. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh wait_for_serial() ( $DIG $DIGOPTS "@$1" "$2" SOA > "$4" diff --git a/bin/tests/system/kasp/ns2/setup.sh b/bin/tests/system/kasp/ns2/setup.sh index 588735d0a6..4436fc736f 100644 --- a/bin/tests/system/kasp/ns2/setup.sh +++ b/bin/tests/system/kasp/ns2/setup.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh echo_i "ns2/setup.sh" diff --git a/bin/tests/system/kasp/ns3/setup.sh b/bin/tests/system/kasp/ns3/setup.sh index 548ee0c3dd..b3c41d9c88 100644 --- a/bin/tests/system/kasp/ns3/setup.sh +++ b/bin/tests/system/kasp/ns3/setup.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh echo_i "ns3/setup.sh" diff --git a/bin/tests/system/kasp/ns4/setup.sh b/bin/tests/system/kasp/ns4/setup.sh index 4b02fd3fa0..18de440ddc 100644 --- a/bin/tests/system/kasp/ns4/setup.sh +++ b/bin/tests/system/kasp/ns4/setup.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh echo_i "ns4/setup.sh" diff --git a/bin/tests/system/kasp/ns5/setup.sh b/bin/tests/system/kasp/ns5/setup.sh index b6f274e6a7..2fa500cfd4 100644 --- a/bin/tests/system/kasp/ns5/setup.sh +++ b/bin/tests/system/kasp/ns5/setup.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh echo_i "ns5/setup.sh" diff --git a/bin/tests/system/kasp/ns6/setup.sh b/bin/tests/system/kasp/ns6/setup.sh index a63db413ef..08540f2387 100644 --- a/bin/tests/system/kasp/ns6/setup.sh +++ b/bin/tests/system/kasp/ns6/setup.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh echo_i "ns6/setup.sh" diff --git a/bin/tests/system/kasp/setup.sh b/bin/tests/system/kasp/setup.sh index a41b0ca946..7552331990 100644 --- a/bin/tests/system/kasp/setup.sh +++ b/bin/tests/system/kasp/setup.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh set -e diff --git a/bin/tests/system/kasp/tests.sh b/bin/tests/system/kasp/tests.sh index 5f92cf7f5e..a2dbda682d 100644 --- a/bin/tests/system/kasp/tests.sh +++ b/bin/tests/system/kasp/tests.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh start_time="$(TZ=UTC date +%s)" status=0 @@ -136,7 +136,7 @@ dig_with_opts() { # RNDC. rndccmd() { - "$RNDC" -c "$SYSTEMTESTTOP/common/rndc.conf" -p "$CONTROLPORT" -s "$@" + "$RNDC" -c ../common/rndc.conf -p "$CONTROLPORT" -s "$@" } # Print IDs of keys used for generating RRSIG records for RRsets of type $1 diff --git a/bin/tests/system/keepalive/setup.sh b/bin/tests/system/keepalive/setup.sh index e683db06d9..aadae5085b 100644 --- a/bin/tests/system/keepalive/setup.sh +++ b/bin/tests/system/keepalive/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/keepalive/tests.sh b/bin/tests/system/keepalive/tests.sh index 0c067afc7a..e29f785eab 100644 --- a/bin/tests/system/keepalive/tests.sh +++ b/bin/tests/system/keepalive/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="-p ${PORT}" RNDCCMD="$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p ${CONTROLPORT}" diff --git a/bin/tests/system/legacy/build.sh b/bin/tests/system/legacy/build.sh index 21094ce9d4..eabc3b8d5e 100644 --- a/bin/tests/system/legacy/build.sh +++ b/bin/tests/system/legacy/build.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/legacy/ns6/sign.sh b/bin/tests/system/legacy/ns6/sign.sh index 9a796db57d..fa9a7f96a5 100755 --- a/bin/tests/system/legacy/ns6/sign.sh +++ b/bin/tests/system/legacy/ns6/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh SYSTESTDIR=legacy diff --git a/bin/tests/system/legacy/ns7/sign.sh b/bin/tests/system/legacy/ns7/sign.sh index 9a4ba792cc..e20b97313e 100755 --- a/bin/tests/system/legacy/ns7/sign.sh +++ b/bin/tests/system/legacy/ns7/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh SYSTESTDIR=legacy diff --git a/bin/tests/system/legacy/setup.sh b/bin/tests/system/legacy/setup.sh index 8dcb3689fe..aa13b05761 100644 --- a/bin/tests/system/legacy/setup.sh +++ b/bin/tests/system/legacy/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named1.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/legacy/tests.sh b/bin/tests/system/legacy/tests.sh index 5af0265138..12b658e3ef 100755 --- a/bin/tests/system/legacy/tests.sh +++ b/bin/tests/system/legacy/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="-p ${PORT} +tries=1 +time=2" @@ -252,7 +252,7 @@ fi if [ $ret != 0 ]; then echo_i "failed"; fi status=`expr $status + $ret` -$PERL $SYSTEMTESTTOP/stop.pl --use-rndc --port ${CONTROLPORT} legacy ns1 +$PERL ../stop.pl --use-rndc --port ${CONTROLPORT} legacy ns1 copy_setports ns1/named2.conf.in ns1/named.conf start_server --noclean --restart --port ${PORT} legacy ns1 diff --git a/bin/tests/system/limits/setup.sh b/bin/tests/system/limits/setup.sh index 0f5767dceb..7b8f53bfd5 100644 --- a/bin/tests/system/limits/setup.sh +++ b/bin/tests/system/limits/setup.sh @@ -9,6 +9,6 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf diff --git a/bin/tests/system/limits/tests.sh b/bin/tests/system/limits/tests.sh index 8b77299778..d9bd462726 100644 --- a/bin/tests/system/limits/tests.sh +++ b/bin/tests/system/limits/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="-p ${PORT}" diff --git a/bin/tests/system/logfileconfig/setup.sh b/bin/tests/system/logfileconfig/setup.sh index c6198b7046..a19f43430f 100644 --- a/bin/tests/system/logfileconfig/setup.sh +++ b/bin/tests/system/logfileconfig/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/logfileconfig/tests.sh b/bin/tests/system/logfileconfig/tests.sh index b04bd1994b..d43f5ad72a 100644 --- a/bin/tests/system/logfileconfig/tests.sh +++ b/bin/tests/system/logfileconfig/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh THISDIR=`pwd` CONFDIR="ns1" diff --git a/bin/tests/system/masterfile/setup.sh b/bin/tests/system/masterfile/setup.sh index 4f1b3ae5ea..86cb9b3349 100644 --- a/bin/tests/system/masterfile/setup.sh +++ b/bin/tests/system/masterfile/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh copy_setports ns1/named.conf.in ns1/named.conf diff --git a/bin/tests/system/masterfile/tests.sh b/bin/tests/system/masterfile/tests.sh index 2c3ebc3deb..3e57f5f80d 100644 --- a/bin/tests/system/masterfile/tests.sh +++ b/bin/tests/system/masterfile/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="-p ${PORT}" diff --git a/bin/tests/system/masterformat/ns1/compile.sh b/bin/tests/system/masterformat/ns1/compile.sh index 1340343e6a..d29879a579 100755 --- a/bin/tests/system/masterformat/ns1/compile.sh +++ b/bin/tests/system/masterformat/ns1/compile.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh $CHECKZONE -D -F raw -o example.db.raw example \ example.db > /dev/null 2>&1 diff --git a/bin/tests/system/masterformat/setup.sh b/bin/tests/system/masterformat/setup.sh index c1530f892b..a104cfd033 100755 --- a/bin/tests/system/masterformat/setup.sh +++ b/bin/tests/system/masterformat/setup.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/masterformat/tests.sh b/bin/tests/system/masterformat/tests.sh index 05ff3e659b..a7cf0190f1 100755 --- a/bin/tests/system/masterformat/tests.sh +++ b/bin/tests/system/masterformat/tests.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh status=0 n=1 @@ -88,7 +88,7 @@ dig_with_opts() { } rndccmd() { - "$RNDC" -c "$SYSTEMTESTTOP/common/rndc.conf" -p "${CONTROLPORT}" -s "$@" + "$RNDC" -c ../common/rndc.conf -p "${CONTROLPORT}" -s "$@" } status=0 @@ -234,7 +234,7 @@ grep "added text" "dig.out.dynamic1.ns3.test$n" > /dev/null 2>&1 || ret=1 dig_with_opts +comm @10.53.0.3 added.dynamic txt > "dig.out.dynamic2.ns3.test$n" grep "NXDOMAIN" "dig.out.dynamic2.ns3.test$n" > /dev/null 2>&1 || ret=1 # using "rndc halt" ensures that we don't dump the zone file -$PERL $SYSTEMTESTTOP/stop.pl --use-rndc --halt --port ${CONTROLPORT} rndc ns3 +$PERL ../stop.pl --use-rndc --halt --port ${CONTROLPORT} rndc ns3 restart check_added_text() { dig_with_opts @10.53.0.3 newtext.dynamic txt > "dig.out.dynamic3.ns3.test$n" || return 1 @@ -259,7 +259,7 @@ END dig_with_opts @10.53.0.3 moretext.dynamic txt > "dig.out.dynamic1.ns3.test$n" grep "more text" "dig.out.dynamic1.ns3.test$n" > /dev/null 2>&1 || ret=1 # using "rndc stop" will cause the zone file to flush before shutdown -$PERL $SYSTEMTESTTOP/stop.pl --use-rndc --port ${CONTROLPORT} rndc ns3 +$PERL ../stop.pl --use-rndc --port ${CONTROLPORT} rndc ns3 rm ns3/*.jnl restart #shellcheck disable=SC2034 diff --git a/bin/tests/system/metadata/setup.sh b/bin/tests/system/metadata/setup.sh index 7d3c46e01e..2433e797ec 100644 --- a/bin/tests/system/metadata/setup.sh +++ b/bin/tests/system/metadata/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh pzone=parent.nil czone=child.parent.nil diff --git a/bin/tests/system/metadata/tests.sh b/bin/tests/system/metadata/tests.sh index 9d4c843eab..0c4394ae05 100644 --- a/bin/tests/system/metadata/tests.sh +++ b/bin/tests/system/metadata/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh pzone=parent.nil pfile=parent.db czone=child.parent.nil cfile=child.db diff --git a/bin/tests/system/mirror/ns1/sign.sh b/bin/tests/system/mirror/ns1/sign.sh index 7487049a27..08f6c1efbf 100644 --- a/bin/tests/system/mirror/ns1/sign.sh +++ b/bin/tests/system/mirror/ns1/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh ( cd ../ns2 && $SHELL -e sign.sh ) diff --git a/bin/tests/system/mirror/ns2/sign.sh b/bin/tests/system/mirror/ns2/sign.sh index 29be15b93e..7d6cbf6c68 100644 --- a/bin/tests/system/mirror/ns2/sign.sh +++ b/bin/tests/system/mirror/ns2/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh keys_to_trust="" diff --git a/bin/tests/system/mirror/setup.sh b/bin/tests/system/mirror/setup.sh index 4141130fd3..c80faeb710 100644 --- a/bin/tests/system/mirror/setup.sh +++ b/bin/tests/system/mirror/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/mirror/tests.sh b/bin/tests/system/mirror/tests.sh index a62767b079..80038efccf 100644 --- a/bin/tests/system/mirror/tests.sh +++ b/bin/tests/system/mirror/tests.sh @@ -9,10 +9,10 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="-p ${PORT} -b 10.53.0.1 +dnssec +time=2 +tries=1 +multi" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" # Wait until the transfer of the given zone to ns3 either completes # successfully or is aborted by a verification failure or a REFUSED response diff --git a/bin/tests/system/mkeys/ns1/sign.sh b/bin/tests/system/mkeys/ns1/sign.sh index f640a6e86c..7200f5c0fc 100644 --- a/bin/tests/system/mkeys/ns1/sign.sh +++ b/bin/tests/system/mkeys/ns1/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone=. zonefile=root.db diff --git a/bin/tests/system/mkeys/ns6/setup.sh b/bin/tests/system/mkeys/ns6/setup.sh index c2ef857d58..18eeb24da6 100644 --- a/bin/tests/system/mkeys/ns6/setup.sh +++ b/bin/tests/system/mkeys/ns6/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone=. zonefile=root.db diff --git a/bin/tests/system/mkeys/setup.sh b/bin/tests/system/mkeys/setup.sh index 8341bcdb45..3e3da8c36f 100644 --- a/bin/tests/system/mkeys/setup.sh +++ b/bin/tests/system/mkeys/setup.sh @@ -9,7 +9,9 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +echo mkeys_beg +. ../conf.sh +echo mkeys_end copy_setports ns1/named1.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/mkeys/tests.sh b/bin/tests/system/mkeys/tests.sh index 4b0a1e0f8d..46dfe7203b 100644 --- a/bin/tests/system/mkeys/tests.sh +++ b/bin/tests/system/mkeys/tests.sh @@ -12,7 +12,7 @@ set -e #shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh dig_with_opts() ( "$DIG" +tcp +noadd +nosea +nostat +nocmd +dnssec -p "${PORT}" "$@" @@ -23,7 +23,7 @@ delv_with_opts() ( ) rndccmd() ( - "$RNDC" -c "$SYSTEMTESTTOP/common/rndc.conf" -p "${CONTROLPORT}" -s "$@" + "$RNDC" -c ../common/rndc.conf -p "${CONTROLPORT}" -s "$@" ) mkeys_reconfig_on() ( diff --git a/bin/tests/system/names/setup.sh b/bin/tests/system/names/setup.sh index 86e4e43549..ae101a1109 100644 --- a/bin/tests/system/names/setup.sh +++ b/bin/tests/system/names/setup.sh @@ -7,6 +7,6 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf diff --git a/bin/tests/system/names/tests.sh b/bin/tests/system/names/tests.sh index 62046b346e..6dbd6b999a 100644 --- a/bin/tests/system/names/tests.sh +++ b/bin/tests/system/names/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+nosea +stat +noquest +nocomm +nocmd -p ${PORT}" diff --git a/bin/tests/system/notify/setup.sh b/bin/tests/system/notify/setup.sh index c371293d70..dc4d3f5a63 100644 --- a/bin/tests/system/notify/setup.sh +++ b/bin/tests/system/notify/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/notify/tests.sh b/bin/tests/system/notify/tests.sh index 151f4f5875..6358312099 100644 --- a/bin/tests/system/notify/tests.sh +++ b/bin/tests/system/notify/tests.sh @@ -9,10 +9,10 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+tcp +noadd +nosea +nostat +noquest +nocomm +nocmd -p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" status=0 n=0 diff --git a/bin/tests/system/nslookup/setup.sh b/bin/tests/system/nslookup/setup.sh index e7a21a6da1..1b0cf15cc7 100644 --- a/bin/tests/system/nslookup/setup.sh +++ b/bin/tests/system/nslookup/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/nslookup/tests.sh b/bin/tests/system/nslookup/tests.sh index a055bc4b07..c1faac5dc5 100644 --- a/bin/tests/system/nslookup/tests.sh +++ b/bin/tests/system/nslookup/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 n=0 diff --git a/bin/tests/system/nsupdate/ns3/sign.sh b/bin/tests/system/nsupdate/ns3/sign.sh index 02dd6deda0..eb7dad6555 100644 --- a/bin/tests/system/nsupdate/ns3/sign.sh +++ b/bin/tests/system/nsupdate/ns3/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone=nsec3param.test. infile=nsec3param.test.db.in diff --git a/bin/tests/system/nsupdate/setup.sh b/bin/tests/system/nsupdate/setup.sh index 2c73a45a9b..b19d9083c5 100644 --- a/bin/tests/system/nsupdate/setup.sh +++ b/bin/tests/system/nsupdate/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh # # jnl and database files MUST be removed before we start diff --git a/bin/tests/system/nsupdate/tests.sh b/bin/tests/system/nsupdate/tests.sh index 8afa71cd90..ceb5782b6b 100755 --- a/bin/tests/system/nsupdate/tests.sh +++ b/bin/tests/system/nsupdate/tests.sh @@ -9,10 +9,10 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="-p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" # # Uncomment when creating credential cache files. @@ -515,7 +515,7 @@ update add updated4.example.nil. 600 A 10.10.10.3 send END sleep 3 -$PERL $SYSTEMTESTTOP/stop.pl --use-rndc --port ${CONTROLPORT} nsupdate ns1 +$PERL ../stop.pl --use-rndc --port ${CONTROLPORT} nsupdate ns1 sleep 3 # Removing the journal file and restarting the server means # that the data served by the new server process are exactly diff --git a/bin/tests/system/nzd2nzf/setup.sh b/bin/tests/system/nzd2nzf/setup.sh index 0f5767dceb..7b8f53bfd5 100644 --- a/bin/tests/system/nzd2nzf/setup.sh +++ b/bin/tests/system/nzd2nzf/setup.sh @@ -9,6 +9,6 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf diff --git a/bin/tests/system/nzd2nzf/tests.sh b/bin/tests/system/nzd2nzf/tests.sh index c9c17acb71..d4cf213cfd 100644 --- a/bin/tests/system/nzd2nzf/tests.sh +++ b/bin/tests/system/nzd2nzf/tests.sh @@ -7,14 +7,14 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh dig_with_opts() { "$DIG" -p "${PORT}" "$@" } rndccmd() { - "$RNDC" -c "$SYSTEMTESTTOP/common/rndc.conf" -p "${CONTROLPORT}" -s "$@" + "$RNDC" -c ../common/rndc.conf -p "${CONTROLPORT}" -s "$@" } status=0 @@ -43,7 +43,7 @@ if [ $ret != 0 ]; then echo_i "failed"; fi status=$((status+ret)) echo_i "stopping ns1" -$PERL $SYSTEMTESTTOP/stop.pl nzd2nzf ns1 +$PERL ../stop.pl nzd2nzf ns1 n=$((n+1)) echo_i "dumping _default.nzd to _default.nzf ($n)" diff --git a/bin/tests/system/padding/setup.sh b/bin/tests/system/padding/setup.sh index a968818c78..234c452925 100644 --- a/bin/tests/system/padding/setup.sh +++ b/bin/tests/system/padding/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL ./clean.sh diff --git a/bin/tests/system/padding/tests.sh b/bin/tests/system/padding/tests.sh index 4815bf954a..9a3aa11e85 100644 --- a/bin/tests/system/padding/tests.sh +++ b/bin/tests/system/padding/tests.sh @@ -9,13 +9,13 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh n=0 status=0 DIGOPTS="-p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" getcookie() { awk '$2 == "COOKIE:" { diff --git a/bin/tests/system/pending/ns1/sign.sh b/bin/tests/system/pending/ns1/sign.sh index d63fa0371c..707c79526f 100644 --- a/bin/tests/system/pending/ns1/sign.sh +++ b/bin/tests/system/pending/ns1/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone=. infile=root.db.in diff --git a/bin/tests/system/pending/ns2/sign.sh b/bin/tests/system/pending/ns2/sign.sh index 0d8baf3a3a..38acf40169 100644 --- a/bin/tests/system/pending/ns2/sign.sh +++ b/bin/tests/system/pending/ns2/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh for domain in example example.com; do zone=${domain}. diff --git a/bin/tests/system/pending/setup.sh b/bin/tests/system/pending/setup.sh index 183fcc36ec..11371c7d2d 100644 --- a/bin/tests/system/pending/setup.sh +++ b/bin/tests/system/pending/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/pending/tests.sh b/bin/tests/system/pending/tests.sh index 529ea1bf34..dc06dd4c58 100644 --- a/bin/tests/system/pending/tests.sh +++ b/bin/tests/system/pending/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh # replace_data dname RR old_data new_data replace_data() diff --git a/bin/tests/system/pipelined/setup.sh b/bin/tests/system/pipelined/setup.sh index 64eb4ef2ad..f1f1d4af37 100644 --- a/bin/tests/system/pipelined/setup.sh +++ b/bin/tests/system/pipelined/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/pipelined/tests.sh b/bin/tests/system/pipelined/tests.sh index 3f3468004a..be2b469a22 100644 --- a/bin/tests/system/pipelined/tests.sh +++ b/bin/tests/system/pipelined/tests.sh @@ -9,10 +9,10 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh MDIGOPTS="-p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" status=0 diff --git a/bin/tests/system/pkcs11/setup.sh b/bin/tests/system/pkcs11/setup.sh index bc85fc75d0..5de6f4a17e 100644 --- a/bin/tests/system/pkcs11/setup.sh +++ b/bin/tests/system/pkcs11/setup.sh @@ -12,7 +12,7 @@ set -eu # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh echo_i "Generating keys for Native PKCS#11" >&2 @@ -63,7 +63,7 @@ for algbits in rsasha256:2048 rsasha512:2048 ecdsap256sha256:256 ecdsap384sha384 bits=$(echo "$algbits" | cut -f 2 -d :) zone="$alg.example" zonefile="ns1/$alg.example.db" - if $SHELL "$SYSTEMTESTTOP/testcrypto.sh" "$alg"; then + if $SHELL ../testcrypto.sh "$alg"; then echo "$alg" >> supported algs="$algs$alg " diff --git a/bin/tests/system/pkcs11/tests.sh b/bin/tests/system/pkcs11/tests.sh index 98b33c08f1..70962ceae0 100644 --- a/bin/tests/system/pkcs11/tests.sh +++ b/bin/tests/system/pkcs11/tests.sh @@ -12,7 +12,7 @@ set -e # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh count_rrsigs() ( grep -c "IN[[:space:]]*RRSIG" "$@" || true diff --git a/bin/tests/system/qmin/setup.sh b/bin/tests/system/qmin/setup.sh index 0ad125d62b..8484b8ede5 100644 --- a/bin/tests/system/qmin/setup.sh +++ b/bin/tests/system/qmin/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns5/named.conf.in ns5/named.conf diff --git a/bin/tests/system/qmin/tests.sh b/bin/tests/system/qmin/tests.sh index afb73603d9..59c06e9bbf 100755 --- a/bin/tests/system/qmin/tests.sh +++ b/bin/tests/system/qmin/tests.sh @@ -9,10 +9,10 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="-p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" CLEANQL="rm -f ans*/query.log" status=0 n=0 diff --git a/bin/tests/system/reclimit/setup.sh b/bin/tests/system/reclimit/setup.sh index c80a5c79a3..166f30617a 100644 --- a/bin/tests/system/reclimit/setup.sh +++ b/bin/tests/system/reclimit/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns3/named1.conf.in ns3/named.conf diff --git a/bin/tests/system/reclimit/tests.sh b/bin/tests/system/reclimit/tests.sh index 9ee737ec5b..890ea6cf68 100644 --- a/bin/tests/system/reclimit/tests.sh +++ b/bin/tests/system/reclimit/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="-p ${PORT}" diff --git a/bin/tests/system/redirect/ns1/sign.sh b/bin/tests/system/redirect/ns1/sign.sh index cf295c42e8..820639529e 100644 --- a/bin/tests/system/redirect/ns1/sign.sh +++ b/bin/tests/system/redirect/ns1/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone=signed infile=example.db diff --git a/bin/tests/system/redirect/ns3/sign.sh b/bin/tests/system/redirect/ns3/sign.sh index cf295c42e8..820639529e 100644 --- a/bin/tests/system/redirect/ns3/sign.sh +++ b/bin/tests/system/redirect/ns3/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone=signed infile=example.db diff --git a/bin/tests/system/redirect/ns5/sign.sh b/bin/tests/system/redirect/ns5/sign.sh index 2236dfc931..ca5340e469 100644 --- a/bin/tests/system/redirect/ns5/sign.sh +++ b/bin/tests/system/redirect/ns5/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh # We sign the zone here and move the signed zone to ns6. # The ns5 server actually does not serve this zone but diff --git a/bin/tests/system/redirect/setup.sh b/bin/tests/system/redirect/setup.sh index 3b35510a2f..4375067972 100644 --- a/bin/tests/system/redirect/setup.sh +++ b/bin/tests/system/redirect/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/redirect/tests.sh b/bin/tests/system/redirect/tests.sh index e720db3b1e..5d08590464 100644 --- a/bin/tests/system/redirect/tests.sh +++ b/bin/tests/system/redirect/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 n=1 @@ -17,7 +17,7 @@ n=1 rm -f dig.out.* DIGOPTS="+tcp +noadd +nosea +nostat +nocmd -p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" for conf in conf/good*.conf do diff --git a/bin/tests/system/resolver/ns6/keygen.sh b/bin/tests/system/resolver/ns6/keygen.sh index 5b6ad516d7..ad225ec17d 100644 --- a/bin/tests/system/resolver/ns6/keygen.sh +++ b/bin/tests/system/resolver/ns6/keygen.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone=ds.example.net zonefile="${zone}.db" diff --git a/bin/tests/system/resolver/setup.sh b/bin/tests/system/resolver/setup.sh index cf1f0f4591..dfa3e38575 100644 --- a/bin/tests/system/resolver/setup.sh +++ b/bin/tests/system/resolver/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh cp ns4/tld1.db ns4/tld.db cp ns6/to-be-removed.tld.db.in ns6/to-be-removed.tld.db diff --git a/bin/tests/system/resolver/tests.sh b/bin/tests/system/resolver/tests.sh index e9469ca27b..999c2c373c 100755 --- a/bin/tests/system/resolver/tests.sh +++ b/bin/tests/system/resolver/tests.sh @@ -9,12 +9,12 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh echo . DIGOPTS="-p ${PORT}" RESOLVOPTS="-p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" status=0 n=0 diff --git a/bin/tests/system/rndc/setup.sh b/bin/tests/system/rndc/setup.sh index c15ac085fb..7a8160e1ff 100644 --- a/bin/tests/system/rndc/setup.sh +++ b/bin/tests/system/rndc/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL ${TOP_SRCDIR}/bin/tests/system/genzone.sh 2 >ns2/nil.db $SHELL ${TOP_SRCDIR}/bin/tests/system/genzone.sh 2 >ns2/other.db diff --git a/bin/tests/system/rndc/tests.sh b/bin/tests/system/rndc/tests.sh index d3fc9bef30..7142e645d4 100644 --- a/bin/tests/system/rndc/tests.sh +++ b/bin/tests/system/rndc/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+tcp +noadd +nosea +nostat +noquest +nocomm +nocmd" DIGCMD="$DIG $DIGOPTS @10.53.0.2 -p ${PORT}" diff --git a/bin/tests/system/rootkeysentinel/ns1/sign.sh b/bin/tests/system/rootkeysentinel/ns1/sign.sh index 340e02407f..cf1ca16bf3 100644 --- a/bin/tests/system/rootkeysentinel/ns1/sign.sh +++ b/bin/tests/system/rootkeysentinel/ns1/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone=. infile=root.db.in diff --git a/bin/tests/system/rootkeysentinel/ns2/sign.sh b/bin/tests/system/rootkeysentinel/ns2/sign.sh index e847ac33fe..fa03c900a3 100644 --- a/bin/tests/system/rootkeysentinel/ns2/sign.sh +++ b/bin/tests/system/rootkeysentinel/ns2/sign.sh @@ -15,7 +15,7 @@ newid=`expr "0000${newid}" : '.*\(.....\)$'` badid=`expr \( ${oldid} + 7777 \) % 65536` badid=`expr "0000${badid}" : '.*\(.....\)$'` -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone=example. infile=example.db.in diff --git a/bin/tests/system/rootkeysentinel/setup.sh b/bin/tests/system/rootkeysentinel/setup.sh index 43b159c8c7..b758a31d04 100644 --- a/bin/tests/system/rootkeysentinel/setup.sh +++ b/bin/tests/system/rootkeysentinel/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/rootkeysentinel/tests.sh b/bin/tests/system/rootkeysentinel/tests.sh index 8aa5ba8d91..9b416df841 100644 --- a/bin/tests/system/rootkeysentinel/tests.sh +++ b/bin/tests/system/rootkeysentinel/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 n=0 diff --git a/bin/tests/system/rpz/ckdnsrps.sh b/bin/tests/system/rpz/ckdnsrps.sh index adb8f7da9b..fd0287a172 100644 --- a/bin/tests/system/rpz/ckdnsrps.sh +++ b/bin/tests/system/rpz/ckdnsrps.sh @@ -17,7 +17,7 @@ set -e # and differ from dnsrpz.conf which is used by dnsrpzd. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DNSRPS_CMD=../rpz/dnsrps diff --git a/bin/tests/system/rpz/setup.sh b/bin/tests/system/rpz/setup.sh index 2ad1d44513..64146a4a6e 100644 --- a/bin/tests/system/rpz/setup.sh +++ b/bin/tests/system/rpz/setup.sh @@ -13,7 +13,7 @@ set -e -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh QPERF=`$SHELL qperf.sh` diff --git a/bin/tests/system/rpz/tests.sh b/bin/tests/system/rpz/tests.sh index 4edd5f5137..9ede495d70 100644 --- a/bin/tests/system/rpz/tests.sh +++ b/bin/tests/system/rpz/tests.sh @@ -14,7 +14,7 @@ # touch dnsrps-off to not test with DNSRPS # touch dnsrps-only to not test with classic RPZ -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh ns=10.53.0 ns1=$ns.1 # root, defining the others @@ -60,7 +60,7 @@ comment () { } DNSRPSCMD=./dnsrps -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" if test -x $DNSRPSCMD; then # speed up the many delays for dnsrpzd by waiting only 0.1 seconds @@ -320,7 +320,7 @@ ckresult () { elif grep "flags:.* aa .*ad;" $DIGNM; then setret "'dig $1' AD set;" fi - if $PERL $SYSTEMTESTTOP/digcomp.pl $DIGNM $2 >/dev/null; then + if $PERL ../digcomp.pl $DIGNM $2 >/dev/null; then NEED_TCP=`echo "$1" | sed -n -e 's/[Tt][Cc][Pp].*/TCP/p'` RESULT_TCP=`sed -n -e 's/.*Truncated, retrying in TCP.*/TCP/p' $DIGNM` if test "$NEED_TCP" != "$RESULT_TCP"; then @@ -467,7 +467,7 @@ for mode in native dnsrps; do continue fi echo_i "attempting to configure servers with DNSRPS..." - $PERL $SYSTEMTESTTOP/stop.pl --use-rndc --port ${CONTROLPORT} rpz + $PERL ../stop.pl --use-rndc --port ${CONTROLPORT} rpz $SHELL ./setup.sh -N -D $DEBUG for server in ns*; do resetstats $server @@ -785,7 +785,7 @@ EOF # restart the main test RPZ server to see if that creates a core file if test -z "$HAVE_CORE"; then - $PERL $SYSTEMTESTTOP/stop.pl --use-rndc --port ${CONTROLPORT} rpz ns3 + $PERL ../stop.pl --use-rndc --port ${CONTROLPORT} rpz ns3 restart 3 "rebuild-bl-rpz" HAVE_CORE=`find ns* -name '*core*' -print` test -z "$HAVE_CORE" || setret "found $HAVE_CORE; memory leak?" @@ -805,11 +805,11 @@ EOF # restart the main test RPZ server with a bad zone. t=`expr $t + 1` echo_i "checking that ns3 with broken rpz does not crash (${t})" - $PERL $SYSTEMTESTTOP/stop.pl --use-rndc --port ${CONTROLPORT} rpz ns3 + $PERL ../stop.pl --use-rndc --port ${CONTROLPORT} rpz ns3 cp ns3/broken.db.in ns3/bl.db restart 3 # do not rebuild rpz zones nocrash a3-1.tld2 -tA - $PERL $SYSTEMTESTTOP/stop.pl --use-rndc --port ${CONTROLPORT} rpz ns3 + $PERL ../stop.pl --use-rndc --port ${CONTROLPORT} rpz ns3 restart 3 "rebuild-bl-rpz" # reload a RPZ zone that is now deliberately broken. diff --git a/bin/tests/system/rpzextra/setup.sh b/bin/tests/system/rpzextra/setup.sh index 1c0d9b9d49..762e2208b8 100644 --- a/bin/tests/system/rpzextra/setup.sh +++ b/bin/tests/system/rpzextra/setup.sh @@ -13,8 +13,7 @@ set -e -SYSTEMTESTTOP=.. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/rpzrecurse/setup.sh b/bin/tests/system/rpzrecurse/setup.sh index 267f5dc21b..44c46f051f 100644 --- a/bin/tests/system/rpzrecurse/setup.sh +++ b/bin/tests/system/rpzrecurse/setup.sh @@ -13,7 +13,7 @@ set -e -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh USAGE="$0: [-DNx]" DEBUG= diff --git a/bin/tests/system/rpzrecurse/tests.sh b/bin/tests/system/rpzrecurse/tests.sh index 43b2b4a50a..a8436c41f7 100644 --- a/bin/tests/system/rpzrecurse/tests.sh +++ b/bin/tests/system/rpzrecurse/tests.sh @@ -12,7 +12,7 @@ # touch dnsrps-off to not test with DNSRPS # touch dnsrps-only to not test with classic RPZ -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 @@ -38,14 +38,14 @@ fi trap 'exit 1' 1 2 15 DNSRPSCMD=../rpz/dnsrps -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" # $1 = test name (such as 1a, 1b, etc. for which named.$1.conf exists) run_server() { TESTNAME=$1 echo_i "stopping resolver" - $PERL $SYSTEMTESTTOP/stop.pl --use-rndc --port ${CONTROLPORT} rpzrecurse ns2 + $PERL ../stop.pl --use-rndc --port ${CONTROLPORT} rpzrecurse ns2 sleep 1 @@ -121,7 +121,7 @@ for mode in native dnsrps; do continue fi echo_i "attempting to configure servers with DNSRPS..." - $PERL $SYSTEMTESTTOP/stop.pl --use-rndc --port ${CONTROLPORT} rpzrecurse + $PERL ../stop.pl --use-rndc --port ${CONTROLPORT} rpzrecurse $SHELL ./setup.sh -N -D $DEBUG sed -n 's/^## //p' dnsrps.conf | cat_i if grep '^#fail' dnsrps.conf >/dev/null; then diff --git a/bin/tests/system/rrchecker/tests.sh b/bin/tests/system/rrchecker/tests.sh index e5b4fe84cc..13f46ae230 100644 --- a/bin/tests/system/rrchecker/tests.sh +++ b/bin/tests/system/rrchecker/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 n=0 diff --git a/bin/tests/system/rrl/setup.sh b/bin/tests/system/rrl/setup.sh index 64eb4ef2ad..f1f1d4af37 100644 --- a/bin/tests/system/rrl/setup.sh +++ b/bin/tests/system/rrl/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/rrl/tests.sh b/bin/tests/system/rrl/tests.sh index dd526d7b2c..b415a17ffd 100644 --- a/bin/tests/system/rrl/tests.sh +++ b/bin/tests/system/rrl/tests.sh @@ -9,9 +9,9 @@ # test response rate limiting -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" #set -x diff --git a/bin/tests/system/rrsetorder/setup.sh b/bin/tests/system/rrsetorder/setup.sh index f3c0bd3519..6ecdf0282e 100644 --- a/bin/tests/system/rrsetorder/setup.sh +++ b/bin/tests/system/rrsetorder/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh copy_setports ns1/named.conf.in ns1/named.conf diff --git a/bin/tests/system/rrsetorder/tests.sh b/bin/tests/system/rrsetorder/tests.sh index a3450f1a38..f221ddb205 100644 --- a/bin/tests/system/rrsetorder/tests.sh +++ b/bin/tests/system/rrsetorder/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short +nocookie" DIGCMD="$DIG $DIGOPTS -p ${PORT}" diff --git a/bin/tests/system/rsabigexponent/ns1/sign.sh b/bin/tests/system/rsabigexponent/ns1/sign.sh index a50cb40767..614a8ec475 100755 --- a/bin/tests/system/rsabigexponent/ns1/sign.sh +++ b/bin/tests/system/rsabigexponent/ns1/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone=. infile=root.db.in diff --git a/bin/tests/system/rsabigexponent/ns2/sign.sh b/bin/tests/system/rsabigexponent/ns2/sign.sh index 82e51c61f7..7e6ca13f77 100755 --- a/bin/tests/system/rsabigexponent/ns2/sign.sh +++ b/bin/tests/system/rsabigexponent/ns2/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone=example. infile=example.db.in diff --git a/bin/tests/system/rsabigexponent/setup.sh b/bin/tests/system/rsabigexponent/setup.sh index 1c6233eac0..88e881a177 100644 --- a/bin/tests/system/rsabigexponent/setup.sh +++ b/bin/tests/system/rsabigexponent/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/rsabigexponent/tests.sh b/bin/tests/system/rsabigexponent/tests.sh index 80b618b923..f5d00891cb 100644 --- a/bin/tests/system/rsabigexponent/tests.sh +++ b/bin/tests/system/rsabigexponent/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 diff --git a/bin/tests/system/run.sh.in b/bin/tests/system/run.sh.in index 1a04a9ae0d..c59a3e2cfd 100644 --- a/bin/tests/system/run.sh.in +++ b/bin/tests/system/run.sh.in @@ -25,12 +25,6 @@ if [ "$(id -u)" -eq "0" ] && [ "@DEVELOPER_MODE@" != "yes" ]; then exit 1 fi -SYSTEMTESTTOP="$(cd -P -- "${builddir}" && pwd -P)" -if [ "$CYGWIN" ]; then - SYSTEMTESTTOP="$(cygpath -m "${SYSTEMTESTTOP}")" -fi - -export SYSTEMTESTTOP export builddir export srcdir @@ -97,6 +91,12 @@ if [ "${srcdir}" != "${builddir}" ]; then if [ ! -d common ] || [ ! -r common/.prepared ]; then cp -a "${srcdir}/common" "${builddir}" fi + # Some tests require additional files to work for out-of-tree test runs. + for file in ckdnsrps.sh digcomp.pl ditch.pl packet.pl start.pl stop.pl; do + if [ ! -r "${file}" ]; then + cp -a "${srcdir}/${file}" "${builddir}" + fi + done if [ ! -d "$systest" ] || [ ! -r "$systest/.prepared" ]; then mkdir -p "${builddir}/$systest" cp -a "${srcdir}/$systest" "${builddir}/" diff --git a/bin/tests/system/runall.sh b/bin/tests/system/runall.sh index 5f20e16669..2f0c3a3dbc 100755 --- a/bin/tests/system/runall.sh +++ b/bin/tests/system/runall.sh @@ -24,8 +24,7 @@ # (This is ignored when running on Windows as the tests are always # run sequentially on that platform.) -SYSTEMTESTTOP=. -. "$SYSTEMTESTTOP/conf.sh" +. ./conf.sh usage="Usage: ./runall.sh [-c] [-n] [numprocesses]" diff --git a/bin/tests/system/runsequential.sh b/bin/tests/system/runsequential.sh index f3f168e479..4f01a63c0b 100755 --- a/bin/tests/system/runsequential.sh +++ b/bin/tests/system/runsequential.sh @@ -16,8 +16,7 @@ # is the only one running on an IP address. # -SYSTEMTESTTOP=. -. "$SYSTEMTESTTOP/conf.sh" +. ./conf.sh for d in $SEQUENTIALDIRS do diff --git a/bin/tests/system/runtime/setup.sh b/bin/tests/system/runtime/setup.sh index c759fc6c5a..8721f12273 100644 --- a/bin/tests/system/runtime/setup.sh +++ b/bin/tests/system/runtime/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/runtime/tests.sh b/bin/tests/system/runtime/tests.sh index f46924acdd..9e63d77a91 100644 --- a/bin/tests/system/runtime/tests.sh +++ b/bin/tests/system/runtime/tests.sh @@ -10,11 +10,11 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh set -e -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" kill_named() { pidfile="${1}" diff --git a/bin/tests/system/serve-stale/setup.sh b/bin/tests/system/serve-stale/setup.sh index f0ac9e60f7..963278e976 100644 --- a/bin/tests/system/serve-stale/setup.sh +++ b/bin/tests/system/serve-stale/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/serve-stale/tests.sh b/bin/tests/system/serve-stale/tests.sh index c85fcfe28a..7c9de93bdd 100755 --- a/bin/tests/system/serve-stale/tests.sh +++ b/bin/tests/system/serve-stale/tests.sh @@ -9,9 +9,9 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" # wait up to ten seconds to ensure that a file has been written waitfile () { @@ -1037,7 +1037,7 @@ status=$((status+ret)) if [ $ret != 0 ]; then echo_i "failed"; fi echo_i "stop ns4" -$PERL $SYSTEMTESTTOP/stop.pl --use-rndc --port ${CONTROLPORT} serve-stale ns4 +$PERL ../stop.pl --use-rndc --port ${CONTROLPORT} serve-stale ns4 # Load the cache as if it was five minutes (RBTDB_VIRTUAL) older. # Since max-stale-ttl defaults to a week, we need to adjust the date by diff --git a/bin/tests/system/setup.sh b/bin/tests/system/setup.sh index ff8c1bd2aa..0dd67c9af5 100644 --- a/bin/tests/system/setup.sh +++ b/bin/tests/system/setup.sh @@ -13,8 +13,7 @@ # Run a system test. # -SYSTEMTESTTOP=. -. $SYSTEMTESTTOP/conf.sh +. ./conf.sh test $# -gt 0 || { echo "usage: $0 test-directory" >&2; exit 1; } diff --git a/bin/tests/system/sfcache/ns1/sign.sh b/bin/tests/system/sfcache/ns1/sign.sh index 7e5b2b3bed..2ae6153e98 100644 --- a/bin/tests/system/sfcache/ns1/sign.sh +++ b/bin/tests/system/sfcache/ns1/sign.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh set -e diff --git a/bin/tests/system/sfcache/ns2/sign.sh b/bin/tests/system/sfcache/ns2/sign.sh index 11f866abb2..5d1a4ecbd5 100644 --- a/bin/tests/system/sfcache/ns2/sign.sh +++ b/bin/tests/system/sfcache/ns2/sign.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh set -e diff --git a/bin/tests/system/sfcache/ns5/sign.sh b/bin/tests/system/sfcache/ns5/sign.sh index 82b4301804..026e0119ae 100644 --- a/bin/tests/system/sfcache/ns5/sign.sh +++ b/bin/tests/system/sfcache/ns5/sign.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh set -e diff --git a/bin/tests/system/sfcache/setup.sh b/bin/tests/system/sfcache/setup.sh index ec795d2d60..53311f5470 100644 --- a/bin/tests/system/sfcache/setup.sh +++ b/bin/tests/system/sfcache/setup.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh set -e diff --git a/bin/tests/system/sfcache/tests.sh b/bin/tests/system/sfcache/tests.sh index 51e2da1430..09ecfb8dc5 100644 --- a/bin/tests/system/sfcache/tests.sh +++ b/bin/tests/system/sfcache/tests.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh set -e @@ -24,7 +24,7 @@ dig_with_opts() { } rndc_with_opts() { - "$RNDC" -c "$SYSTEMTESTTOP/common/rndc.conf" -p "$CONTROLPORT" -s "$@" + "$RNDC" -c ../common/rndc.conf -p "$CONTROLPORT" -s "$@" } echo_i "checking DNSSEC SERVFAIL is cached ($n)" diff --git a/bin/tests/system/shutdown/setup.sh b/bin/tests/system/shutdown/setup.sh index a5a30d57df..7bf6072070 100644 --- a/bin/tests/system/shutdown/setup.sh +++ b/bin/tests/system/shutdown/setup.sh @@ -13,8 +13,7 @@ set -e -SYSTEMTESTTOP=.. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/shutdown/tests-shutdown.py b/bin/tests/system/shutdown/tests-shutdown.py index 69eefd11ce..623aa29fd4 100755 --- a/bin/tests/system/shutdown/tests-shutdown.py +++ b/bin/tests/system/shutdown/tests-shutdown.py @@ -140,11 +140,8 @@ def test_named_shutdown(named_port, control_port): rndc = os.getenv("RNDC") assert rndc is not None - systest_dir = os.getenv("SYSTEMTESTTOP") - assert systest_dir is not None - - # rndc configuration resides in $SYSTEMTESTTOP/common/rndc.conf - rndc_cfg = os.path.join(systest_dir, "common", "rndc.conf") + # rndc configuration resides in ../common/rndc.conf + rndc_cfg = os.path.join("..", "common", "rndc.conf") assert os.path.isfile(rndc_cfg) # rndc command with default arguments. diff --git a/bin/tests/system/smartsign/tests.sh b/bin/tests/system/smartsign/tests.sh index c08c1f1b74..e09e8856cb 100644 --- a/bin/tests/system/smartsign/tests.sh +++ b/bin/tests/system/smartsign/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 diff --git a/bin/tests/system/sortlist/setup.sh b/bin/tests/system/sortlist/setup.sh index 0f5767dceb..7b8f53bfd5 100644 --- a/bin/tests/system/sortlist/setup.sh +++ b/bin/tests/system/sortlist/setup.sh @@ -9,6 +9,6 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf diff --git a/bin/tests/system/sortlist/tests.sh b/bin/tests/system/sortlist/tests.sh index a20dc3f66c..6cda1a3f3d 100644 --- a/bin/tests/system/sortlist/tests.sh +++ b/bin/tests/system/sortlist/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+tcp +noadd +nosea +nostat +noquest +noauth +nocomm +nocmd -p ${PORT}" diff --git a/bin/tests/system/spf/setup.sh b/bin/tests/system/spf/setup.sh index 0f5767dceb..7b8f53bfd5 100644 --- a/bin/tests/system/spf/setup.sh +++ b/bin/tests/system/spf/setup.sh @@ -9,6 +9,6 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf diff --git a/bin/tests/system/spf/tests.sh b/bin/tests/system/spf/tests.sh index 27af97a356..bafbb431cb 100644 --- a/bin/tests/system/spf/tests.sh +++ b/bin/tests/system/spf/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh n=1 status=0 diff --git a/bin/tests/system/staticstub/ns3/sign.sh b/bin/tests/system/staticstub/ns3/sign.sh index cd7e13f2f4..b76e43fa97 100755 --- a/bin/tests/system/staticstub/ns3/sign.sh +++ b/bin/tests/system/staticstub/ns3/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone=example. infile=example.db.in diff --git a/bin/tests/system/staticstub/ns4/sign.sh b/bin/tests/system/staticstub/ns4/sign.sh index 2f5dbf05ab..fd01039b8e 100755 --- a/bin/tests/system/staticstub/ns4/sign.sh +++ b/bin/tests/system/staticstub/ns4/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone=sub.example infile=${zone}.db.in diff --git a/bin/tests/system/staticstub/setup.sh b/bin/tests/system/staticstub/setup.sh index b2af609891..a127b2fd35 100755 --- a/bin/tests/system/staticstub/setup.sh +++ b/bin/tests/system/staticstub/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in tmp diff --git a/bin/tests/system/staticstub/tests.sh b/bin/tests/system/staticstub/tests.sh index e487ff298c..0a8e26a2bc 100755 --- a/bin/tests/system/staticstub/tests.sh +++ b/bin/tests/system/staticstub/tests.sh @@ -9,10 +9,10 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="-p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" status=0 n=0 diff --git a/bin/tests/system/statistics/setup.sh b/bin/tests/system/statistics/setup.sh index e683db06d9..aadae5085b 100644 --- a/bin/tests/system/statistics/setup.sh +++ b/bin/tests/system/statistics/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/statistics/tests.sh b/bin/tests/system/statistics/tests.sh index 5347ade54e..eaa7b676bd 100644 --- a/bin/tests/system/statistics/tests.sh +++ b/bin/tests/system/statistics/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+tcp +noadd +nosea +nostat +noquest +nocomm +nocmd" DIGCMD="$DIG $DIGOPTS -p ${PORT}" diff --git a/bin/tests/system/statschannel/ns2/sign.sh b/bin/tests/system/statschannel/ns2/sign.sh index f772c0f2b1..8f7aa57c69 100644 --- a/bin/tests/system/statschannel/ns2/sign.sh +++ b/bin/tests/system/statschannel/ns2/sign.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh set -e diff --git a/bin/tests/system/statschannel/setup.sh b/bin/tests/system/statschannel/setup.sh index 2ce6fde81d..b899186ce7 100644 --- a/bin/tests/system/statschannel/setup.sh +++ b/bin/tests/system/statschannel/setup.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh for conf in ns*/named.conf.in; do copy_setports "$conf" "$(dirname "$conf")/$(basename "$conf" .in)" diff --git a/bin/tests/system/statschannel/tests.sh b/bin/tests/system/statschannel/tests.sh index 8bac41fa86..0a0376d73a 100644 --- a/bin/tests/system/statschannel/tests.sh +++ b/bin/tests/system/statschannel/tests.sh @@ -10,10 +10,10 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh DIGCMD="$DIG @10.53.0.2 -p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" if [ ! "$HAVEJSONSTATS" ] then diff --git a/bin/tests/system/stopall.sh b/bin/tests/system/stopall.sh index d9b57e0f92..65de1419a2 100644 --- a/bin/tests/system/stopall.sh +++ b/bin/tests/system/stopall.sh @@ -13,8 +13,7 @@ # Stop all hanging processes from any system tests. # -SYSTEMTESTTOP=. -. $SYSTEMTESTTOP/conf.sh +. ./conf.sh for d in $SUBDIRS do diff --git a/bin/tests/system/stress/setup.sh b/bin/tests/system/stress/setup.sh index dab4b9a46f..c34469e741 100644 --- a/bin/tests/system/stress/setup.sh +++ b/bin/tests/system/stress/setup.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh # # Set up test data for zone transfer quota tests. diff --git a/bin/tests/system/stress/tests.sh b/bin/tests/system/stress/tests.sh index 08edd332aa..40cb0630fa 100644 --- a/bin/tests/system/stress/tests.sh +++ b/bin/tests/system/stress/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 diff --git a/bin/tests/system/stub/setup.sh b/bin/tests/system/stub/setup.sh index e683db06d9..aadae5085b 100644 --- a/bin/tests/system/stub/setup.sh +++ b/bin/tests/system/stub/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/stub/tests.sh b/bin/tests/system/stub/tests.sh index 20f2b3a24d..71464dbe0b 100644 --- a/bin/tests/system/stub/tests.sh +++ b/bin/tests/system/stub/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+tcp -p ${PORT}" @@ -52,7 +52,7 @@ digcomp knowngood.dig.out.rec dig.out.ns3 || ret=1 [ $pass = 1 ] && { echo_i "stopping stub server" - $PERL $SYSTEMTESTTOP/stop.pl stub ns3 + $PERL ../stop.pl stub ns3 echo_i "re-starting stub server" start_server --noclean --restart --port ${PORT} stub ns3 diff --git a/bin/tests/system/synthfromdnssec/ns1/sign.sh b/bin/tests/system/synthfromdnssec/ns1/sign.sh index b45c577fd4..5706906b03 100644 --- a/bin/tests/system/synthfromdnssec/ns1/sign.sh +++ b/bin/tests/system/synthfromdnssec/ns1/sign.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh zone=example infile=example.db.in diff --git a/bin/tests/system/synthfromdnssec/setup.sh b/bin/tests/system/synthfromdnssec/setup.sh index fe77278c47..ddc1c0e677 100644 --- a/bin/tests/system/synthfromdnssec/setup.sh +++ b/bin/tests/system/synthfromdnssec/setup.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh set -e diff --git a/bin/tests/system/synthfromdnssec/tests.sh b/bin/tests/system/synthfromdnssec/tests.sh index d5ea27298a..a75921cab5 100644 --- a/bin/tests/system/synthfromdnssec/tests.sh +++ b/bin/tests/system/synthfromdnssec/tests.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh set -e diff --git a/bin/tests/system/tcp/setup.sh b/bin/tests/system/tcp/setup.sh index dc9bb97edb..f3aae197ef 100644 --- a/bin/tests/system/tcp/setup.sh +++ b/bin/tests/system/tcp/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/tcp/tests.sh b/bin/tests/system/tcp/tests.sh index a659019678..0f4deb8e37 100644 --- a/bin/tests/system/tcp/tests.sh +++ b/bin/tests/system/tcp/tests.sh @@ -12,7 +12,7 @@ set -e # shellcheck source=../conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh dig_with_opts() { "${DIG}" -p "${PORT}" "$@" diff --git a/bin/tests/system/testcrypto.sh b/bin/tests/system/testcrypto.sh index c4d34ad7c3..8cb8b79ea2 100644 --- a/bin/tests/system/testcrypto.sh +++ b/bin/tests/system/testcrypto.sh @@ -9,8 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -SYSTEMTESTTOP=${SYSTEMTESTTOP:=..} -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh prog=$0 diff --git a/bin/tests/system/testsummary.sh b/bin/tests/system/testsummary.sh index 64a99fd4c7..dbd8684c69 100644 --- a/bin/tests/system/testsummary.sh +++ b/bin/tests/system/testsummary.sh @@ -24,8 +24,7 @@ # 0 - no tests failed # 1 - one or more tests failed -SYSTEMTESTTOP=. -. "$SYSTEMTESTTOP/conf.sh" +. ./conf.sh keepfile=0 diff --git a/bin/tests/system/tkey/ns1/setup.sh b/bin/tests/system/tkey/ns1/setup.sh index a8f43ca300..ed81258072 100644 --- a/bin/tests/system/tkey/ns1/setup.sh +++ b/bin/tests/system/tkey/ns1/setup.sh @@ -11,7 +11,7 @@ set -e -. "$SYSTEMTESTTOP/conf.sh" +. ../../conf.sh keyname=$($KEYGEN -T KEY -a DH -b 768 -n host server) keyid=$(keyfile_to_key_id "$keyname") diff --git a/bin/tests/system/tkey/setup.sh b/bin/tests/system/tkey/setup.sh index 014c1eb18f..4c63bc7784 100644 --- a/bin/tests/system/tkey/setup.sh +++ b/bin/tests/system/tkey/setup.sh @@ -11,7 +11,7 @@ set -e -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf diff --git a/bin/tests/system/tkey/tests.sh b/bin/tests/system/tkey/tests.sh index f7d816e372..a48d078e5a 100644 --- a/bin/tests/system/tkey/tests.sh +++ b/bin/tests/system/tkey/tests.sh @@ -11,7 +11,7 @@ set -e -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh dig_with_opts() { "$DIG" @10.53.0.1 -p "$PORT" "$@" diff --git a/bin/tests/system/tools/setup.sh b/bin/tests/system/tools/setup.sh index 5079232741..357727e143 100644 --- a/bin/tests/system/tools/setup.sh +++ b/bin/tests/system/tools/setup.sh @@ -10,6 +10,6 @@ # information regarding copyright ownership. # shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/tools/tests.sh b/bin/tests/system/tools/tests.sh index f49f6eeda0..142117f23a 100644 --- a/bin/tests/system/tools/tests.sh +++ b/bin/tests/system/tools/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 diff --git a/bin/tests/system/tsig/setup.sh b/bin/tests/system/tsig/setup.sh index 1629d0cb71..1d4bf13761 100644 --- a/bin/tests/system/tsig/setup.sh +++ b/bin/tests/system/tsig/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/tsig/tests.sh b/bin/tests/system/tsig/tests.sh index 31f031ea7b..9f23667a6e 100644 --- a/bin/tests/system/tsig/tests.sh +++ b/bin/tests/system/tsig/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+tcp +nosea +nostat +noquest +nocomm +nocmd -p ${PORT}" diff --git a/bin/tests/system/tsiggss/prereq.sh b/bin/tests/system/tsiggss/prereq.sh index b552ebdc8b..c81e201f5c 100644 --- a/bin/tests/system/tsiggss/prereq.sh +++ b/bin/tests/system/tsiggss/prereq.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh # enable the tsiggss test only if gssapi was enabled $FEATURETEST --gssapi || { diff --git a/bin/tests/system/tsiggss/setup.sh b/bin/tests/system/tsiggss/setup.sh index f6623ccbf1..308ee86228 100644 --- a/bin/tests/system/tsiggss/setup.sh +++ b/bin/tests/system/tsiggss/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/tsiggss/tests.sh b/bin/tests/system/tsiggss/tests.sh index 8a19050c40..f039c16378 100644 --- a/bin/tests/system/tsiggss/tests.sh +++ b/bin/tests/system/tsiggss/tests.sh @@ -11,7 +11,7 @@ # tests for TSIG-GSS updates -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 n=1 diff --git a/bin/tests/system/ttl/setup.sh b/bin/tests/system/ttl/setup.sh index 7c905f6b5e..68fd0d2b81 100644 --- a/bin/tests/system/ttl/setup.sh +++ b/bin/tests/system/ttl/setup.sh @@ -1,6 +1,6 @@ #!/bin/sh -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh copy_setports ns1/named.conf.in ns1/named.conf diff --git a/bin/tests/system/ttl/tests.sh b/bin/tests/system/ttl/tests.sh index 54ca973f1d..e0a3582b7f 100644 --- a/bin/tests/system/ttl/tests.sh +++ b/bin/tests/system/ttl/tests.sh @@ -1,6 +1,6 @@ #!/bin/sh -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh dig_with_options() { "$DIG" +noadd +nosea +nostat +noquest +nocomm +nocmd -p "${PORT}" "$@"; } diff --git a/bin/tests/system/unknown/ns3/sign.sh b/bin/tests/system/unknown/ns3/sign.sh index 709e4aad14..7fcf7bb5e1 100644 --- a/bin/tests/system/unknown/ns3/sign.sh +++ b/bin/tests/system/unknown/ns3/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh zone=example rm -f K${zone}.+*+*.key diff --git a/bin/tests/system/unknown/setup.sh b/bin/tests/system/unknown/setup.sh index 492731f935..63dba9ac41 100644 --- a/bin/tests/system/unknown/setup.sh +++ b/bin/tests/system/unknown/setup.sh @@ -7,7 +7,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/unknown/tests.sh b/bin/tests/system/unknown/tests.sh index b87b0ef338..b4f3be26f1 100644 --- a/bin/tests/system/unknown/tests.sh +++ b/bin/tests/system/unknown/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 @@ -143,7 +143,7 @@ done status=`expr $status + $ret` echo_i "stop and restart secondary" -$PERL $SYSTEMTESTTOP/stop.pl unknown ns2 +$PERL ../stop.pl unknown ns2 start_server --noclean --restart --port ${PORT} unknown ns2 # server may be answering queries before zones are loaded, @@ -167,7 +167,7 @@ $DIFF large.out dig.out > /dev/null || { ret=1 ; echo_i "$DIFF failed"; } status=`expr $status + $ret` echo_i "stop and restart inline secondary" -$PERL $SYSTEMTESTTOP/stop.pl unknown ns3 +$PERL ../stop.pl unknown ns3 start_server --noclean --restart --port ${PORT} unknown ns3 # server may be answering queries before zones are loaded, diff --git a/bin/tests/system/upforwd/setup.sh b/bin/tests/system/upforwd/setup.sh index 64bb7feb70..219cc3f816 100644 --- a/bin/tests/system/upforwd/setup.sh +++ b/bin/tests/system/upforwd/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh cp -f ns1/example1.db ns1/example.db cp -f ns3/nomaster.db ns3/nomaster1.db diff --git a/bin/tests/system/upforwd/tests.sh b/bin/tests/system/upforwd/tests.sh index a07cceeab1..99dfab628e 100644 --- a/bin/tests/system/upforwd/tests.sh +++ b/bin/tests/system/upforwd/tests.sh @@ -13,7 +13,7 @@ # ns2 = secondary with update forwarding disabled; not currently used # ns3 = secondary with update forwarding enabled -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+tcp +noadd +nosea +nostat +noquest +nocomm +nocmd -p ${PORT}" diff --git a/bin/tests/system/verify/setup.sh b/bin/tests/system/verify/setup.sh index 8feca6f49d..655754188d 100644 --- a/bin/tests/system/verify/setup.sh +++ b/bin/tests/system/verify/setup.sh @@ -9,6 +9,6 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh (cd zones && $SHELL genzones.sh) diff --git a/bin/tests/system/verify/tests.sh b/bin/tests/system/verify/tests.sh index 8c852d5714..e6a2fb0830 100644 --- a/bin/tests/system/verify/tests.sh +++ b/bin/tests/system/verify/tests.sh @@ -7,7 +7,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh failed () { cat verify.out.$n | sed 's/^/D:/'; echo_i "failed"; diff --git a/bin/tests/system/verify/zones/genzones.sh b/bin/tests/system/verify/zones/genzones.sh index 250fdd1870..fd599d802a 100644 --- a/bin/tests/system/verify/zones/genzones.sh +++ b/bin/tests/system/verify/zones/genzones.sh @@ -7,7 +7,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh SYSTESTDIR=verify diff --git a/bin/tests/system/views/setup.sh b/bin/tests/system/views/setup.sh index a2f54fb5e2..4651da1eb7 100644 --- a/bin/tests/system/views/setup.sh +++ b/bin/tests/system/views/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh cp -f ns2/example1.db ns2/example.db diff --git a/bin/tests/system/views/tests.sh b/bin/tests/system/views/tests.sh index b533da7722..84bc223b7e 100644 --- a/bin/tests/system/views/tests.sh +++ b/bin/tests/system/views/tests.sh @@ -9,11 +9,11 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+tcp +noadd +nosea +nostat +noquest +nocomm +nocmd +noauth -p ${PORT}" SHORTOPTS="+tcp +short -p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" status=0 diff --git a/bin/tests/system/wildcard/ns1/sign.sh b/bin/tests/system/wildcard/ns1/sign.sh index cdd7fe94aa..514aee1523 100755 --- a/bin/tests/system/wildcard/ns1/sign.sh +++ b/bin/tests/system/wildcard/ns1/sign.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../../conf.sh SYSTESTDIR=wildcard diff --git a/bin/tests/system/wildcard/setup.sh b/bin/tests/system/wildcard/setup.sh index 9c2a601ef8..464270e2b0 100644 --- a/bin/tests/system/wildcard/setup.sh +++ b/bin/tests/system/wildcard/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/wildcard/tests.sh b/bin/tests/system/wildcard/tests.sh index f0fcdb4f91..94db6ecfab 100644 --- a/bin/tests/system/wildcard/tests.sh +++ b/bin/tests/system/wildcard/tests.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh status=0 n=0 diff --git a/bin/tests/system/xfer/setup.sh b/bin/tests/system/xfer/setup.sh index c4b6c3a48a..0ee630a4fb 100644 --- a/bin/tests/system/xfer/setup.sh +++ b/bin/tests/system/xfer/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL ${TOP_SRCDIR}/bin/tests/system/genzone.sh 1 6 7 >ns1/sec.db $SHELL ${TOP_SRCDIR}/bin/tests/system/genzone.sh 1 6 7 >ns1/edns-expire.db diff --git a/bin/tests/system/xfer/tests.sh b/bin/tests/system/xfer/tests.sh index d648050fba..1ff18e2f09 100755 --- a/bin/tests/system/xfer/tests.sh +++ b/bin/tests/system/xfer/tests.sh @@ -9,10 +9,10 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+tcp +noadd +nosea +nostat +noquest +nocomm +nocmd -p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" status=0 n=0 @@ -465,7 +465,7 @@ echo_i "test mapped zone with out of zone data ($n)" tmp=0 $DIG -p ${PORT} txt mapped @10.53.0.3 > dig.out.1.test$n grep "status: NOERROR," dig.out.1.test$n > /dev/null || tmp=1 -$PERL $SYSTEMTESTTOP/stop.pl xfer ns3 +$PERL ../stop.pl xfer ns3 start_server --noclean --restart --port ${PORT} xfer ns3 check_mapped () { $DIG -p ${PORT} txt mapped @10.53.0.3 > dig.out.2.test$n diff --git a/bin/tests/system/xferquota/setup.sh b/bin/tests/system/xferquota/setup.sh index 2cabeb7bc1..88f274dba2 100644 --- a/bin/tests/system/xferquota/setup.sh +++ b/bin/tests/system/xferquota/setup.sh @@ -13,7 +13,7 @@ # Set up test data for zone transfer quota tests. # -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $PERL setup.pl diff --git a/bin/tests/system/xferquota/tests.sh b/bin/tests/system/xferquota/tests.sh index b5a4535077..0e12da6993 100755 --- a/bin/tests/system/xferquota/tests.sh +++ b/bin/tests/system/xferquota/tests.sh @@ -9,10 +9,10 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="+tcp +noadd +nosea +nostat +noquest +nocomm +nocmd -p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" # # Perform tests diff --git a/bin/tests/system/zero/setup.sh b/bin/tests/system/zero/setup.sh index 7ef0b8fb6b..dfda9abee1 100644 --- a/bin/tests/system/zero/setup.sh +++ b/bin/tests/system/zero/setup.sh @@ -7,7 +7,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh copy_setports ns1/named.conf.in ns1/named.conf copy_setports ns2/named.conf.in ns2/named.conf diff --git a/bin/tests/system/zero/tests.sh b/bin/tests/system/zero/tests.sh index a5e4de9c4a..f15d436ce6 100644 --- a/bin/tests/system/zero/tests.sh +++ b/bin/tests/system/zero/tests.sh @@ -10,7 +10,7 @@ # information regarding copyright ownership. #shellcheck source=conf.sh -. "$SYSTEMTESTTOP/conf.sh" +. ../conf.sh dig_with_opts() { "$DIG" -p "${PORT}" "$@" diff --git a/bin/tests/system/zonechecks/setup.sh b/bin/tests/system/zonechecks/setup.sh index 732e95d00f..04ae5edeb4 100644 --- a/bin/tests/system/zonechecks/setup.sh +++ b/bin/tests/system/zonechecks/setup.sh @@ -9,7 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh $SHELL clean.sh diff --git a/bin/tests/system/zonechecks/tests.sh b/bin/tests/system/zonechecks/tests.sh index 20261f273e..278c54d619 100644 --- a/bin/tests/system/zonechecks/tests.sh +++ b/bin/tests/system/zonechecks/tests.sh @@ -9,10 +9,10 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -. $SYSTEMTESTTOP/conf.sh +. ../conf.sh DIGOPTS="-p ${PORT}" -RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s" +RNDCCMD="$RNDC -c ../common/rndc.conf -p ${CONTROLPORT} -s" status=0