tests.sh revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
#
# Copyright (C) 2010-2016 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
status=0
n=0
DIGOPTS="@10.53.0.1 -p 5300 +nocookie"
n=`expr $n + 1`
echo "${1} (${n})"
ret=0
}
host="$1"
type="$2"
cmd="$3"
digout="$4"
should_fail="$5"
cat <<EOF > ns1/update.txt
server 10.53.0.1 5300
update add $host $cmd
send
EOF
return 1
}
return 1
}
return 0
}
newtest "I:testing nxrrset"
newtest "I:testing prerequisites are checked correctly"
server 10.53.0.1 5300
prereq nxdomain testdc3.example.nil
update add testdc3.example.nil 86500 in a 10.53.0.12
send
EOF
newtest "I:testing passing client info into DLZ driver"
newtest "I:testing DLZ driver is cleaned up on reload"
ret=0
sleep 1
done
newtest "I:testing multiple DLZ drivers"
newtest "I:testing AXFR from DLZ drivers"
lines=`cat dig.out.ns1.test$n | wc -l`
lines=`cat dig.out.ns1.test$n | wc -l`
newtest "I:testing unsearched/unregistered DLZ zone is not found"
newtest "I:testing unsearched/registered DLZ zone is found"
newtest "I:testing unsearched/registered DLZ zone is found"
newtest "I:testing correct behavior with findzone returning ISC_R_NOMORE"
# we should only find one logged lookup per searched DLZ database
newtest "I:testing findzone can return different results per client"
# we should only find one logged lookup per searched DLZ database
# we should find several logged lookups this time
newtest "I:testing zone returning oversized data"
newtest "I:testing zone returning oversized data at zone origin"
newtest "I:checking redirected lookup for nonexistent name"
newtest "I:checking no redirected lookup for nonexistent type"
newtest "I:checking redirected lookup for a long nonexistent name"
echo "I:exit status: $status"