summaryrefslogtreecommitdiff
path: root/bin/tests/system/xferquota/tests.sh
diff options
context:
space:
mode:
authorInternet Software Consortium, Inc <@isc.org>2007-09-07 14:08:23 -0600
committerLaMont Jones <lamont@debian.org>2007-09-07 14:08:23 -0600
commitfc0b5c902db294dff1930e558f8dce9cf060fd42 (patch)
tree434cb6c40ef267bdb04d162b310a55b55056d2e8 /bin/tests/system/xferquota/tests.sh
parent93744e253a50cdd78097dc5a150f4c035e8cbcc9 (diff)
downloadbind9-fc0b5c902db294dff1930e558f8dce9cf060fd42.tar.gz
9.0.0b4
Diffstat (limited to 'bin/tests/system/xferquota/tests.sh')
-rw-r--r--bin/tests/system/xferquota/tests.sh55
1 files changed, 34 insertions, 21 deletions
diff --git a/bin/tests/system/xferquota/tests.sh b/bin/tests/system/xferquota/tests.sh
index e47f98e9..96e49984 100644
--- a/bin/tests/system/xferquota/tests.sh
+++ b/bin/tests/system/xferquota/tests.sh
@@ -15,47 +15,60 @@
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE.
-echo "S:`date`"
-echo "T:system_xferquota:1"
-echo "A:A test to determine online speed of domain name transfers"
+SYSTEMTESTTOP=..
+. $SYSTEMTESTTOP/conf.sh
#
# Perform tests
#
-if [ -f dig.out.ns1 ]; then
- rm -f dig.out.ns1
-fi
-if [ -f dig.out.ns2 ]; then
- rm -f dig.out.ns2
-fi
-
count=0
ticks=0
-while [ $count != 100 ]; do
- sleep 5
+while [ $count != 300 ]; do
+ if [ $ticks = 1 ]; then
+ echo "I: Changing test zone..."
+ cp ns1/changing2.db ns1/changing.db
+ kill -HUP `cat ns1/named.pid`
+ fi
+ sleep 1
ticks=`expr $ticks + 1`
- seconds=`expr $ticks \* 5`
+ seconds=`expr $ticks \* 1`
if [ $ticks = 60 ]; then
- echo "Took too long to load domains."
- exit 1;
+ echo "Took too long to load zones"
+ echo "R:FAIL"
+ exit 1
fi
count=`cat ns2/zone*.bk | grep xyzzy | wc -l`
- echo "I:Have $count domains up in $seconds seconds"
+ echo "I:Have $count zones up in $seconds seconds"
done
status=0;
-../../../dig/dig +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
- zone000099.example. @10.53.0.1 axfr > dig.out.ns1
+$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
+ zone000099.example. @10.53.0.1 axfr -p 5300 > dig.out.ns1
+status=`expr $status + $?`
+grep ";" dig.out.ns1
+
+$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
+ zone000099.example. @10.53.0.2 axfr -p 5300 > dig.out.ns2
+status=`expr $status + $?`
+grep ";" dig.out.ns2
+
+$PERL ../digcomp.pl dig.out.ns1 dig.out.ns2
+status=`expr $status + $?`
+
+sleep 5
+
+$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
+ a.changing. @10.53.0.1 a -p 5300 > dig.out.ns1
status=`expr $status + $?`
grep ";" dig.out.ns1
-../../../dig/dig +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
- zone000099.example. @10.53.0.2 axfr > dig.out.ns2
+$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
+ a.changing. @10.53.0.2 a -p 5300 > dig.out.ns2
status=`expr $status + $?`
grep ";" dig.out.ns2
-perl ../digcomp.pl dig.out.ns1 dig.out.ns2
+$PERL ../digcomp.pl dig.out.ns1 dig.out.ns2
status=`expr $status + $?`
if [ $status != 0 ]; then