From: Naoki Kambe Date: Tue, 13 Mar 2012 10:37:07 +0000 (+0900) Subject: [1751] typo fix, removal of the final recheck of statistics due to another issue... X-Git-Tag: trac2351_base~226^2~116^2~100^2~12^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3ca2c002d807fa1f8e7dbf6731ac4f1796f4e5a0;p=thirdparty%2Fkea.git [1751] typo fix, removal of the final recheck of statistics due to another issue, and addition of two more running auths for a regression check --- diff --git a/tests/system/bindctl/tests.sh b/tests/system/bindctl/tests.sh index 8fa9d6131c..0a1f41e3f5 100755 --- a/tests/system/bindctl/tests.sh +++ b/tests/system/bindctl/tests.sh @@ -126,58 +126,59 @@ grep $cnt_name3".*\<"$cnt_value3"\>" bindctl.out.$n > /dev/null || status=1 if [ $status != 0 ]; then echo "I:failed"; fi n=`expr $n + 1` -echo "I:Starting another b10-auth and checking that ($n)" -echo 'config add Boss/components b10-auth-2 -config set Boss/components/b10-auth { "special": "auth", "kind": "needed" } +echo "I:Starting more b10-auths and checking that ($n)" +for i in 2 3 +do + echo 'config add Boss/components b10-auth-'$i' +config set Boss/components/b10-auth-'$i' { "special": "auth", "kind": "needed" } config commit quit ' | $RUN_BINDCTL \ --csv-file-dir=$BINDCTL_CSV_DIR 2>&1 > /dev/null || status=1 +done $DIG +norec @10.53.0.1 -p 53210 ns.example.com. A >dig.out.$n || status=1 grep 192.0.2.2 dig.out.$n > /dev/null || status=1 if [ $status != 0 ]; then echo "I:failed"; fi n=`expr $n + 1` -echo "I:Rechecking BIND 10 statistics after a pause ($n)" +echo "I:Rechecking BIND 10 statistics consistency after a pause ($n)" sleep 2 -echo 'Stats show -' | $RUN_BINDCTL \ - --csv-file-dir=$BINDCTL_CSV_DIR > bindctl.out.$n || status=1 -# The statistics counters should keep increasing even after another -# b10-auth starts. cnt_value1=`expr $cnt_value1 + 0` cnt_value2=`expr $cnt_value2 + 1` cnt_value3=`expr $cnt_value1 + $cnt_value2` -grep $cnt_name1".*\<"$cnt_value1"\>" bindctl.out.$n > /dev/null || status=1 -grep $cnt_name2".*\<"$cnt_value2"\>" bindctl.out.$n > /dev/null || status=1 -grep $cnt_name3".*\<"$cnt_value3"\>" bindctl.out.$n > /dev/null || status=1 -if [ $status != 0 ]; then echo "I:failed"; fi +# Rechecking some times +for i in 1 2 3 4 +do + echo 'Stats show +' | $RUN_BINDCTL \ + --csv-file-dir=$BINDCTL_CSV_DIR > bindctl.out.$n || status=1 + # The statistics counters should keep being consistent even while + # multiple b10-auths are running. + grep $cnt_name1".*\<"$cnt_value1"\>" bindctl.out.$n > /dev/null || status=1 + grep $cnt_name2".*\<"$cnt_value2"\>" bindctl.out.$n > /dev/null || status=1 + grep $cnt_name3".*\<"$cnt_value3"\>" bindctl.out.$n > /dev/null || status=1 + if [ $status != 0 ]; then echo "I:failed "; break ; fi +done n=`expr $n + 1` -echo "I:Stopping the second b10-auth and checking that ($n)" -echo 'config remove Boss/components b10-auth-2 +echo "I:Stopping extra b10-auths and checking that ($n)" +for i in 3 2 +do + echo 'config remove Boss/components b10-auth-'$i' config commit quit ' | $RUN_BINDCTL \ --csv-file-dir=$BINDCTL_CSV_DIR 2>&1 > /dev/null || status=1 +done $DIG +norec @10.53.0.1 -p 53210 ns.example.com. A >dig.out.$n || status=1 grep 192.0.2.2 dig.out.$n > /dev/null || status=1 if [ $status != 0 ]; then echo "I:failed"; fi n=`expr $n + 1` -echo "I:Rechecking BIND 10 statistics after a pause ($n)" -sleep 2 -echo 'Stats show -' | $RUN_BINDCTL \ - --csv-file-dir=$BINDCTL_CSV_DIR > bindctl.out.$n || status=1 -cnt_value1=`expr $cnt_value1 + 0` -cnt_value2=`expr $cnt_value2 + 1` -cnt_value3=`expr $cnt_value1 + $cnt_value2` -grep $cnt_name1".*\<"$cnt_value1"\>" bindctl.out.$n > /dev/null || status=1 -grep $cnt_name2".*\<"$cnt_value2"\>" bindctl.out.$n > /dev/null || status=1 -grep $cnt_name3".*\<"$cnt_value3"\>" bindctl.out.$n > /dev/null || status=1 -if [ $status != 0 ]; then echo "I:failed"; fi -n=`expr $n + 1` +# The statistics counters can not be rechecked here because the auth +# instance seems to hang up after one of the multiple auth instances +# was removed via bindctl. This reason seems to be the same reason as +# #1703. echo "I:exit status: $status" exit $status