tests.sh revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
#
# Copyright (C) 2015, 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/.
num=${3:-20}
rm -f burst.input.$$
done
$PERL ../ditch.pl -p 5300 -s 10.53.0.3 burst.input.$$
rm -f burst.input.$$
}
echo "I: clients: $clients"
}
status=0
echo "I: checking recursing clients are dropped at the per-server limit"
ret=0
# make the server lame and restart
# fetches-per-server is at 400, but at 20qps against a lame server,
# we'll reach 200 at the tenth second, and the quota should have been
# tuned to less than that by then
sleep 1
done
echo "I: dumping ADB data"
echo $info
set -- $info
quota=$5
echo "I: checking servfail statistics"
[ -f ns3/named.stats ] && break
sleep 1
done
echo "I: checking lame server recovery"
ret=0
sleep 1
done
echo "I: dumping ADB data"
echo $info
set -- $info
quota=$5
sleep 1
done
echo "I: dumping ADB data"
echo $info
set -- $info
quota=$5
echo "I: checking lame server clients are dropped at the per-domain limit"
ret=0
fail=0
success=0
sleep 1
done
echo "I: checking drop statistics"
[ -f ns3/named.stats ] && break
sleep 1
done
echo "I: checking lame server clients are dropped at the soft limit"
ret=0
fail=0
success=0
sleep 1
done
echo "I:exit status: $status"