BIND 10 trac1818, updated. 46ef8c7fa06bea89e4528f668204e21b5651198e bug #1818: Update system test for components that are not started by default
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Mar 27 08:00:43 UTC 2012
The branch, trac1818 has been updated
via 46ef8c7fa06bea89e4528f668204e21b5651198e (commit)
from 6bb37961f940cc599d9503da23ffe7ac52d275a3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 46ef8c7fa06bea89e4528f668204e21b5651198e
Author: Mukund Sivaraman <muks at isc.org>
Date: Mon Mar 26 15:59:32 2012 +0530
bug #1818: Update system test for components that are not started by default
-----------------------------------------------------------------------
Summary of changes:
tests/system/bindctl/tests.sh | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
-----------------------------------------------------------------------
diff --git a/tests/system/bindctl/tests.sh b/tests/system/bindctl/tests.sh
index cb9d8be..2afc56b 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`
More information about the bind10-changes
mailing list