From: Mukund Sivaraman Date: Mon, 26 Mar 2012 10:29:32 +0000 (+0530) Subject: bug #1818: Update system test for components that are not started by default X-Git-Tag: trac2351_base~226^2~116^2~34^2~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d2ebae0cc3b6119ae0cc2f7fa509a5792290ecf;p=thirdparty%2Fkea.git bug #1818: Update system test for components that are not started by default --- diff --git a/tests/system/bindctl/tests.sh b/tests/system/bindctl/tests.sh index cb9d8be702..2afc56b6cc 100755 --- a/tests/system/bindctl/tests.sh +++ b/tests/system/bindctl/tests.sh @@ -32,7 +32,18 @@ cnt_value1=0 cnt_value2=0 cnt_value3=0 -echo "I:Checking b10-auth is working by default ($n)" +echo "I:Checking b10-auth is disabled by default ($n)" +$DIG +norec @10.53.0.1 -p 53210 ns.example.com. A && status=1 +if [ $status != 0 ]; then echo "I:failed"; fi +n=`expr $n + 1` + +echo "I:Starting b10-auth and checking that it works ($n)" +echo 'config add Boss/components b10-auth +config set Boss/components/b10-auth { "special": "auth", "kind": "needed" } +config commit +quit +' | $RUN_BINDCTL \ + --csv-file-dir=$BINDCTL_CSV_DIR 2>&1 > /dev/null || status=1 $DIG +norec @10.53.0.1 -p 53210 ns.example.com. A >dig.out.$n || status=1 # perform a simple check on the output (digcomp would be too much for this) grep 192.0.2.1 dig.out.$n > /dev/null || status=1 @@ -76,6 +87,7 @@ quit ' | $RUN_BINDCTL \ --csv-file-dir=$BINDCTL_CSV_DIR 2>&1 > /dev/null || status=1 $DIG +norec @10.53.0.1 -p 53210 ns.example.com. A >dig.out.$n || status=1 +# perform a simple check on the output (digcomp would be too much for this) grep 192.0.2.1 dig.out.$n > /dev/null || status=1 if [ $status != 0 ]; then echo "I:failed"; fi n=`expr $n + 1`