]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[rt46602] Miscellaneous minor fixes
authorStephen Morris <stephen@isc.org>
Thu, 14 Dec 2017 19:13:48 +0000 (19:13 +0000)
committerStephen Morris <stephen@isc.org>
Fri, 16 Feb 2018 15:19:43 +0000 (15:19 +0000)
... for misspellings, typos, trailing spaces, duplicated lines etc.

bin/tests/system/Makefile.in
bin/tests/system/README
bin/tests/system/catz/tests.sh
bin/tests/system/conf.sh.in
bin/tests/system/run.sh
bin/tests/system/serve-stale/tests.sh

index 2877827ad8c5f5e9136f3e89982739899bba0f01..f1bd914888c4fa846e1f3aa62a9881c9f195b405 100644 (file)
@@ -44,15 +44,13 @@ feature-test@EXEEXT@: feature-test.@O@
 # used.
 
 # Define the tests that can be run in parallel.  This should be identical to
-# the definition of PARALLELDIRS in conf.sh.  These tests do not use query
-# port 5300 or control port 9953.
+# the definition of PARALLELDIRS in conf.sh.
 
 PARALLEL = allow_query catz rpzrecurse serve-stale
 
 # Produce intermediate makefile that assigns unique port numbers to each
-# parallel test.  The sequential tests all use ports 5300 (for queries) and
-# 9953 (for control).  For this reason, the parallel tests start at port
-# # 10,000
+# parallel test.  The start port number of 5,000 is arbitrary - it must just
+# be greated that the highest privileged port, 1024.
 
 parallel.mk:
        @echo ".PHONY: $(PARALLEL)" > $@ ; \
index c8a8a6a50d4d7f6dd8ebcefc7d57034687444720..8d21f2cced510daf5a48b6ea47916d9f8ca8f2c1 100644 (file)
@@ -133,7 +133,7 @@ new tests being started as tests finish. Each test will get a unique set of
 ports, so there is no danger of tests interfering with one another.
 
 It is also possible to run the test suites from two installations of BIND on
-the same machine at the same time.  To to this:
+the same machine at the same time.  To do this:
 
 1. Each installation must have its own directory tree. The system tests create
 temporary configuration files in the test directories, so separate directory
index 58fc507fd3914cafb34c0e7cf307e1c8a50d216e..5a02c2a879616481779887ee8936167dff3e662b 100644 (file)
@@ -9,7 +9,7 @@
 SYSTEMTESTTOP=..
 . $SYSTEMTESTTOP/conf.sh
 
-RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p $CONTROLPORT -s"
+RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p ${CONTROLPORT} -s"
 
 status=0
 n=0
index d66a89f61d59801eee2b9e4f0bb796aa689a530d..a439ced14239ccf668ba3b5abd7a509e33166ccd 100644 (file)
@@ -186,7 +186,7 @@ then
        }
        echoinfo () {
                COLOR=$COLOR_INFO
-               case "$1" in 
+               case "$1" in
                        S:*|E:*) COLOR=${COLOR}${COLOR_STEN} ;; # Start/end messages
                esac
                printf "${COLOR}%s${COLOR_NONE}\n" "$*"
index 9dea4934f1f5c82907c6f84608abe3d5497dfb1d..7b8108f87e2855aead950a08b2d10a86567ca008 100644 (file)
@@ -28,7 +28,6 @@ while getopts "knp:d:" flag; do
     esac
 done
 shift `expr $OPTIND - 1`
-OPTIND=1
 
 test $# -gt 0 || { echo "usage: $0 [-k|-n|-p <PORT>] test-directory" >&2; exit 1; }
 
index a29a2d208fedf7fb7cf7f31bf8ff356fbf2aca7d..999ad25904f8f432790669faec3cbbf318be1c5d 100755 (executable)
@@ -206,8 +206,6 @@ $DIG -p ${PORT} @10.53.0.1 data.example TXT > dig.out.test$n
 grep "status: SERVFAIL" dig.out.test$n > /dev/null || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
-if [ $ret != 0 ]; then echo_i "failed"; fi
-status=`expr $status + $ret`
 
 n=`expr $n + 1`
 echo_i "check stale nodata.example (serve-stale no) ($n)"