tests.sh revision 811acf52b825f9fb4889cad7b84b581a2d4776f9
#
# Copyright (C) 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
#
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
DIGOPTS="-p 5300"
status=0
n=0
n=`expr $n + 1`
echo "I: attempt excessive-depth lookup ($n)"
ret=0
eval count=`cat dig.out.2.test$n`
n=`expr $n + 1`
echo "I: attempt permissible lookup ($n)"
ret=0
eval count=`cat dig.out.2.test$n`
echo "I:reset max-recursion-depth"
sleep 2
n=`expr $n + 1`
echo "I: attempt excessive-depth lookup ($n)"
ret=0
eval count=`cat dig.out.2.test$n`
n=`expr $n + 1`
echo "I: attempt permissible lookup ($n)"
ret=0
eval count=`cat dig.out.2.test$n`
echo "I:reset max-recursion-depth"
sleep 2
n=`expr $n + 1`
echo "I: attempt excessive-queries lookup ($n)"
ret=0
eval count=`cat dig.out.2.test$n`
n=`expr $n + 1`
echo "I: attempt permissible lookup ($n)"
ret=0
eval count=`cat dig.out.2.test$n`
echo "I:reset max-recursion-queries"
sleep 2
n=`expr $n + 1`
echo "I: attempt excessive-queries lookup ($n)"
ret=0
eval count=`cat dig.out.2.test$n`
n=`expr $n + 1`
echo "I: attempt permissible lookup ($n)"
ret=0
eval count=`cat dig.out.2.test$n`
n=`expr $n + 1`
echo "I: attempting NS explosion ($n)"
ret=0
sleep 2
eval count=`cat dig.out.2.test$n`
eval count=`cat dig.out.3.test$n`
echo "I:exit status: $status"
exit $status