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
# 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
# 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
# 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
# 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
# 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
# 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" &&
# 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
# and querying as necessary.
#
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
DIGOPTS="+tcp +nosea +nostat +nocmd +norec +noques +noauth +noadd +nostats +dnssec -p ${PORT}"
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
DIGOPTS="+tcp -p ${PORT}"
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
zone=.
zonefile=root.db
# 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 )
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
SYSTESTDIR=autosign
# 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
# 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 () {
# 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
# 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
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
n=0
# 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
# 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}"
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
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() (
set -eu
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
touch empty
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
n=0
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
zone=example.
zonefile=example.db
# 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
# 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}"
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
n=0
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
n=1
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
ln -s $CHECKZONE named-compilezone
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
n=1
# Clean up after system tests.
#
-SYSTEMTESTTOP=.
-. $SYSTEMTESTTOP/conf.sh
+. ./conf.sh
find . -type f \( \
status=0
-rm -f $SYSTEMTESTTOP/random.data
+rm -f ../random.data
for d in $SUBDIRS
do
# 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
# 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
# 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
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
n=0
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
set -e
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
set -e
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
set -e
# 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"
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
n=0
# 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
# 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`
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
zone=signed
infile=example.db
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
n=0
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
set -e
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
set -e
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
set -e
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
set -e
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
set -e
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
set -e
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
set -e
# 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 "$@"
+ "$RNDC" -c ../common/rndc.conf -p "$CONTROLPORT" -s "$@"
}
# TODO: Move loadkeys_on to conf.sh.common
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))
# 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
# 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"
# 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
# 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}"
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
zone=.
infile=root.db.in
# 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
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
start=`date +%s`
# 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
# 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`
set -e
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
zone=.
infile=root.db.in
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
set -e
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
status=0
n=1
set -e
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
zone=.
infile=root.db.in
set -e
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
zone=example.com.
zonefile=example.com.db
set -e
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
if ! $SHELL ../testcrypto.sh eddsa; then
exit 1
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
set -e
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
status=0
n=1
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
DIGOPTS="+norec -p ${PORT}"
# 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
# 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
# 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
# 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"
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
SYSTESTDIR=filter-aaaa
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
SYSTESTDIR=filter-aaaa
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
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
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
# 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
# information regarding copyright ownership.
#shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
dig_with_opts() (
"$DIG" -p "$PORT" "$@"
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
# 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 +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
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
#
# Do glue tests.
# 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
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
# Test of include statement with glob expression.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
DIGOPTS="+tcp +nosea +nostat +nocmd +norec +noques +noadd +nostats -p ${PORT}"
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
zone=.
rm -f K.+*+*.key
# 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)
# 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.
# 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 \
# 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
# 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"
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
# 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
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
DIGOPTS="-p ${PORT}"
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
# in the log file - need a better approach <sdm> - 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"
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
echo_i "ns2/setup.sh"
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
echo_i "ns3/setup.sh"
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
echo_i "ns4/setup.sh"
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
echo_i "ns5/setup.sh"
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
echo_i "ns6/setup.sh"
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
set -e
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
start_time="$(TZ=UTC date +%s)"
status=0
# 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
# 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
# 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}"
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
SYSTESTDIR=legacy
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
SYSTESTDIR=legacy
# 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
# 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"
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
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
DIGOPTS="-p ${PORT}"
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
THISDIR=`pwd`
CONFDIR="ns1"
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
DIGOPTS="-p ${PORT}"
# 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
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
$SHELL clean.sh
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
status=0
n=1
}
rndccmd() {
- "$RNDC" -c "$SYSTEMTESTTOP/common/rndc.conf" -p "${CONTROLPORT}" -s "$@"
+ "$RNDC" -c ../common/rndc.conf -p "${CONTROLPORT}" -s "$@"
}
status=0
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
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
# 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
# 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
# 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 )
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
keys_to_trust=""
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
zone=.
zonefile=root.db
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
zone=.
zonefile=root.db
# 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
set -e
#shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
dig_with_opts() (
"$DIG" +tcp +noadd +nosea +nostat +nocmd +dnssec -p "${PORT}" "$@"
)
rndccmd() (
- "$RNDC" -c "$SYSTEMTESTTOP/common/rndc.conf" -p "${CONTROLPORT}" -s "$@"
+ "$RNDC" -c ../common/rndc.conf -p "${CONTROLPORT}" -s "$@"
)
mkeys_reconfig_on() (
# 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
# 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}"
# 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
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
n=0
# 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
# 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
# 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.
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
# 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
# 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
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)"
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL ./clean.sh
# 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:" {
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
zone=.
infile=root.db.in
# 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}.
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
# 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()
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
# 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
set -eu
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
echo_i "Generating keys for Native PKCS#11" >&2
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 "
set -e
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
count_rrsigs() (
grep -c "IN[[:space:]]*RRSIG" "$@" || true
# 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
# 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
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
DIGOPTS="-p ${PORT}"
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
zone=signed
infile=example.db
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
zone=signed
infile=example.db
# 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
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
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
# 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"
# 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
# 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
# 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
# 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}"
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
zone=.
infile=root.db.in
badid=`expr \( ${oldid} + 7777 \) % 65536`
badid=`expr "0000${badid}" : '.*\(.....\)$'`
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
zone=example.
infile=example.db.in
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
n=0
# and differ from dnsrpz.conf which is used by dnsrpzd.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
DNSRPS_CMD=../rpz/dnsrps
set -e
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
QPERF=`$SHELL qperf.sh`
# 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
}
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
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
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
# 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?"
# 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.
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
set -e
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
USAGE="$0: [-DNx]"
DEBUG=
# touch dnsrps-off to not test with DNSRPS
# touch dnsrps-only to not test with classic RPZ
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
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
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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
n=0
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
# 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
# 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
# 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}"
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
zone=.
infile=root.db.in
# 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
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
exit 1
fi
-SYSTEMTESTTOP="$(cd -P -- "${builddir}" && pwd -P)"
-if [ "$CYGWIN" ]; then
- SYSTEMTESTTOP="$(cygpath -m "${SYSTEMTESTTOP}")"
-fi
-
-export SYSTEMTESTTOP
export builddir
export srcdir
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}/"
# (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]"
# is the only one running on an IP address.
#
-SYSTEMTESTTOP=.
-. "$SYSTEMTESTTOP/conf.sh"
+. ./conf.sh
for d in $SEQUENTIALDIRS
do
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
# 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}"
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
# 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 () {
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
# Run a system test.
#
-SYSTEMTESTTOP=.
-. $SYSTEMTESTTOP/conf.sh
+. ./conf.sh
test $# -gt 0 || { echo "usage: $0 test-directory" >&2; exit 1; }
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
set -e
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
set -e
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
set -e
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
set -e
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
set -e
}
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)"
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
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.
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
# 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
# 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}"
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
n=1
status=0
# 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
# 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
# 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
# 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
# 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
# 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}"
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
set -e
# 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)"
# 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
# Stop all hanging processes from any system tests.
#
-SYSTEMTESTTOP=.
-. $SYSTEMTESTTOP/conf.sh
+. ./conf.sh
for d in $SUBDIRS
do
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
#
# Set up test data for zone transfer quota tests.
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
DIGOPTS="+tcp -p ${PORT}"
[ $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
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
zone=example
infile=example.db.in
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
set -e
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
set -e
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
set -e
# shellcheck source=../conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
dig_with_opts() {
"${DIG}" -p "${PORT}" "$@"
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-SYSTEMTESTTOP=${SYSTEMTESTTOP:=..}
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
prog=$0
# 0 - no tests failed
# 1 - one or more tests failed
-SYSTEMTESTTOP=.
-. "$SYSTEMTESTTOP/conf.sh"
+. ./conf.sh
keepfile=0
set -e
-. "$SYSTEMTESTTOP/conf.sh"
+. ../../conf.sh
keyname=$($KEYGEN -T KEY -a DH -b 768 -n host server)
keyid=$(keyfile_to_key_id "$keyname")
set -e
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
copy_setports ns1/named.conf.in ns1/named.conf
set -e
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
dig_with_opts() {
"$DIG" @10.53.0.1 -p "$PORT" "$@"
# information regarding copyright ownership.
# shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
$SHELL clean.sh
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
# 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}"
# 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 || {
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
# tests for TSIG-GSS updates
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
n=1
#!/bin/sh
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
copy_setports ns1/named.conf.in ns1/named.conf
#!/bin/sh
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
dig_with_options() { "$DIG" +noadd +nosea +nostat +noquest +nocomm +nocmd -p "${PORT}" "$@"; }
# 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
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
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,
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,
# 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
# 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}"
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
(cd zones && $SHELL genzones.sh)
# 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";
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
SYSTESTDIR=verify
# 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
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../../conf.sh
SYSTESTDIR=wildcard
# 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
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
status=0
n=0
# 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
# 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
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
# Set up test data for zone transfer quota tests.
#
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$PERL setup.pl
# 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
# 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
# information regarding copyright ownership.
#shellcheck source=conf.sh
-. "$SYSTEMTESTTOP/conf.sh"
+. ../conf.sh
dig_with_opts() {
"$DIG" -p "${PORT}" "$@"
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-. $SYSTEMTESTTOP/conf.sh
+. ../conf.sh
$SHELL clean.sh
# 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