tests.sh revision f16a6bfb6cb4559cce89943f9427d4ec054fbdc4
#
# Copyright (C) 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.
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"
exit $status