From: JINMEI Tatuya Date: Sat, 7 Jan 2012 06:55:12 +0000 (-0800) Subject: [1399] added to systest simple checks for opcode statistics counters via bindctl X-Git-Tag: trac2351_base~281^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8dcc4afc2eba29c4746ab447559968097afe68f;p=thirdparty%2Fkea.git [1399] added to systest simple checks for opcode statistics counters via bindctl --- diff --git a/tests/system/bindctl/tests.sh b/tests/system/bindctl/tests.sh index 565b306c09..e9333555ce 100755 --- a/tests/system/bindctl/tests.sh +++ b/tests/system/bindctl/tests.sh @@ -27,6 +27,7 @@ n=0 # TODO: consider consistency with statistics definition in auth.spec auth_queries_tcp="\" auth_queries_udp="\" +auth_opcode_queries="\" echo "I:Checking b10-auth is working by default ($n)" $DIG +norec @10.53.0.1 -p 53210 ns.example.com. A >dig.out.$n || status=1 @@ -46,6 +47,7 @@ echo 'Stats show # sent from the server startup script) grep $auth_queries_tcp".*\<1\>" bindctl.out.$n > /dev/null || status=1 grep $auth_queries_udp".*\<1\>" bindctl.out.$n > /dev/null || status=1 +grep $auth_opcode_queries".*\<2\>" bindctl.out.$n > /dev/null || status=1 if [ $status != 0 ]; then echo "I:failed"; fi n=`expr $n + 1` @@ -80,6 +82,7 @@ echo 'Stats show # The statistics counters should have been reset while stop/start. grep $auth_queries_tcp".*\<0\>" bindctl.out.$n > /dev/null || status=1 grep $auth_queries_udp".*\<1\>" bindctl.out.$n > /dev/null || status=1 +grep $auth_opcode_queries".*\<1\>" bindctl.out.$n > /dev/null || status=1 if [ $status != 0 ]; then echo "I:failed"; fi n=`expr $n + 1` @@ -104,6 +107,7 @@ echo 'Stats show # The statistics counters shouldn't be reset due to hot-swapping datasource. grep $auth_queries_tcp".*\<0\>" bindctl.out.$n > /dev/null || status=1 grep $auth_queries_udp".*\<2\>" bindctl.out.$n > /dev/null || status=1 +grep $auth_opcode_queries".*\<2\>" bindctl.out.$n > /dev/null || status=1 if [ $status != 0 ]; then echo "I:failed"; fi n=`expr $n + 1`