tests.sh revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
#
# Copyright (C) 2014-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/.
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`
if [ "$TESTSOCK6" != "false" ]
then
else
fi
n=`expr $n + 1`
echo "I: attempt permissible lookup ($n)"
ret=0
eval count=`cat dig.out.2.test$n`
if [ "$TESTSOCK6" != "false" ]
then
else
fi
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`
if [ "$TESTSOCK6" != "false" ]
then
else
fi
n=`expr $n + 1`
echo "I: attempt permissible lookup ($n)"
ret=0
eval count=`cat dig.out.2.test$n`
if [ "$TESTSOCK6" != "false" ]
then
else
fi
echo "I:reset max-recursion-depth"
sleep 2
n=`expr $n + 1`
echo "I: attempt excessive-queries lookup ($n)"
ret=0
if [ "$TESTSOCK6" != "false" ]
then
fi
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
if [ "$TESTSOCK6" != "false" ]
then
fi
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"