]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
tidying up after backport
authorEvan Hunt <each@isc.org>
Sun, 25 Feb 2018 07:57:41 +0000 (23:57 -0800)
committerEvan Hunt <each@isc.org>
Sun, 25 Feb 2018 21:10:00 +0000 (13:10 -0800)
(cherry picked from commit 854f7846d80dbc1de229e93c3c99ecaef4a60dea)
(cherry picked from commit 6653dcab3deae050e638b087b2d117988bdadcbe)

106 files changed:
bin/tests/system/.gitignore
bin/tests/system/Makefile.in
bin/tests/system/addzone/ns1/named.conf.in
bin/tests/system/addzone/setup.sh
bin/tests/system/allow_query/.gitignore [new file with mode: 0644]
bin/tests/system/allow_query/clean.sh
bin/tests/system/allow_query/ns2/named01.conf.in [new file with mode: 0644]
bin/tests/system/allow_query/ns2/named02.conf.in [moved from bin/tests/system/allow_query/ns2/named02.conf with 80% similarity]
bin/tests/system/allow_query/ns2/named03.conf.in [moved from bin/tests/system/allow_query/ns2/named03.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named04.conf.in [moved from bin/tests/system/allow_query/ns2/named04.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named05.conf.in [moved from bin/tests/system/allow_query/ns2/named05.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named06.conf.in [moved from bin/tests/system/allow_query/ns2/named06.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named07.conf.in [moved from bin/tests/system/allow_query/ns2/named07.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named08.conf.in [moved from bin/tests/system/allow_query/ns2/named08.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named09.conf.in [moved from bin/tests/system/allow_query/ns2/named09.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named10.conf [deleted file]
bin/tests/system/allow_query/ns2/named10.conf.in [moved from bin/tests/system/allow_query/ns2/named01.conf with 80% similarity]
bin/tests/system/allow_query/ns2/named11.conf [deleted file]
bin/tests/system/allow_query/ns2/named11.conf.in [new file with mode: 0644]
bin/tests/system/allow_query/ns2/named12.conf [deleted file]
bin/tests/system/allow_query/ns2/named12.conf.in [new file with mode: 0644]
bin/tests/system/allow_query/ns2/named21.conf.in [new file with mode: 0644]
bin/tests/system/allow_query/ns2/named22.conf.in [moved from bin/tests/system/allow_query/ns2/named22.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named23.conf.in [moved from bin/tests/system/allow_query/ns2/named23.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named24.conf.in [moved from bin/tests/system/allow_query/ns2/named24.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named25.conf.in [moved from bin/tests/system/allow_query/ns2/named25.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named26.conf.in [moved from bin/tests/system/allow_query/ns2/named26.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named27.conf.in [moved from bin/tests/system/allow_query/ns2/named27.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named28.conf.in [moved from bin/tests/system/allow_query/ns2/named28.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named29.conf.in [moved from bin/tests/system/allow_query/ns2/named29.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named30.conf.in [moved from bin/tests/system/allow_query/ns2/named21.conf with 79% similarity]
bin/tests/system/allow_query/ns2/named31.conf [deleted file]
bin/tests/system/allow_query/ns2/named31.conf.in [moved from bin/tests/system/allow_query/ns2/named30.conf with 78% similarity]
bin/tests/system/allow_query/ns2/named32.conf [deleted file]
bin/tests/system/allow_query/ns2/named32.conf.in [new file with mode: 0644]
bin/tests/system/allow_query/ns2/named33.conf.in [moved from bin/tests/system/allow_query/ns2/named34.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named34.conf.in [moved from bin/tests/system/allow_query/ns2/named33.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named40.conf.in [moved from bin/tests/system/allow_query/ns2/named40.conf with 82% similarity]
bin/tests/system/allow_query/ns2/named53.conf.in [moved from bin/tests/system/allow_query/ns2/named54.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named54.conf.in [moved from bin/tests/system/allow_query/ns2/named53.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named55.conf.in [moved from bin/tests/system/allow_query/ns2/named55.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named56.conf.in [moved from bin/tests/system/allow_query/ns2/named56.conf with 81% similarity]
bin/tests/system/allow_query/ns2/named57.conf.in [moved from bin/tests/system/allow_query/ns2/named57.conf with 88% similarity]
bin/tests/system/allow_query/setup.sh
bin/tests/system/allow_query/tests.sh
bin/tests/system/autosign/tests.sh
bin/tests/system/builtin/tests.sh
bin/tests/system/clean.sh
bin/tests/system/cleanall.sh
bin/tests/system/common/controls.conf
bin/tests/system/common/controls.conf.in [new file with mode: 0644]
bin/tests/system/conf.sh.in
bin/tests/system/digdelv/tests.sh
bin/tests/system/dlzexternal/ns1/.gitignore
bin/tests/system/dlzexternal/setup.sh
bin/tests/system/dnssec/ns4/named5.conf.in
bin/tests/system/glue/tests.sh
bin/tests/system/logfileconfig/clean.sh
bin/tests/system/logfileconfig/tests.sh
bin/tests/system/masterformat/setup.sh
bin/tests/system/redirect/setup.sh
bin/tests/system/rndc/clean.sh
bin/tests/system/rndc/tests.sh
bin/tests/system/rpz/clean.sh
bin/tests/system/rpz/ns1/named.conf.in
bin/tests/system/rpz/ns1/root.db
bin/tests/system/rpz/ns2/base-tld2s.db
bin/tests/system/rpz/ns2/bl.tld2.db.in
bin/tests/system/rpz/ns2/blv2.tld2.db.in
bin/tests/system/rpz/ns2/blv3.tld2.db.in
bin/tests/system/rpz/ns2/hints
bin/tests/system/rpz/ns2/named.conf.in
bin/tests/system/rpz/ns2/tld2.db
bin/tests/system/rpz/ns3/base.db
bin/tests/system/rpz/ns3/hints
bin/tests/system/rpz/ns3/named.conf.in
bin/tests/system/rpz/ns4/hints
bin/tests/system/rpz/ns4/named.conf.in
bin/tests/system/rpz/ns4/tld4.db
bin/tests/system/rpz/ns5/hints
bin/tests/system/rpz/ns5/named.conf.in
bin/tests/system/rpz/ns5/tld5.db
bin/tests/system/rpz/ns6/hints
bin/tests/system/rpz/ns6/named.conf.in
bin/tests/system/rpz/prereq.sh
bin/tests/system/rpz/qperf.sh
bin/tests/system/rpz/setup.sh
bin/tests/system/rpz/test1
bin/tests/system/rpz/test2
bin/tests/system/rpz/test3
bin/tests/system/rpz/test4
bin/tests/system/rpz/test4a
bin/tests/system/rpz/test5
bin/tests/system/rpz/tests.sh
bin/tests/system/rrl/setup.sh
bin/tests/system/run.sh
bin/tests/system/runall.sh
bin/tests/system/runsequential.sh [new file with mode: 0644]
bin/tests/system/start.pl
bin/tests/system/stop.pl
bin/tests/system/testsummary.sh [new file with mode: 0644]
bin/tests/system/upforwd/tests.sh
bin/tests/system/xfer/clean.sh
bin/tests/system/xfer/setup.sh
bin/tests/system/zero/clean.sh
lib/isc/tests/Makefile.in

index d228e910f740d69f3f0fb706e2598ff036f22528..e4ffcd3c89b8a713769072e5b817b865efe5b4ec 100644 (file)
@@ -3,3 +3,7 @@ systests.output
 random.data
 named.memstats
 named.run
+**/test.output
+/systests.output
+/random.data
+parallel.mk
index f5db075f9568a2b264efbeb5020b2afe7352b45d..64cf7534f5cd3b121cc46226fa6301b6dcd0f815 100644 (file)
@@ -57,16 +57,16 @@ feature-test@EXEEXT@: feature-test.@O@
 
 PARALLEL = allow_query acl additional addzone autosign \
           builtin cacheclean chain checkconf checknames \
-          checkzone @CHECKDS@ @COVERAGE@ cookie database \
-          digdelv dlv dlz dlzexternal dns64 dnssec dscp dsdigest \
-          ednscompliance emptyzones fetchlimit filter-aaaa \
-          formerr forward geoip glue inline integrity ixfr \
+          checkzone @CHECKDS@ @COVERAGE@ database \
+          digdelv dlv dlz dlzexternal dns64 dnssec \
+          emptyzones fetchlimit filter-aaaa \
+          formerr forward glue inline integrity ixfr \
           legacy limits logfileconfig masterfile masterformat \
           metadata notify nslookup nsupdate pending reclimit \
-          redirect resolver rndc rpz rpzrecurse rrchecker rrl \
+          redirect resolver rndc rpz rrl \
           rrsetorder rsabigexponent runtime smartsign sortlist \
-          spf staticstub statistics statschannel stub \
-          tcp tsig tsiggss unknown upforwd verify views wildcard \
+          spf staticstub stub \
+          tsig tsiggss unknown upforwd verify views wildcard \
           xfer xferquota zero zonechecks
 
 # Produce intermediate makefile that assigns unique port numbers to each
@@ -80,7 +80,7 @@ PARALLEL = allow_query acl additional addzone autosign \
 .PHONY: parallel.mk
 
 parallel.mk:
-       PARALLEL_SANITIZED=`echo $(PARALLEL) | sed "s|\([^ ][^ ]*\)|test-\1|g;" | tr _ -` ; \
+       @PARALLEL_SANITIZED=`echo $(PARALLEL) | sed "s|\([^ ][^ ]*\)|test-\1|g;" | tr _ -` ; \
        echo ".PHONY: $$PARALLEL_SANITIZED" > $@ ; \
        echo "" >> $@ ; \
        echo "test check: $$PARALLEL_SANITIZED" >> $@ ; \
index eccf6859f5fe260791684dcff775807b21bfeab6..d9bb4d21e9b7ea288d2c7e842a5173f521a127d6 100644 (file)
@@ -14,6 +14,8 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
+include "../../common/rndc.key";
+
 controls {
        inet 10.53.0.1 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
 };
index aa472a4b7730757ab74fd38c6ad820c88c0ffed0..0821945e20b5fca63743db38899f2a67b6706b0e 100644 (file)
@@ -19,6 +19,8 @@ SYSTEMTESTTOP=..
 
 $SHELL clean.sh
 
+copy_setports ns1/named.conf.in ns1/named.conf
+
 copy_setports ns2/named1.conf.in ns2/named.conf
 cp -f ns2/default.nzf.in ns2/3bf305731dd26307.nzf
 
diff --git a/bin/tests/system/allow_query/.gitignore b/bin/tests/system/allow_query/.gitignore
new file mode 100644 (file)
index 0000000..f928597
--- /dev/null
@@ -0,0 +1,2 @@
+/ns2/named.conf
+/ns2/controls.conf
index 0c353d0a09b2c97ece19e8bb629bef1d72b492b3..a1aa924a508d923900c119363d32aa5fdb9c8a9a 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright (C) 2010, 2012, 2015  Internet Systems Consortium, Inc. ("ISC")
+# Copyright (C) 2010, 2012, 2015, 2018  Internet Systems Consortium, Inc. ("ISC")
 #
 # Permission to use, copy, modify, and/or distribute this software for any
 # purpose with or without fee is hereby granted, provided that the above
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: clean.sh,v 1.2 2010/11/16 01:37:36 sar Exp $
-
 #
 # Clean up after allow query tests.
 #
 
 rm -f dig.out.*
-rm -f ns2/named.conf
+rm -f ns2/named.conf ns2/controls.conf
 rm -f */named.memstats
 rm -f ns*/named.run
diff --git a/bin/tests/system/allow_query/ns2/named01.conf.in b/bin/tests/system/allow_query/ns2/named01.conf.in
new file mode 100644 (file)
index 0000000..ba61fbc
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+ * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+ * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
+options {
+       port @PORT@;
+       pid-file "named.pid";
+       listen-on { 10.53.0.2; };
+       listen-on-v6 { none; };
+       recursion no;
+};
+
+include "controls.conf";
+
+zone "." {
+       type hint;
+       file "../../common/root.hint";
+};
+
+zone "normal.example" {
+       type master;
+       file "normal.db";
+};
similarity index 80%
rename from bin/tests/system/allow_query/ns2/named02.conf
rename to bin/tests/system/allow_query/ns2/named02.conf.in
index d6b1187a744353f9354c3f920b66cdb4e42ec792..f764415d0788ebd2ac0e84bc54791cd63ead61d2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named02.conf,v 1.2 2010/11/16 01:37:37 sar Exp $ */
-
-controls { /* empty */ };
-
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
        allow-query { any; };
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 zone "." {
        type hint;
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named03.conf
rename to bin/tests/system/allow_query/ns2/named03.conf.in
index 5a033d6916727e1b1ef104e5b4955fb6072d3235..2afeeef8b17da81750696223741b8036e7484ad4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named03.conf,v 1.2 2010/11/16 01:37:37 sar Exp $ */
-
-controls { /* empty */ };
-
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
        allow-query { none; };
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 zone "." {
        type hint;
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named04.conf
rename to bin/tests/system/allow_query/ns2/named04.conf.in
index 2ec251609a1194ca2aae7f11a25e55ff679f5413..c7ffa8471ce3bc7a8572ef1ed25d04cd25d5e986 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named04.conf,v 1.2 2010/11/16 01:37:37 sar Exp $ */
-
-controls { /* empty */ };
-
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
        allow-query { 10.53.0.2; };
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 zone "." {
        type hint;
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named05.conf
rename to bin/tests/system/allow_query/ns2/named05.conf.in
index 56dc508f2238bf089a7fccd346d5c01576049be7..6ec5e83b56d3a835dc333104dd3ec97a8a7a6a45 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named05.conf,v 1.2 2010/11/16 01:37:38 sar Exp $ */
-
-controls { /* empty */ };
-
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
        allow-query { 10.53.0.1; };
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 zone "." {
        type hint;
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named06.conf
rename to bin/tests/system/allow_query/ns2/named06.conf.in
index 4af7dda30b94f9939c862aa5ec2cbd81a7e71e64..e5b36eba3c2a7618cd6f54317b4eec91ca518794 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named06.conf,v 1.2 2010/11/16 01:37:38 sar Exp $ */
-
-controls { /* empty */ };
-
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
        allow-query {! 10.53.0.2; };
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 zone "." {
        type hint;
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named07.conf
rename to bin/tests/system/allow_query/ns2/named07.conf.in
index 7438b632101a1aacd5fb62839e57774b7ee5b4f7..9b5c76109fe05ac7e9f8488a523a6ebd249b0f0d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named07.conf,v 1.2 2010/11/16 01:37:38 sar Exp $ */
-
-controls { /* empty */ };
-
 acl accept { 10.53.0.2; };
 
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
        allow-query { accept; };
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 zone "." {
        type hint;
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named08.conf
rename to bin/tests/system/allow_query/ns2/named08.conf.in
index 16ab1c8ba1d27afa66143fde0dced02a4f80a33f..79ffebbe5a2fc9dcbc042d7fcf34e23fb7a8c165 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named08.conf,v 1.2 2010/11/16 01:37:38 sar Exp $ */
-
-controls { /* empty */ };
-
 acl accept { 10.53.0.1; };
 
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
        allow-query { accept; };
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 zone "." {
        type hint;
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named09.conf
rename to bin/tests/system/allow_query/ns2/named09.conf.in
index 468baee5bd2aef5a29430875e077dbfdaaf648d2..2b739e8ded56d7f731669cbda6fd3c519c50d66b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named09.conf,v 1.2 2010/11/16 01:37:38 sar Exp $ */
-
-controls { /* empty */ };
-
 acl accept { 10.53.0.2; };
 
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
        allow-query {! accept; };
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 zone "." {
        type hint;
diff --git a/bin/tests/system/allow_query/ns2/named10.conf b/bin/tests/system/allow_query/ns2/named10.conf
deleted file mode 100644 (file)
index 17786e6..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: named10.conf,v 1.2 2010/11/16 01:37:38 sar Exp $ */
-
-
-controls { /* empty */ };
-
-key one {
-        algorithm hmac-md5;
-        secret "1234abcd8765";
-};
-
-options {
-       port 5300;
-       pid-file "named.pid";
-       listen-on { 10.53.0.2; };
-       listen-on-v6 { none; };
-        recursion no;
-       allow-query { key one; };
-};
-
-include "../../common/controls.conf";
-
-zone "." {
-       type hint;
-       file "../../common/root.hint";
-};
-
-zone "normal.example" {
-       type master;
-       file "normal.db";
-};
similarity index 80%
rename from bin/tests/system/allow_query/ns2/named01.conf
rename to bin/tests/system/allow_query/ns2/named10.conf.in
index ea0f22ef23ca21de0a78793dfdec48c371fef520..6c803635617baae24a97af141818aa3a682ad108 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named01.conf,v 1.2 2010/11/16 01:37:37 sar Exp $ */
-
-controls { /* empty */ };
+key one {
+       algorithm hmac-md5;
+       secret "1234abcd8765";
+};
 
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
+       allow-query { key one; };
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 zone "." {
        type hint;
diff --git a/bin/tests/system/allow_query/ns2/named11.conf b/bin/tests/system/allow_query/ns2/named11.conf
deleted file mode 100644 (file)
index 3d225bd..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: named11.conf,v 1.2 2010/11/16 01:37:38 sar Exp $ */
-
-
-controls { /* empty */ };
-
-key one {
-        algorithm hmac-md5;
-        secret "1234abcd8765";
-};
-
-key two {
-        algorithm hmac-md5;
-        secret "1234efgh8765";
-};
-
-
-options {
-       port 5300;
-       pid-file "named.pid";
-       listen-on { 10.53.0.2; };
-       listen-on-v6 { none; };
-        recursion no;
-       allow-query { key one; };
-};
-
-include "../../common/controls.conf";
-
-zone "." {
-       type hint;
-       file "../../common/root.hint";
-};
-
-zone "normal.example" {
-       type master;
-       file "normal.db";
-};
diff --git a/bin/tests/system/allow_query/ns2/named11.conf.in b/bin/tests/system/allow_query/ns2/named11.conf.in
new file mode 100644 (file)
index 0000000..aec64f5
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+ * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+ * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
+key one {
+       algorithm hmac-md5;
+       secret "1234abcd8765";
+};
+
+key two {
+       algorithm hmac-md5;
+       secret "1234efgh8765";
+};
+
+
+options {
+       port @PORT@;
+       pid-file "named.pid";
+       listen-on { 10.53.0.2; };
+       listen-on-v6 { none; };
+       recursion no;
+       allow-query { key one; };
+};
+
+include "controls.conf";
+
+zone "." {
+       type hint;
+       file "../../common/root.hint";
+};
+
+zone "normal.example" {
+       type master;
+       file "normal.db";
+};
diff --git a/bin/tests/system/allow_query/ns2/named12.conf b/bin/tests/system/allow_query/ns2/named12.conf
deleted file mode 100644 (file)
index e5e6418..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: named12.conf,v 1.2 2010/11/16 01:37:38 sar Exp $ */
-
-controls { /* empty */ };
-
-key one {
-        algorithm hmac-md5;
-        secret "1234abcd8765";
-};
-
-options {
-       port 5300;
-       pid-file "named.pid";
-       listen-on { 10.53.0.2; };
-       listen-on-v6 { none; };
-        recursion no;
-       allow-query {! key one; };
-};
-
-include "../../common/controls.conf";
-
-zone "." {
-       type hint;
-       file "../../common/root.hint";
-};
-
-zone "normal.example" {
-       type master;
-       file "normal.db";
-};
diff --git a/bin/tests/system/allow_query/ns2/named12.conf.in b/bin/tests/system/allow_query/ns2/named12.conf.in
new file mode 100644 (file)
index 0000000..4aa67da
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+ * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+ * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
+key one {
+       algorithm hmac-md5;
+       secret "1234abcd8765";
+};
+
+options {
+       port @PORT@;
+       pid-file "named.pid";
+       listen-on { 10.53.0.2; };
+       listen-on-v6 { none; };
+       recursion no;
+       allow-query {! key one; };
+};
+
+include "controls.conf";
+
+zone "." {
+       type hint;
+       file "../../common/root.hint";
+};
+
+zone "normal.example" {
+       type master;
+       file "normal.db";
+};
diff --git a/bin/tests/system/allow_query/ns2/named21.conf.in b/bin/tests/system/allow_query/ns2/named21.conf.in
new file mode 100644 (file)
index 0000000..797ca0a
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+ * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+ * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
+options {
+       port @PORT@;
+       pid-file "named.pid";
+       listen-on { 10.53.0.2; };
+       listen-on-v6 { none; };
+       recursion no;
+};
+
+include "controls.conf";
+
+view "internal" {
+
+       zone "." {
+               type hint;
+               file "../../common/root.hint";
+       };
+
+       zone "normal.example" {
+               type master;
+               file "normal.db";
+       };
+};
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named22.conf
rename to bin/tests/system/allow_query/ns2/named22.conf.in
index 78d492d85607a4f023c684157430378cfd098a81..8a61c94b1df1878caee036670a5998d609e8ebf3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named22.conf,v 1.2 2010/11/16 01:37:38 sar Exp $ */
-
-controls { /* empty */ };
-
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 view "internal" {
 
@@ -42,4 +38,4 @@ view "internal" {
                file "normal.db";
        };
 
-};
\ No newline at end of file
+};
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named23.conf
rename to bin/tests/system/allow_query/ns2/named23.conf.in
index 1e85ed789d68b0ff8bfb351f41f72ab347682467..44aab0d7599e3fcf9d804670d4b620cc178d6b6a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named23.conf,v 1.2 2010/11/16 01:37:38 sar Exp $ */
-
-controls { /* empty */ };
-
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 view "internal" {
 
@@ -42,4 +38,3 @@ view "internal" {
                file "normal.db";
        };
 };
-
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named24.conf
rename to bin/tests/system/allow_query/ns2/named24.conf.in
index 68618bdd38494ec3d82b5dfc950f1b5f54269f27..3b54538d21e139e01905774e38b79523913b36bc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named24.conf,v 1.2 2010/11/16 01:37:38 sar Exp $ */
-
-controls { /* empty */ };
-
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 view "internal" {
 
@@ -41,4 +37,4 @@ view "internal" {
                type master;
                file "normal.db";
        };
-};
\ No newline at end of file
+};
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named25.conf
rename to bin/tests/system/allow_query/ns2/named25.conf.in
index 48a73df6976b1472da8a654396e0440caecf41a0..15cae6a347113e36ee71a840f0ac0cf4f4ab4b3d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named25.conf,v 1.2 2010/11/16 01:37:38 sar Exp $ */
-
-controls { /* empty */ };
-
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 view "internal" {
 
@@ -41,4 +37,4 @@ view "internal" {
                type master;
                file "normal.db";
        };
-};
\ No newline at end of file
+};
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named26.conf
rename to bin/tests/system/allow_query/ns2/named26.conf.in
index ad9cd6ac1ca852aa38e365c74096e7c212e09df1..9ad831f5c37a5f56acfd48b2c82cfd8abab2e7f9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named26.conf,v 1.2 2010/11/16 01:37:38 sar Exp $ */
-
-controls { /* empty */ };
-
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 view "internal" {
 
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named27.conf
rename to bin/tests/system/allow_query/ns2/named27.conf.in
index 4f39625978a100553c5ddbf769f6ddaa96f1e2e8..c62f3607acc961acd6acc13c8df2465f49c2c944 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named27.conf,v 1.2 2010/11/16 01:37:38 sar Exp $ */
-
-controls { /* empty */ };
-
 acl accept { 10.53.0.2; };
 
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 view "internal" {
 
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named28.conf
rename to bin/tests/system/allow_query/ns2/named28.conf.in
index 0a33ae0a47cb44e00bf1023f3d8248affe072954..b9d7d2bd0ca82aae1c1b7d4bb9c21a712c1ca870 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named28.conf,v 1.2 2010/11/16 01:37:38 sar Exp $ */
-
-controls { /* empty */ };
-
 acl accept { 10.53.0.1; };
 
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 view "internal" {
 
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named29.conf
rename to bin/tests/system/allow_query/ns2/named29.conf.in
index d27d0f91eac2b32f4508e4dd4fdc5fc52aa64bad..8c482662921e34e407300cbffd5b58b0be37f2d9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named29.conf,v 1.2 2010/11/16 01:37:39 sar Exp $ */
-
-controls { /* empty */ };
-
 acl accept { 10.53.0.2; };
 
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 view "internal" {
 
similarity index 79%
rename from bin/tests/system/allow_query/ns2/named21.conf
rename to bin/tests/system/allow_query/ns2/named30.conf.in
index 1b6a507282336d07f5a69ddd5af00c29fdb9cc48..94ed507ac724358af36bbb718e4f073b63fe731a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named21.conf,v 1.2 2010/11/16 01:37:38 sar Exp $ */
-
-controls { /* empty */ };
+key one {
+       algorithm hmac-md5;
+       secret "1234abcd8765";
+};
 
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 view "internal" {
 
+       allow-query { key one; };
+
        zone "." {
                type hint;
                file "../../common/root.hint";
        };
 
        zone "normal.example" {
-               type master;
+               type master;
                file "normal.db";
        };
 };
diff --git a/bin/tests/system/allow_query/ns2/named31.conf b/bin/tests/system/allow_query/ns2/named31.conf
deleted file mode 100644 (file)
index 19efdf3..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: named31.conf,v 1.2 2010/11/16 01:37:39 sar Exp $ */
-
-
-controls { /* empty */ };
-
-key one {
-        algorithm hmac-md5;
-        secret "1234abcd8765";
-};
-
-key two {
-        algorithm hmac-md5;
-        secret "1234efgh8765";
-};
-
-
-options {
-       port 5300;
-       pid-file "named.pid";
-       listen-on { 10.53.0.2; };
-       listen-on-v6 { none; };
-        recursion no;
-       allow-query { key one; };
-};
-
-include "../../common/controls.conf";
-
-view "internal" {
-
-       allow-query { key one; };
-
-       zone "." {
-               type hint;
-               file "../../common/root.hint";
-       };
-
-       zone "normal.example" {
-               type master;
-               file "normal.db";
-       };
-};
\ No newline at end of file
similarity index 78%
rename from bin/tests/system/allow_query/ns2/named30.conf
rename to bin/tests/system/allow_query/ns2/named31.conf.in
index 9182f21af3dbdd4b0f6789a5fbd6f12db7a98057..aece008dd7cdeb29e950c0e9501b2ddf8ed773b9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named30.conf,v 1.2 2010/11/16 01:37:39 sar Exp $ */
-
-
-controls { /* empty */ };
-
 key one {
-        algorithm hmac-md5;
-        secret "1234abcd8765";
+       algorithm hmac-md5;
+       secret "1234abcd8765";
 };
 
+key two {
+       algorithm hmac-md5;
+       secret "1234efgh8765";
+};
+
+
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
+       allow-query { key one; };
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 view "internal" {
 
diff --git a/bin/tests/system/allow_query/ns2/named32.conf b/bin/tests/system/allow_query/ns2/named32.conf
deleted file mode 100644 (file)
index 3c207f3..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: named32.conf,v 1.2 2010/11/16 01:37:39 sar Exp $ */
-
-controls { /* empty */ };
-
-key one {
-        algorithm hmac-md5;
-        secret "1234abcd8765";
-};
-
-options {
-       port 5300;
-       pid-file "named.pid";
-       listen-on { 10.53.0.2; };
-       listen-on-v6 { none; };
-        recursion no;
-};
-
-include "../../common/controls.conf";
-
-view "internal" {
-
-       allow-query {! key one; };
-
-       zone "." {
-               type hint;
-               file "../../common/root.hint";
-       };
-
-       zone "normal.example" {
-               type master;
-               file "normal.db";
-       };
-};
diff --git a/bin/tests/system/allow_query/ns2/named32.conf.in b/bin/tests/system/allow_query/ns2/named32.conf.in
new file mode 100644 (file)
index 0000000..9d28c73
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+ * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+ * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
+key one {
+       algorithm hmac-md5;
+       secret "1234abcd8765";
+};
+
+options {
+       port @PORT@;
+       pid-file "named.pid";
+       listen-on { 10.53.0.2; };
+       listen-on-v6 { none; };
+       recursion no;
+};
+
+include "controls.conf";
+
+view "internal" {
+
+       allow-query {! key one; };
+
+       zone "." {
+               type hint;
+               file "../../common/root.hint";
+       };
+
+       zone "normal.example" {
+               type master;
+               file "normal.db";
+       };
+};
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named34.conf
rename to bin/tests/system/allow_query/ns2/named33.conf.in
index 177b3365786c2f9a4d2ca2854f4740d541e8f2ef..4d0381ba478ad48ab2f3ea4760e1f01124a6e3ad 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named34.conf,v 1.2 2010/11/16 01:37:39 sar Exp $ */
-
-controls { /* empty */ };
-
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
-       allow-query { any; };
+       recursion no;
+       allow-query { none; };
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 view "internal" {
 
-       allow-query { none; };
+       allow-query { any; };
 
        zone "." {
                type hint;
@@ -42,4 +38,5 @@ view "internal" {
                type master;
                file "normal.db";
        };
+
 };
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named33.conf
rename to bin/tests/system/allow_query/ns2/named34.conf.in
index d5683e302b114c1f012a66c5c2051a5f4c51e1c1..1a6e6a4af8c5479d0179c6060aa909795f67060f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named33.conf,v 1.2 2010/11/16 01:37:39 sar Exp $ */
-
-controls { /* empty */ };
-
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
-       allow-query { none; };
+       recursion no;
+       allow-query { any; };
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 view "internal" {
 
-       allow-query { any; };
+       allow-query { none; };
 
        zone "." {
                type hint;
@@ -42,5 +38,4 @@ view "internal" {
                type master;
                file "normal.db";
        };
-
 };
similarity index 82%
rename from bin/tests/system/allow_query/ns2/named40.conf
rename to bin/tests/system/allow_query/ns2/named40.conf.in
index cb81c79e5d474308f6304daed7c80c55b6b74357..3ed8646290bfffd940b3b7b9299263462a4e547c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named40.conf,v 1.2 2010/11/16 01:37:39 sar Exp $ */
+acl accept { 10.53.0.2; };
 
-controls { /* empty */ };
-
-acl accept { 10.53.0.2; }; 
-
-acl badaccept { 10.53.0.1; }; 
+acl badaccept { 10.53.0.1; };
 
 key one {
-        algorithm hmac-md5;
-        secret "1234abcd8765";
+       algorithm hmac-md5;
+       secret "1234abcd8765";
 };
 
 key two {
-        algorithm hmac-md5;
-        secret "1234efgh8765";
+       algorithm hmac-md5;
+       secret "1234efgh8765";
 };
 
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 zone "." {
        type hint;
@@ -112,5 +108,3 @@ zone "keydisallow.example" {
        file "keydisallow.db";
        allow-query { ! key one; };
 };
-
-
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named54.conf
rename to bin/tests/system/allow_query/ns2/named53.conf.in
index 4a3b95fd304a151dc1980e8b53d6659c6dbe7937..951b08456c2e8183616f724bce895033dc6b4bcc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named54.conf,v 1.2 2010/11/16 01:37:39 sar Exp $ */
-
-controls { /* empty */ };
-
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
-       allow-query { any; };
+       recursion no;
+       allow-query { none; };
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 zone "." {
        type hint;
@@ -37,5 +33,5 @@ zone "." {
 zone "normal.example" {
        type master;
        file "normal.db";
-       allow-query { none; };
+       allow-query { any; };
 };
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named53.conf
rename to bin/tests/system/allow_query/ns2/named54.conf.in
index b5b7e9ee166c83320d66373c919a725d18afbc19..036a6cc852a178654eb907ca12eac967a08073a2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named53.conf,v 1.2 2010/11/16 01:37:39 sar Exp $ */
-
-controls { /* empty */ };
-
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
-       allow-query { none; };
+       recursion no;
+       allow-query { any; };
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 zone "." {
        type hint;
@@ -37,5 +33,5 @@ zone "." {
 zone "normal.example" {
        type master;
        file "normal.db";
-       allow-query { any; };
+       allow-query { none; };
 };
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named55.conf
rename to bin/tests/system/allow_query/ns2/named55.conf.in
index a79f12768971af970c66bf21e7a81c205bffc584..7391dfee297f4e99d00ea427153b5393aa3595ac 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named55.conf,v 1.2 2010/11/16 01:37:39 sar Exp $ */
-
-controls { /* empty */ };
-
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 view "internal" {
 
similarity index 81%
rename from bin/tests/system/allow_query/ns2/named56.conf
rename to bin/tests/system/allow_query/ns2/named56.conf.in
index 20bb98fec4c4f2fcdacbb60d3998b9c6de154a6c..68d4649de6b907404d4f8ed85cbc7b0963eec1df 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2010, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named56.conf,v 1.2 2010/11/16 01:37:39 sar Exp $ */
-
-controls { /* empty */ };
-
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
-        recursion no;
+       recursion no;
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 view "internal" {
 
similarity index 88%
rename from bin/tests/system/allow_query/ns2/named57.conf
rename to bin/tests/system/allow_query/ns2/named57.conf.in
index 881e6a711bc88910cd067ddc75b09abbc8550452..4e1c142c304e8a517f61d670ac382134baa30962 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2013, 2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-controls { /* empty */ };
-
 options {
-       port 5300;
+       port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
        listen-on-v6 { none; };
        recursion no;
 };
 
-include "../../common/controls.conf";
+include "controls.conf";
 
 view "internal" {
        allow-query-on { any; };
index 00ae75f69b097ee554f04fe2d429dfc11bb4658f..6d1ddefdbfa520d41d60a48e1cb339a2e0c10826 100644 (file)
@@ -1,6 +1,6 @@
-#!/bin/sh
+#!/bin/sh -e
 #
-# Copyright (C) 2010, 2012  Internet Systems Consortium, Inc. ("ISC")
+# Copyright (C) 2010, 2012, 2018  Internet Systems Consortium, Inc. ("ISC")
 #
 # Permission to use, copy, modify, and/or distribute this software for any
 # purpose with or without fee is hereby granted, provided that the above
@@ -14,6 +14,8 @@
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: setup.sh,v 1.2 2010/11/16 01:37:36 sar Exp $
+SYSTEMTESTTOP=..
+. $SYSTEMTESTTOP/conf.sh
 
-cp -f ns2/named01.conf ns2/named.conf
+copy_setports ../common/controls.conf.in ns2/controls.conf
+copy_setports  ns2/named01.conf.in ns2/named.conf
index be51397554aaae60ae01063365403606e901ddd0..308b97e51a5a6ba65ddf71436a4f8b37ee7287dc 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright (C) 2010, 2012, 2013, 2016  Internet Systems Consortium, Inc. ("ISC")
+# Copyright (C) 2010, 2012, 2013, 2016, 2018  Internet Systems Consortium, Inc. ("ISC")
 #
 # Permission to use, copy, modify, and/or distribute this software for any
 # purpose with or without fee is hereby granted, provided that the above
@@ -14,8 +14,6 @@
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: tests.sh,v 1.3 2010/12/02 23:22:41 marka Exp $
-
 # Test of allow-query statement.
 # allow-query takes an address match list and can be included in either the
 # options statement or in the zone statement.  This test assumes that the
 SYSTEMTESTTOP=..
 . $SYSTEMTESTTOP/conf.sh
 
-DIGOPTS="+tcp +nosea +nostat +nocmd +norec +noques +noauth +noadd +nostats +dnssec -p 5300"
+DIGOPTS="+tcp +nosea +nostat +nocmd +norec +noques +noauth +noadd +nostats +dnssec -p ${PORT}"
+
+rndc_reload() {
+    echo_i "`$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p ${CONTROLPORT} reload 2>&1 | sed 's/^/ns2 /'`"
+}
+
 status=0
 n=0
 
 # Test 1 - default, query allowed
 n=`expr $n + 1`
-echo "I:test $n: default - query allowed"
+echo_i "test $n: default - query allowed"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: NOERROR' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 2 - explicit any, query allowed
 n=`expr $n + 1`
-cp -f ns2/named02.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named02.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: explicit any - query allowed"
+echo_i "test $n: explicit any - query allowed"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: NOERROR' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 3 - none, query refused
 n=`expr $n + 1`
-cp -f ns2/named03.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named03.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: none - query refused"
+echo_i "test $n: none - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 4 - address allowed, query allowed
 n=`expr $n + 1`
-cp -f ns2/named04.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named04.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: address allowed - query allowed"
+echo_i "test $n: address allowed - query allowed"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: NOERROR' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 5 - address not allowed, query refused
 n=`expr $n + 1`
-cp -f ns2/named05.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named05.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: address not allowed - query refused"
+echo_i "test $n: address not allowed - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 6 - address disallowed, query refused
 n=`expr $n + 1`
-cp -f ns2/named06.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named06.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: address disallowed - query refused"
+echo_i "test $n: address disallowed - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 7 - acl allowed, query allowed
 n=`expr $n + 1`
-cp -f ns2/named07.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named07.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: acl allowed - query allowed"
+echo_i "test $n: acl allowed - query allowed"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: NOERROR' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 8 - acl not allowed, query refused
 n=`expr $n + 1`
-cp -f ns2/named08.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named08.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: acl not allowed - query refused"
+echo_i "test $n: acl not allowed - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 
 # Test 9 - acl disallowed, query refused
 n=`expr $n + 1`
-cp -f ns2/named09.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named09.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: acl disallowed - query refused"
+echo_i "test $n: acl disallowed - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 10 - key allowed, query allowed
 n=`expr $n + 1`
-cp -f ns2/named10.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named10.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: key allowed - query allowed"
+echo_i "test $n: key allowed - query allowed"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 -y one:1234abcd8765 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: NOERROR' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 11 - key not allowed, query refused
 n=`expr $n + 1`
-cp -f ns2/named11.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named11.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: key not allowed - query refused"
+echo_i "test $n: key not allowed - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 -y two:1234efgh8765 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 12 - key disallowed, query refused
 n=`expr $n + 1`
-cp -f ns2/named12.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named12.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: key disallowed - query refused"
+echo_i "test $n: key disallowed - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 -y one:1234abcd8765 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # The next set of tests check if allow-query works in a view
@@ -234,198 +237,198 @@ status=`expr $status + $ret`
 n=20
 # Test 21 - views default, query allowed
 n=`expr $n + 1`
-cp -f ns2/named21.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named21.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: views default - query allowed"
+echo_i "test $n: views default - query allowed"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: NOERROR' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 22 - views explicit any, query allowed
 n=`expr $n + 1`
-cp -f ns2/named22.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named22.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: views explicit any - query allowed"
+echo_i "test $n: views explicit any - query allowed"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: NOERROR' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 23 - views none, query refused
 n=`expr $n + 1`
-cp -f ns2/named23.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named23.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: views none - query refused"
+echo_i "test $n: views none - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 24 - views address allowed, query allowed
 n=`expr $n + 1`
-cp -f ns2/named24.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named24.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: views address allowed - query allowed"
+echo_i "test $n: views address allowed - query allowed"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: NOERROR' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 25 - views address not allowed, query refused
 n=`expr $n + 1`
-cp -f ns2/named25.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named25.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: views address not allowed - query refused"
+echo_i "test $n: views address not allowed - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 26 - views address disallowed, query refused
 n=`expr $n + 1`
-cp -f ns2/named26.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named26.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: views address disallowed - query refused"
+echo_i "test $n: views address disallowed - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 27 - views acl allowed, query allowed
 n=`expr $n + 1`
-cp -f ns2/named27.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named27.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: views acl allowed - query allowed"
+echo_i "test $n: views acl allowed - query allowed"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: NOERROR' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 28 - views acl not allowed, query refused
 n=`expr $n + 1`
-cp -f ns2/named28.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named28.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: views acl not allowed - query refused"
+echo_i "test $n: views acl not allowed - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 29 - views acl disallowed, query refused
 n=`expr $n + 1`
-cp -f ns2/named29.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named29.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: views acl disallowed - query refused"
+echo_i "test $n: views acl disallowed - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 30 - views key allowed, query allowed
 n=`expr $n + 1`
-cp -f ns2/named30.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named30.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: views key allowed - query allowed"
+echo_i "test $n: views key allowed - query allowed"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 -y one:1234abcd8765 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: NOERROR' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 31 - views key not allowed, query refused
 n=`expr $n + 1`
-cp -f ns2/named31.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named31.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: views key not allowed - query refused"
+echo_i "test $n: views key not allowed - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 -y two:1234efgh8765 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 32 - views key disallowed, query refused
 n=`expr $n + 1`
-cp -f ns2/named32.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named32.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: views key disallowed - query refused"
+echo_i "test $n: views key disallowed - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 -y one:1234abcd8765 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 33 - views over options, views allow, query allowed
 n=`expr $n + 1`
-cp -f ns2/named33.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named33.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: views over options, views allow - query allowed"
+echo_i "test $n: views over options, views allow - query allowed"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: NOERROR' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 34 - views over options, views disallow, query refused
 n=`expr $n + 1`
-cp -f ns2/named34.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named34.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: views over options, views disallow - query refused"
+echo_i "test $n: views over options, views disallow - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Tests for allow-query in the zone statements
@@ -434,191 +437,191 @@ n=40
 
 # Test 41 - zone default, query allowed
 n=`expr $n + 1`
-cp -f ns2/named40.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named40.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: zone default - query allowed"
+echo_i "test $n: zone default - query allowed"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: NOERROR' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 42 - zone explicit any, query allowed
 n=`expr $n + 1`
-echo "I:test $n: zone explicit any - query allowed"
+echo_i "test $n: zone explicit any - query allowed"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.any.example a > dig.out.ns2.$n || ret=1
 grep 'status: NOERROR' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.any.example' dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 43 - zone none, query refused
 n=`expr $n + 1`
-echo "I:test $n: zone none - query refused"
+echo_i "test $n: zone none - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.none.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.none.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 44 - zone address allowed, query allowed
 n=`expr $n + 1`
-echo "I:test $n: zone address allowed - query allowed"
+echo_i "test $n: zone address allowed - query allowed"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.addrallow.example a > dig.out.ns2.$n || ret=1
 grep 'status: NOERROR' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.addrallow.example' dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 45 - zone address not allowed, query refused
 n=`expr $n + 1`
-echo "I:test $n: zone address not allowed - query refused"
+echo_i "test $n: zone address not allowed - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.addrnotallow.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.addrnotallow.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 46 - zone address disallowed, query refused
 n=`expr $n + 1`
-echo "I:test $n: zone address disallowed - query refused"
+echo_i "test $n: zone address disallowed - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.addrdisallow.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.addrdisallow.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 47 - zone acl allowed, query allowed
 n=`expr $n + 1`
-echo "I:test $n: zone acl allowed - query allowed"
+echo_i "test $n: zone acl allowed - query allowed"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.aclallow.example a > dig.out.ns2.$n || ret=1
 grep 'status: NOERROR' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.aclallow.example' dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 48 - zone acl not allowed, query refused
 n=`expr $n + 1`
-echo "I:test $n: zone acl not allowed - query refused"
+echo_i "test $n: zone acl not allowed - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.aclnotallow.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.aclnotallow.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 49 - zone acl disallowed, query refused
 n=`expr $n + 1`
-echo "I:test $n: zone acl disallowed - query refused"
+echo_i "test $n: zone acl disallowed - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.acldisallow.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.acldisallow.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 50 - zone key allowed, query allowed
 n=`expr $n + 1`
-echo "I:test $n: zone key allowed - query allowed"
+echo_i "test $n: zone key allowed - query allowed"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 -y one:1234abcd8765 a.keyallow.example a > dig.out.ns2.$n || ret=1
 grep 'status: NOERROR' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.keyallow.example' dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 51 - zone key not allowed, query refused
 n=`expr $n + 1`
-echo "I:test $n: zone key not allowed - query refused"
+echo_i "test $n: zone key not allowed - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 -y two:1234efgh8765 a.keyallow.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.keyallow.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 52 - zone key disallowed, query refused
 n=`expr $n + 1`
-echo "I:test $n: zone key disallowed - query refused"
+echo_i "test $n: zone key disallowed - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 -y one:1234abcd8765 a.keydisallow.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.keydisallow.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 53 - zones over options, zones allow, query allowed
 n=`expr $n + 1`
-cp -f ns2/named53.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named53.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: views over options, views allow - query allowed"
+echo_i "test $n: views over options, views allow - query allowed"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: NOERROR' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 54 - zones over options, zones disallow, query refused
 n=`expr $n + 1`
-cp -f ns2/named54.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named54.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: views over options, views disallow - query refused"
+echo_i "test $n: views over options, views disallow - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 55 - zones over views, zones allow, query allowed
 n=`expr $n + 1`
-cp -f ns2/named55.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named55.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: zones over views, views allow - query allowed"
+echo_i "test $n: zones over views, views allow - query allowed"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: NOERROR' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 56 - zones over views, zones disallow, query refused
 n=`expr $n + 1`
-cp -f ns2/named56.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named56.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: zones over views, views disallow - query refused"
+echo_i "test $n: zones over views, views disallow - query refused"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.$n > /dev/null || ret=1
 grep '^a.normal.example' dig.out.ns2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # Test 57 - zones over views, zones disallow, query refused (allow-query-on)
 n=`expr $n + 1`
-cp -f ns2/named57.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
+copy_setports ns2/named57.conf.in ns2/named.conf
+rndc_reload
 sleep 5
 
-echo "I:test $n: zones over views, allow-query-on"
+echo_i "test $n: zones over views, allow-query-on"
 ret=0
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.normal.example a > dig.out.ns2.1.$n || ret=1
 grep 'status: NOERROR' dig.out.ns2.1.$n > /dev/null || ret=1
@@ -626,8 +629,8 @@ grep '^a.normal.example' dig.out.ns2.1.$n > /dev/null || ret=1
 $DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.aclnotallow.example a > dig.out.ns2.2.$n || ret=1
 grep 'status: REFUSED' dig.out.ns2.2.$n > /dev/null || ret=1
 grep '^a.aclnotallow.example' dig.out.ns2.2.$n > /dev/null && ret=1
-if [ $ret != 0 ]; then echo "I:failed"; fi
+if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
-echo "I:exit status: $status"
+echo_i "exit status: $status"
 [ $status -eq 0 ] || exit 1
index eea6181cb9c6e1afbdb8d16b4cc6ae922ac5b0ff..ca082af277365bb483dff12f8335dd47eae79fb0 100755 (executable)
@@ -1221,7 +1221,9 @@ rekey_calls=`grep "zone reconf.example.*next key event" ns3/named.run | wc -l`
 [ "$rekey_calls" -eq 0 ] || ret=1
 # ...then we add auto-dnssec and reconfigure
 nzf=`ls ns3/*.nzf`
-$RNDCCMD 10.53.0.3 modzone reconf.example '{ type master; file "reconf.example.db"; allow-update { any; }; auto-dnssec maintain; };' > $nzf
+
+echo 'zone reconf.example { type master; file "reconf.example.db"; allow-update
+ { any; }; auto-dnssec maintain; };' > $nzf
 $RNDCCMD 10.53.0.3 reconfig 2>&1 | sed 's/^/I:ns3 /'
 for i in 0 1 2 3 4 5 6 7 8 9; do
     lret=0
index f33f28e689fe6c001b20217d717a5a194e077024..4d80364cfd246048dd2cfd9f10071f90f605530d 100644 (file)
@@ -30,7 +30,7 @@ grep "received control channel command 'reconfig'" ns1/named.run > /dev/null ||
 grep "reloading configuration succeeded" ns1/named.run > /dev/null || ret=1
 sleep 1
 grep "zone serial (0) unchanged." ns1/named.run > /dev/null && ret=1
-if [ $ret != 0 ] ; then echo_i "failed; status=`expr $status + $ret`"; fi
+if [ $ret != 0 ] ; then echo_i "failed"; status=`expr $status + $ret`; fi
 
 n=`expr $n + 1`
 echo_i "Checking that reloading empty zones is silent ($n)"
@@ -41,7 +41,7 @@ grep "received control channel command 'reload'" ns1/named.run > /dev/null || re
 grep "reloading configuration succeeded" ns1/named.run > /dev/null || ret=1
 sleep 1
 grep "zone serial (0) unchanged." ns1/named.run > /dev/null && ret=1
-if [ $ret != 0 ] ; then echo_i "failed; status=`expr $status + $ret`"; fi
+if [ $ret != 0 ] ; then echo_i "failed"; status=`expr $status + $ret`; fi
 
 VERSION=`../../../../isc-config.sh  --version | cut -d = -f 2`
 HOSTNAME=`$FEATURETEST --gethostname`
@@ -52,42 +52,42 @@ ret=0
 echo_i "Checking that default version works for rndc ($n)"
 $RNDCCMD 10.53.0.1 status > rndc.status.ns1.$n 2>&1
 grep "^version: BIND $VERSION " rndc.status.ns1.$n > /dev/null || ret=1
-if [ $ret != 0 ] ; then echo_i "failed; status=`expr $status + $ret`"; fi
+if [ $ret != 0 ] ; then echo_i "failed"; status=`expr $status + $ret`; fi
 
 n=`expr $n + 1`
 ret=0
 echo_i "Checking that custom version works for rndc ($n)"
 $RNDCCMD 10.53.0.3 status > rndc.status.ns3.$n 2>&1
 grep "^version: BIND $VERSION ${DESCRIPTION}${DESCRIPTION:+ }<id:........*> (this is a test of version)" rndc.status.ns3.$n > /dev/null || ret=1
-if [ $ret != 0 ] ; then echo_i "failed; status=`expr $status + $ret`"; fi
+if [ $ret != 0 ] ; then echo_i "failed"; status=`expr $status + $ret`; fi
 
 n=`expr $n + 1`
 ret=0
 echo_i "Checking that default version works for query ($n)"
 $DIG $DIGOPTS +short version.bind txt ch @10.53.0.1 > dig.out.ns1.$n
 grep "^\"$VERSION\"$" dig.out.ns1.$n > /dev/null || ret=1
-if [ $ret != 0 ] ; then echo_i "failed; status=`expr $status + $ret`"; fi
+if [ $ret != 0 ] ; then echo_i "failed"; status=`expr $status + $ret`; fi
 
 n=`expr $n + 1`
 ret=0
 echo_i "Checking that custom version works for query ($n)"
 $DIG $DIGOPTS +short version.bind txt ch @10.53.0.3 > dig.out.ns3.$n
 grep "^\"this is a test of version\"$" dig.out.ns3.$n > /dev/null || ret=1
-if [ $ret != 0 ] ; then echo_i "failed; status=`expr $status + $ret`"; fi
+if [ $ret != 0 ] ; then echo_i "failed"; status=`expr $status + $ret`; fi
 
 n=`expr $n + 1`
 ret=0
 echo_i "Checking that default hostname works for query ($n)"
 $DIG $DIGOPTS +short hostname.bind txt ch @10.53.0.1 > dig.out.ns1.$n
 grep "^\"$HOSTNAME\"$" dig.out.ns1.$n > /dev/null || ret=1
-if [ $ret != 0 ] ; then echo_i "failed; status=`expr $status + $ret`"; fi
+if [ $ret != 0 ] ; then echo_i "failed"; status=`expr $status + $ret`; fi
 
 n=`expr $n + 1`
 ret=0
 echo_i "Checking that custom hostname works for query ($n)"
 $DIG $DIGOPTS +short hostname.bind txt ch @10.53.0.3 > dig.out.ns3.$n
 grep "^\"this.is.a.test.of.hostname\"$" dig.out.ns3.$n > /dev/null || ret=1
-if [ $ret != 0 ] ; then echo_i "failed; status=`expr $status + $ret`"; fi
+if [ $ret != 0 ] ; then echo_i "failed"; status=`expr $status + $ret`; fi
 
 n=`expr $n + 1`
 ret=0
@@ -95,35 +95,35 @@ echo_i "Checking that default server-id is none for query ($n)"
 $DIG $DIGOPTS id.server txt ch @10.53.0.1 > dig.out.ns1.$n
 grep "status: NOERROR" dig.out.ns1.$n > /dev/null || ret=1
 grep "ANSWER: 0" dig.out.ns1.$n > /dev/null || ret=1
-if [ $ret != 0 ] ; then echo_i "failed; status=`expr $status + $ret`"; fi
+if [ $ret != 0 ] ; then echo_i "failed"; status=`expr $status + $ret`; fi
 
 n=`expr $n + 1`
 ret=0
 echo_i "Checking that server-id hostname works for query ($n)"
 $DIG $DIGOPTS +short id.server txt ch @10.53.0.2 > dig.out.ns2.$n
 grep "^\"$HOSTNAME\"$" dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ] ; then echo_i "failed; status=`expr $status + $ret`"; fi
+if [ $ret != 0 ] ; then echo_i "failed"; status=`expr $status + $ret`; fi
 
 n=`expr $n + 1`
 ret=0
 echo_i "Checking that server-id hostname works for EDNS name server ID request ($n)"
 $DIG $DIGOPTS +norec +nsid foo @10.53.0.2 > dig.out.ns2.$n
 grep "^; NSID: .* $NSID" dig.out.ns2.$n > /dev/null || ret=1
-if [ $ret != 0 ] ; then echo_i "failed; status=`expr $status + $ret`; fi
+if [ $ret != 0 ] ; then echo_i "failed"; status=`expr $status + $ret`; fi
 
 n=`expr $n + 1`
 ret=0
 echo_i "Checking that custom server-id works for query ($n)"
 $DIG $DIGOPTS +short id.server txt ch @10.53.0.3 > dig.out.ns3.$n
 grep "^\"this.is.a.test.of.server-id\"$" dig.out.ns3.$n > /dev/null || ret=1
-if [ $ret != 0 ] ; then echo_i "failed; status=`expr $status + $ret`"; fi
+if [ $ret != 0 ] ; then echo_i "failed"; status=`expr $status + $ret`; fi
 
 n=`expr $n + 1`
 ret=0
 echo_i "Checking that custom server-id works for EDNS name server ID request ($n)"
 $DIG $DIGOPTS +norec +nsid foo @10.53.0.3 > dig.out.ns3.$n
 grep "^; NSID: .* (t) (h) (i) (s) (.) (i) (s) (.) (a) (.) (t) (e) (s) (t) (.) (o) (f) (.) (s) (e) (r) (v) (e) (r) (-) (i) (d)" dig.out.ns3.$n > /dev/null || ret=1
-if [ $ret != 0 ] ; then echo_i "failed; status=`expr $status + $ret`; fi
+if [ $ret != 0 ] ; then echo_i "failed"; status=`expr $status + $ret`; fi
 
 echo_i "exit status: $status"
 [ $status -eq 0 ] || exit 1
index f2cbe5fe0f00e3a33152c36e7040f242a93cd53c..320662d8a3042066f749106434a492c3f7dae583 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright (C) 2015  Internet Systems Consortium, Inc. ("ISC")
+# Copyright (C) 2015, 2018  Internet Systems Consortium, Inc. ("ISC")
 #
 # Permission to use, copy, modify, and/or distribute this software for any
 # purpose with or without fee is hereby granted, provided that the above
 SYSTEMTESTTOP=.
 . $SYSTEMTESTTOP/conf.sh
 
-test $# -gt 0 || { echo "usage: $0 test-directory" >&2; exit 1; }
+# See if the "-r" flag is present.  This will usually be set when all the tests
+# are run (e.g. from "runall.sh") and tells the script not to delete the
+# test.output file created by run.sh.  This is because the script running all
+# the tests will call "testsummary.sh", which will concatenate all test output
+# files into a single systests.output.
 
-test=$1
+runall=0
+
+while getopts "r" flag; do
+    case $flag in
+       r) runall=1 ;;
+    esac
+done
+shift `expr $OPTIND - 1`
+
+if [ $# -eq 0 ]; then
+    echo "usage: $0 [-r] test-directory" >&2
+    exit 1
+fi
+
+systest=$1
 shift
 
-if test -f $test/clean.sh; then
-    ( cd $test && $SHELL clean.sh "$@" )
+if [ $runall -eq 0 ]; then
+    rm -f $systest/test.output
+fi
+
+if [ -f $systest/clean.sh ]; then
+    ( cd $systest && $SHELL clean.sh "$@" )
+else
+    echo "Test directory $systest does not exist" >&2
+    exit 1
 fi
index 31f8c532d0103cfe734f252f00ecb1ff15dca764..e6a55ac994573bb1e3e489ac2918f54fb4b00cb4 100644 (file)
@@ -36,5 +36,6 @@ rm -f $SYSTEMTESTTOP/random.data
 for d in $SUBDIRS
 do
    test ! -f $d/clean.sh || ( cd $d && $SHELL clean.sh )
+   test -f $d/test.output && rm $d/test.output
    test -d $d && find $d -type d -exec rmdir '{}' \; 2> /dev/null
 done
index b5d619e87bdf1c887da8652e4180feb27e2488e6..6fcb5e5d171e52f41ca2d2f453b1a42fc339bf69 100644 (file)
@@ -15,8 +15,6 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: controls.conf,v 1.6 2007/06/19 23:47:01 tbox Exp $ */
-
 key rndc_key {
         secret "1234abcd8765";
         algorithm hmac-md5;
diff --git a/bin/tests/system/common/controls.conf.in b/bin/tests/system/common/controls.conf.in
new file mode 100644 (file)
index 0000000..d1bf5b5
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2004, 2007, 2013, 2018  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2000, 2001  Internet Software Consortium.
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+ * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+ * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
+key rndc_key {
+       secret "1234abcd8765";
+        algorithm hmac-md5;
+};
+
+controls {
+       inet 10.53.0.2 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
+};
index 4b7cc1c33db90e0af50528bd0ab63b9ab6f48d71..b67680c98fecb3e1db868342a761fe1022ee5dc2 100644 (file)
@@ -79,14 +79,14 @@ SEQUENTIALDIRS="ecdsa eddsa gost lwresd pkcs11 tkey"
 #
 # This symbol must be kept in step with the PARALLEL macro in Makefile.in
 PARALLELDIRS="allow_query acl additional addzone autosign builtin
-        cacheclean case chain checkconf @CHECKDS@ checknames
+        cacheclean chain checkconf @CHECKDS@ checknames
          checkzone @COVERAGE@ database digdelv dlv dlz dlzexternal
-        dns64 dnssec ecdsa eddsa emptyzones fetchlimit filter-aaaa
-        formerr forward glue gost inline integrity ixfr legacy
-        limits logfileconfig lwresd masterfile masterformat metadata
-        notify nslookup nsupdate pending pkcs11 reclimit redirect
+        dns64 dnssec emptyzones fetchlimit filter-aaaa
+        formerr forward glue inline integrity ixfr legacy
+        limits logfileconfig masterfile masterformat metadata
+        notify nslookup nsupdate pending reclimit redirect
         resolver rndc rpz rrl rrsetorder rsabigexponent runtime smartsign
-        sortlist spf staticstub stub tkey tsig tsiggss unknown
+        sortlist spf staticstub stub tsig tsiggss unknown
         upforwd verify views wildcard xfer xferquota zero zonechecks"
 
 SUBDIRS="$SEQUENTIALDIRS $PARALLELDIRS"
@@ -165,6 +165,12 @@ then
        echoinfo () {
                printf "${COLOR_INFO}%s${COLOR_NONE}\n" "$*"
        }
+       echostart () {
+               printf "${COLOR_START}%s${COLOR_NONE}\n" "$*"
+       }
+       echoend () {
+               printf "${COLOR_END}%s${COLOR_NONE}\n" "$*"
+       }
 else
        echofail () {
                echo "$*"
@@ -178,6 +184,12 @@ else
        echoinfo () {
                echo "$*"
        }
+       echostart () {
+               echo "$*"
+       }
+       echoend () {
+               echo "$*"
+       }
 fi
 
 SYSTESTDIR="`basename $PWD`"
index 92affa59e9b37188b3577fcd10cb07774650c157..c5bec6454d630f5cbd81dacab0090b79c345824f 100644 (file)
@@ -197,7 +197,7 @@ if [ -x ${DIG} ] ; then
     if $FEATURETEST --ipv6only=no
     then
       $DIG $DIGOPTS +tcp @10.53.0.2 -6 A a.example > dig.out.test$n 2>&1 || ret=1
-      grep "SERVER: ::ffff:10.53.0.2#5300" < dig.out.test$n > /dev/null || ret=1
+      grep "SERVER: ::ffff:10.53.0.2#${PORT}" < dig.out.test$n > /dev/null || ret=1
     else
       $DIG $DIGOPTS +tcp @10.53.0.2 -6 A a.example > dig.out.test$n 2>&1 && ret=1
       grep "::ffff:10.53.0.2" < dig.out.test$n > /dev/null || ret=1
index 40cc821d6cb8c0fea2fd3a8060159fa5877dbd70..079b90611d0b1e6044ceced9768cf9cdcd993007 100644 (file)
@@ -1,2 +1,2 @@
-named.conf
 dlzs.conf
+named.conf
index 0d75e6ab16d081693466c44e2a4e6b8495fc3b6b..4c940c2bae8c2fd7691c6bd8f7f17b3a7a2e6d45 100644 (file)
@@ -19,6 +19,6 @@ SYSTEMTESTTOP=..
 
 test -r $RANDFILE || $GENRANDOM 400 $RANDFILE
 
-$DDNSCONFGEN -q -r $RANDFILE -z example.nil > ns1/ddns.key
-
 copy_setports ns1/named.conf.in ns1/named.conf
+
+$DDNSCONFGEN -q -r $RANDFILE -z example.nil > ns1/ddns.key
index 65f787b76baf0b9e930b5dd7cb7794e197108346..64a2732549617c4c3174e1427308dbf7acff2d64 100644 (file)
@@ -16,8 +16,6 @@
 
 // NS4
 
-controls { /* empty */ };
-
 options {
        query-source address 10.53.0.4;
        notify-source 10.53.0.4;
index 9b09dc073195a5f6caf1537d4a575491396ea884..162bd6e8791d2fb561e343a43abc58272a88f4b9 100644 (file)
@@ -31,11 +31,11 @@ $DIG $DIGOPTS @10.53.0.1 foo.bar.fi. A >dig.out || status=1
 $PERL ../digcomp.pl --lc fi.good dig.out || status=1
 
 echo_i "testing that we find glue A RRs we are authoritative for"
-$DIG +norec @10.53.0.1 -p 5300 foo.bar.xx. a >dig.out || status=1
+$DIG +norec @10.53.0.1 -p ${PORT} foo.bar.xx. a >dig.out || status=1
 $PERL ../digcomp.pl xx.good dig.out || status=1
 
 echo_i "testing that we find glue A/AAAA RRs in the cache"
-$DIG +norec @10.53.0.1 -p 5300 foo.bar.yy. a >dig.out || status=1
+$DIG +norec @10.53.0.1 -p ${PORT} foo.bar.yy. a >dig.out || status=1
 $PERL ../digcomp.pl yy.good dig.out || status=1
 
 echo_i "testing that we don't find out-of-zone glue"
index 2c1d9ed5aeae30bfc3b074c6530f453b7c102d88..882968c8a736d47adf4305ee1b852666b15b959f 100644 (file)
@@ -31,3 +31,4 @@ rm -f ns1/named_vers
 rm -f ns1/named_vers.*
 rm -f ns1/named_unlimited
 rm -f ns1/named_unlimited.*
+rm -f ns1/query_log
index e14103b2fa3de7e051a5bb6bf53203332f71de92..be164c5846594a7ac7b87713c73d3c207876258d 100644 (file)
@@ -27,6 +27,8 @@ PIPECONF="${THISDIR}/${CONFDIR}/named.pipeconf"
 PIPEFILE="named_pipe"
 SYMCONF="${THISDIR}/${CONFDIR}/named.symconf"
 SYMFILE="named_sym"
+VERSCONF="${THISDIR}/${CONFDIR}/named.versconf"
+VERSFILE="named_vers"
 UNLIMITEDCONF="${THISDIR}/${CONFDIR}/named.unlimited"
 UNLIMITEDFILE="named_unlimited"
 DLFILE="named_deflog"
@@ -258,7 +260,7 @@ echo_i "testing logging functionality"
 
 n=`expr $n + 1`
 echo_i "testing explicit versions ($n)"
-cp $VERSCONF named.conf
+copy_setports $VERSCONF named.conf
 # a seconds since epoch version number
 touch $VERSFILE.1480039317
 t1=`$PERL -e 'print time()."\n";'`
@@ -294,7 +296,7 @@ fi
 
 n=`expr $n + 1`
 echo_i "testing unlimited versions ($n)"
-cp $UNLIMITEDCONF named.conf
+copy_setports $UNLIMITEDCONF named.conf
 # a seconds since epoch version number
 touch $UNLIMITEDFILE.1480039317
 t1=`$PERL -e 'print time()."\n";'`
index b77b2666aa8a2e4780d4e835429821c1acf6e49d..6ce030c1c541c7c81f0b87b75c5a859d69f453bf 100755 (executable)
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
+SYSTEMTESTTOP=..
+. $SYSTEMTESTTOP/conf.sh
+
+$SHELL clean.sh
+
 copy_setports ns1/named.conf.in ns1/named.conf
 copy_setports ns2/named.conf.in ns2/named.conf
-copy_setports ns3/named.conf.in ns3/named.conf
 
 rm -f named-compilezone
 ln -s $CHECKZONE named-compilezone
index d6731e53d71d975f416fcc949789078a4ea922c2..48cf6f620a37bac137ddb80fb90a7f007450700e 100644 (file)
@@ -23,8 +23,6 @@ test -r $RANDFILE || $GENRANDOM 400 $RANDFILE
 
 copy_setports ns1/named.conf.in ns1/named.conf
 copy_setports ns2/named.conf.in ns2/named.conf
-copy_setports ns3/named.conf.in ns3/named.conf
-copy_setports ns4/named.conf.in ns4/named.conf
 
 cp ns2/redirect.db.in ns2/redirect.db
 cp ns2/example.db.in ns2/example.db
index 31fe88b3a4403e4f0d55c27c2798d9fffe2a1188..d06f96ebe0d6ff72161f6a0fdb07a3d0e3243422 100644 (file)
@@ -16,6 +16,7 @@
 
 rm -f dig.out.*.test*
 rm -f ns*/named.memstats
+rm -f ns*/named.conf
 rm -f ns*/named.run
 rm -f ns2/named.stats
 rm -f ns2/nil.db ns2/other.db ns2/static.db ns2/*.jnl
index 130458b4a1aadd3d5bdb06bffc9fe643f3dcba26..67058cac51335674ae3e9403a6c6a3684f6028b3 100644 (file)
@@ -17,8 +17,8 @@
 SYSTEMTESTTOP=..
 . $SYSTEMTESTTOP/conf.sh
 
-DIGOPTS="+tcp +noadd +nosea +nostat +noquest +nocomm +nocmd"
-DIGCMD="$DIG $DIGOPTS @10.53.0.2 -p ${PORT}"
+DIGOPTS="+tcp +noadd +nosea +nostat +noquest +nocomm +nocmd -p ${PORT}"
+DIGCMD="$DIG $DIGOPTS @10.53.0.2"
 RNDCCMD="$RNDC -p ${CONTROLPORT} -c ../common/rndc.conf -s"
 
 status=0
@@ -344,7 +344,7 @@ ret=0
 $RNDCCMD 10.53.0.3 querylog on >/dev/null 2>&1 || ret=1
 grep "query logging is now on" ns3/named.run > /dev/null || ret=1
 # query for builtin and check if query was logged
-$DIG $DIGOPTS @10.53.0.3 -c ch -t txt foo12345.bind > /dev/null || ret=1
+$DIG $DIGOPTS @10.53.0.3 -c ch -t txt foo12345.bind #> /dev/null || ret=1
 # toggle query logging and check again
 $RNDCCMD 10.53.0.3 querylog >/dev/null 2>&1 || ret=1
 grep "query logging is now off" ns3/named.run > /dev/null || ret=1
index 1d573f909ef0d88fe54465c5db9268ecad8ac2a8..c968d6406c0895340c2b09667ee5fb2c27b660ca 100644 (file)
@@ -1,16 +1,8 @@
 # Copyright (C) 2011-2014  Internet Systems Consortium, Inc. ("ISC")
 #
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 # Clean up after rpz tests.
 
index edf799ec7536a59a6da62ff461c9e6c7cf6ae19b..be27867d4d718c5c0336accf022f0dfcf87a061e 100644 (file)
@@ -1,17 +1,9 @@
 /*
  * Copyright (C) 2011, 2013  Internet Systems Consortium, Inc. ("ISC")
  *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
 options {
index 32c14dba23915724325cdb97198affaa6cc04227..7cba15eee2394f4157aefdcf85e3fd794d145f3c 100644 (file)
@@ -1,19 +1,8 @@
-; Copyright (C) 2011-2013  Internet Systems Consortium, Inc. ("ISC")
+; Copyright (C) 2011-2013, 2016  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id$
-
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 $TTL   120
 .              SOA     ns. hostmaster.ns. ( 1 3600 1200 604800 60 )
index 59eb5edbff181827036431232094fb2b56e86e33..81dfc490ba3296d1b6de8c91bc905989f5875814 100644 (file)
@@ -1,20 +1,8 @@
-; Copyright (C) 2012, 2013  Internet Systems Consortium, Inc. ("ISC")
+; Copyright (C) 2012, 2013, 2016  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id$
-
-
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 ; RPZ rewrite responses from this signed zone
 
index 84116807d123673d2758405440f099c0b80e4dbf..c2ea606c6d756275c1cf112d0ec5fec01cfcf904 100644 (file)
@@ -1,20 +1,8 @@
-; Copyright (C) 2013  Internet Systems Consortium, Inc. ("ISC")
+; Copyright (C) 2013, 2016  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id$
-
-
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 ; master for slave RPZ zone
 
index bd5a48444c7a18b33aca810b99d7d77bbfa2814a..3ffc91e9e9f45b617b277c828b043ad6bdcf696e 100644 (file)
@@ -1,20 +1,8 @@
-; Copyright (C) 2013  Internet Systems Consortium, Inc. ("ISC")
+; Copyright (C) 2013, 2016  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id$
-
-
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 ; master for slave RPZ zone
 
index a4797b016ce62bde4941c57fa7f855a493f700c7..28cc3b826adac4a5a3caa29b74a011c5a3bc4467 100644 (file)
@@ -1,20 +1,8 @@
-; Copyright (C) 2013  Internet Systems Consortium, Inc. ("ISC")
+; Copyright (C) 2013, 2016  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id$
-
-
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 ; master for slave RPZ zone
 
index 844529c7d43e2c14466629dd03e017e45f619b20..65cd978bcd7ac8cb71cdd2657c859efdaa1b233d 100644 (file)
@@ -1,19 +1,8 @@
-; Copyright (C) 2011, 2013  Internet Systems Consortium, Inc. ("ISC")
+; Copyright (C) 2011, 2013, 2016  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id$
-
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 .      120     NS      ns.
 ns.    120     A       10.53.0.1
index 1ee9a9c67a3f0a219c234ef5eb4cab5d0508b6b6..b53d65059c1bbe401f7db3d213d943f7da57c7d8 100644 (file)
@@ -1,17 +1,9 @@
 /*
  * Copyright (C) 2011-2013  Internet Systems Consortium, Inc. ("ISC")
  *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
 options {
index 034841236725f6ebf34855bee5dd1319f4a03576..c32cc58c0ea5bdbebfa6aa7fe2e7616c97d9f7e1 100644 (file)
@@ -1,20 +1,8 @@
-; Copyright (C) 2011-2013  Internet Systems Consortium, Inc. ("ISC")
+; Copyright (C) 2011-2013, 2016  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id$
-
-
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 ; RPZ rewrite responses from this zone
 
index 53136e9ae9745e81d86f5a64b51339094895d59a..2bdac14be2fb0c2153229c50ba901d7559c87e04 100644 (file)
@@ -1,20 +1,8 @@
 ; Copyright (C) 2011-2013, 2016  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id$
-
-
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 ; RPZ test
 ;   This basic file is copied to several zone files before being used.
index 844529c7d43e2c14466629dd03e017e45f619b20..65cd978bcd7ac8cb71cdd2657c859efdaa1b233d 100644 (file)
@@ -1,19 +1,8 @@
-; Copyright (C) 2011, 2013  Internet Systems Consortium, Inc. ("ISC")
+; Copyright (C) 2011, 2013, 2016  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id$
-
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 .      120     NS      ns.
 ns.    120     A       10.53.0.1
index 9b5b2a63b82d9bc874a6068ab8696f9e0c4847aa..e26b7716ee881c5049890e974a8c05195cdef108 100644 (file)
@@ -1,17 +1,9 @@
 /*
  * Copyright (C) 2011-2013  Internet Systems Consortium, Inc. ("ISC")
  *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
 /*
index 844529c7d43e2c14466629dd03e017e45f619b20..65cd978bcd7ac8cb71cdd2657c859efdaa1b233d 100644 (file)
@@ -1,19 +1,8 @@
-; Copyright (C) 2011, 2013  Internet Systems Consortium, Inc. ("ISC")
+; Copyright (C) 2011, 2013, 2016  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id$
-
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 .      120     NS      ns.
 ns.    120     A       10.53.0.1
index 4a8285a732f2c43e46ea0bf9b06704bf60396d0b..f92afd0a912dd915db483317af84853794e5051a 100644 (file)
@@ -1,17 +1,9 @@
 /*
  * Copyright (C) 2011-2013  Internet Systems Consortium, Inc. ("ISC")
  *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
 options {
index 1f26cb99d54cebcd22193c4c4eb271f941af072d..982580c954f385861f893b69c008a656c368cb91 100644 (file)
@@ -1,19 +1,8 @@
-; Copyright (C) 2011-2013  Internet Systems Consortium, Inc. ("ISC")
+; Copyright (C) 2011-2013, 2016  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id$
-
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 ; RPZ rewrite responses from this zone
 
index 7d20df052948da59007076bf3ba53bfc1d49941f..30c269d4427c96874b1ba578583c6d72efb73d37 100644 (file)
@@ -1,19 +1,8 @@
-; Copyright (C) 2011-2013  Internet Systems Consortium, Inc. ("ISC")
+; Copyright (C) 2011-2013, 2016  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id$
-
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 .      120     NS      ns.
 ns.    120     A       10.53.0.1
index dcfd9622990e4592f19f19d0dcf3858320d69c68..8825a5257476606765a07e71274e401c116ff671 100644 (file)
@@ -1,17 +1,9 @@
 /*
  * Copyright (C) 2012, 2013  Internet Systems Consortium, Inc. ("ISC")
  *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
 /*
index d20a5473a588f1e5bcdd0481c4daa06b318819de..55fe3ae2731a3ebd55460218c47c2406d4a6988a 100644 (file)
@@ -1,16 +1,8 @@
-; Copyright (C) 2013  Internet Systems Consortium, Inc. ("ISC")
+; Copyright (C) 2013, 2016  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 
 
index 1e6b4cef2fa51528ecc7b79244924676a15e12a6..47815eb45829114f0e20b5ffae479660b0dfc327 100644 (file)
@@ -1,19 +1,8 @@
-; Copyright (C) 2014  Internet Systems Consortium, Inc. ("ISC")
+; Copyright (C) 2014, 2016  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id$
-
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 .      120     NS      ns.
 ns.    120     A       10.53.0.1
index b15e0424d9a82edc1e89019fe9ab48d1b6b2c132..848437248c75ce0ad9b8df6f58b024fba69ed663 100644 (file)
@@ -1,17 +1,9 @@
 /*
  * Copyright (C) 2014  Internet Systems Consortium, Inc. ("ISC")
  *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
 options {
index 582c6ba6a7bb04dfc20e07faaeb69cf6bbf93ed9..0eacf1db84b0ff2bc23fce4afe0edf660ee6b2b7 100644 (file)
@@ -1,18 +1,10 @@
 #!/bin/sh
 #
-# Copyright (C) 2014  Internet Systems Consortium, Inc. ("ISC")
+# Copyright (C) 2014, 2016  Internet Systems Consortium, Inc. ("ISC")
 #
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 SYSTEMTESTTOP=..
 . $SYSTEMTESTTOP/conf.sh
index cb0a29b0d8e2c17c667bac25b9093809eb52d837..2982c9cc7261c095dbefcfb5f992fbb934be9da4 100644 (file)
@@ -1,21 +1,10 @@
 #! /bin/sh
 #
-# Copyright (C) 2012, 2013  Internet Systems Consortium, Inc. ("ISC")
+# Copyright (C) 2012, 2013, 2016  Internet Systems Consortium, Inc. ("ISC")
 #
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-# $Id$
-
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 for QDIR in `echo "$PATH" | tr : ' '` ../../../../contrib/queryperf; do
     QPERF=$QDIR/queryperf
index 74a44f1c2386a4b519f692e13392c775c145eda2..8ef4e49c8ee35588cab8dcfda5f26ed64fb6cf84 100644 (file)
@@ -2,17 +2,9 @@
 #
 # Copyright (C) 2011-2014  Internet Systems Consortium, Inc. ("ISC")
 #
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 set -e
 
index ead4c5c4dc703a3e67ec70a71dfd3d62e13d677a..311cf1e1def025f56b3294aff35db60f14488fe3 100644 (file)
@@ -1,16 +1,8 @@
 ; Copyright (C) 2011-2013  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 
 
index 44ac6ab65d137ddf8f4e5a060ff5a8a889fc1217..eaf47e9f7b17ad90f888dba2e42d1461f1338b53 100644 (file)
@@ -1,16 +1,8 @@
 ; Copyright (C) 2011-2013  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 
 
index dce3fd2ebf11da4db9a871c7e11778855f261d39..46a288344ae3da8300847561e71cab135606483c 100644 (file)
@@ -1,16 +1,8 @@
 ; Copyright (C) 2011, 2013  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 
 
index 5b4624bf627b41992e800361cb717e6d8b47c376..0c338f933b52d89b51a97c977b86a5fb25f511a1 100644 (file)
@@ -1,16 +1,8 @@
 ; Copyright (C) 2011, 2013  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 
 
index d63371ff6a01d22b82b5d3ef831bd0e6570bced5..7b770a77097d559861115a9d42efe7773235a070 100644 (file)
@@ -1,16 +1,8 @@
 ; Copyright (C) 2013  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 
 
index 25dc2487bae58100f06fb848011196d67765a5fc..24cf432555597d98ca7df813192f17c666660484 100644 (file)
@@ -1,16 +1,8 @@
 ; Copyright (C) 2011-2013  Internet Systems Consortium, Inc. ("ISC")
 ;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 
 
index 728a48969d9bf968902d2c5b82b7bcbca35e52a3..62b17e5ae420254ed20d3e2b2a396e1f29251a43 100644 (file)
@@ -1,16 +1,8 @@
 # Copyright (C) 2011-2014, 2016, 2017  Internet Systems Consortium, Inc. ("ISC")
 #
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 # test response policy zones (RPZ)
 
@@ -87,10 +79,12 @@ setret () {
 # (re)load the reponse policy zones with the rules in the file $TEST_FILE
 load_db () {
     if test -n "$TEST_FILE"; then
-       $NSUPDATE -v $TEST_FILE || {
+       copy_setports $TEST_FILE tmp
+       $NSUPDATE -v tmp || {
            echo_i "failed to update policy zone with $TEST_FILE"
            exit 1
        }
+       rm -f tmp
     fi
 }
 
index 76a28c595ee05ccafb60fe149cd8f74eddf7af5a..d458645525939256ac00bfc5199dc771e98c5907 100644 (file)
@@ -22,4 +22,3 @@ $SHELL clean.sh
 copy_setports ns1/named.conf.in ns1/named.conf
 copy_setports ns2/named.conf.in ns2/named.conf
 copy_setports ns3/named.conf.in ns3/named.conf
-copy_setports ns4/named.conf.in ns4/named.conf
index 6940f7a01b673ab5e8990f282c980c8057ec18e1..4b8e141ed5aac54ca135fea16aded71414c08e19 100644 (file)
@@ -187,7 +187,6 @@ else
     echopass "R:$systest:PASS"
     if $clean
     then
-       rm -f $SYSTEMTESTTOP/random.data
        $SHELL clean.sh $runall $systest "$@"
        if test -d ../../../.git
        then
index 4cba8c56b47849ff6364d71d06a958350586da3b..98d44ac294dfd9185602d4ea3534d1df43c3153c 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright (C) 2004, 2007, 2010-2012, 2014, 2015  Internet Systems Consortium, Inc. ("ISC")
+# Copyright (C) 2004, 2007, 2010-2012, 2014, 2015, 2018  Internet Systems Consortium, Inc. ("ISC")
 # Copyright (C) 2000, 2001  Internet Software Consortium.
 #
 # Permission to use, copy, modify, and/or distribute this software for any
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-#
 # Run all the system tests.
 #
+# Usage:
+#    runall.sh [-n] [numprocesses]
+#
+#   -n          Noclean.  Keep all output files produced by all tests.  These
+#               can later be removed by running "cleanall.sh".
+#
+#   numprocess  Number of concurrent processes to use when running the tests.
+#               The default is one, which causes the tests to run sequentially.
+#               (This is ignored when running on Windows as the tests are always
+#               run sequentially on that platform.)
 
 SYSTEMTESTTOP=.
 . $SYSTEMTESTTOP/conf.sh
 
-status=0
+usage="Usage: ./runall.sh [-n] [numprocesses]"
+
+# Handle "-n" switch if present.
 
-{
-    for d in $SUBDIRS
-    do
-            $SHELL run.sh "${@}" $d || status=1
-    done
-} 2>&1 | tee "systests.output"
-
-$PERL testsock.pl || {
-    cat <<EOF >&2
-I:
-I:NOTE: System tests were skipped because they require that the
-I:      IP addresses 10.53.0.1 through 10.53.0.8 be configured
-I:      as alias addresses on the loopback interface.  Please run
-I:      "bin/tests/system/ifconfig.sh up" as root to configure them.
-EOF
-}
-
-echo "I:System test result summary:"
-grep '^R:' systests.output | sort | uniq -c | sed -e 's/^/I: /' -e 's/R://'
-grep '^R:FAIL' systests.output > /dev/null && status=1
+NOCLEAN=""
+while getopts "n" flag; do
+    case "$flag" in
+        n) NOCLEAN="-n" ;;
+    esac
+done
+export NOCLEAN
+shift `expr $OPTIND - 1`
 
+# Obtain number of processes to use.
+
+if [ $# -eq 0 ]; then
+    numproc=1
+elif [ $# -eq 1 ]; then
+    test "$1" -eq "$1" > /dev/null 2>&1
+    if [ $? -ne 0 ]; then
+        # Value passed is not numeric
+        echo "$usage" >&2
+        exit 1
+    fi
+    numproc=$1
+else
+    echo "$usage" >&2
+    exit 1
+fi
+
+# Run the tests.
+
+status=0
+if [ "$CYGWIN" = "" ]; then
+    # Running on Unix, use "make" to run tests in parallel.
+    make -j $numproc check
+    status=$?
+else
+    # Running on Windows: no "make" available, so run the tests sequentially.
+    # (This is simpler than working out where "nmake" is likely to be found.
+    # Besides, "nmake" does not support parallel execution so if "nmake" is
+    # used, the tests would be run sequentially anyway.)
+    {
+        for testdir in $SUBDIRS; do
+            $SHELL run.sh $NOCLEAN $testdir || status=1
+        done
+    } 2>&1 | tee "systests.output"
+fi
 exit $status
diff --git a/bin/tests/system/runsequential.sh b/bin/tests/system/runsequential.sh
new file mode 100644 (file)
index 0000000..7f79480
--- /dev/null
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# Copyright (C) 2018  Internet Systems Consortium, Inc. ("ISC")
+#
+# Permission to use, copy, modify, and/or distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+# PERFORMANCE OF THIS SOFTWARE.
+
+# Run system tests that must be run sequentially
+#
+# Note: Use "make check" (or runall.sh) to run all the system tests.  This
+# script will just run those tests that require that each of their nameservers
+# is the only one running on an IP address.
+#
+
+SYSTEMTESTTOP=.
+. $SYSTEMTESTTOP/conf.sh
+
+for d in $SEQUENTIALDIRS
+do
+    $SHELL run.sh "${@}" $d 2>&1 | tee $d/test.output
+done
index 6a9fe5d40e4403aeef95e68b46292f418d79ea17..e0bf831d381c2e6f4b75ea0657bc91f4349db0e6 100755 (executable)
@@ -25,38 +25,60 @@ use Cwd;
 use Cwd 'abs_path';
 use Getopt::Long;
 
-# Option handling
-#   --noclean test [server [options]]
+# Usage:
+#   perl start.pl [--noclean] [--restart] [--port port] test [server [options]]
 #
-#   --noclean - Do not cleanup files in server directory
-#   test - name of the test directory
-#   server - name of the server directory
-#   options - alternate options for the server
-#             NOTE: options must be specified with '-- "<option list>"',
-#              for instance: start.pl . ns1 -- "-c n.conf -d 43"
-#             ALSO NOTE: this variable will be filled with the
-#              contents of the first non-commented/non-blank line of args
-#              in a file called "named.args" in an ns*/ subdirectory only
-#              the FIRST non-commented/non-blank line is used (everything
-#              else in the file is ignored. If "options" is already set,
-#              then "named.args" is ignored.
-
-my $usage = "usage: $0 [--noclean] [--restart] test-directory [server-directory [server-options]]";
+#   --noclean       Do not cleanup files in server directory.
+#
+#   --restart       Indicate that the server is being restarted, so get the
+#                   server to append output to an existing log file instead of
+#                   starting a new one.
+#
+#   --port port     Specify the default port being used by the server to answer
+#                   queries (default 5300).  This script will interrogate the
+#                   server on this port to see if it is running. (Note: for
+#                   "named" nameservers, this can be overridden by the presence
+#                   of the file "named.port" in the server directory containing
+#                   the number of the query port.)
+#
+#   test            Name of the test directory.
+#
+#   server          Name of the server directory.  This will be of the form
+#                   "nsN" or "ansN", where "N" is an integer between 1 and 8.
+#                   If not given, the script will start all the servers in the
+#                   test directory.
+#
+#   options         Alternate options for the server.
+#
+#                   NOTE: options must be specified with '-- "<option list>"',
+#                   for instance: start.pl . ns1 -- "-c n.conf -d 43"
+#
+#                   ALSO NOTE: this variable will be filled with the contents
+#                   of the first non-commented/non-blank line of args in a file
+#                   called "named.args" in an ns*/ subdirectory. Only the FIRST
+#                   non-commented/non-blank line is used (everything else in
+#                   the file is ignored). If "options" is already set, then
+#                   "named.args" is ignored.
+
+my $usage = "usage: $0 [--noclean] [--restart] [--port <port>] test-directory [server-directory [server-options]]";
 my $noclean = '';
 my $restart = '';
-GetOptions('noclean' => \$noclean, 'restart' => \$restart);
+my $queryport = 5300;
+
+GetOptions('noclean' => \$noclean, 'restart' => \$restart, 'port=i' => \$queryport) or die "$usage\n";
+
 my $test = $ARGV[0];
 my $server = $ARGV[1];
 my $options = $ARGV[2];
 
 if (!$test) {
-       print "$usage\n";
+       die "$usage\n";
 }
 if (!-d $test) {
-       print "No test directory: \"$test\"\n";
+       die "No test directory: \"$test\"\n";
 }
 if ($server && !-d "$test/$server") {
-       print "No server directory: \"$test/$server\"\n";
+       die "No server directory: \"$test/$server\"\n";
 }
 
 # Global variables
@@ -94,7 +116,6 @@ if ($server) {
        foreach $name(@ns, @lwresd, @ans) {
                &start_server($name);
                &verify_server($name) if ($name =~ /^ns/);
-               
        }
 }
 
@@ -103,7 +124,7 @@ if ($server) {
 sub check_ports {
        my $server = shift;
        my $options = "";
-       my $port = 5300;
+       my $port = $queryport;
        my $file = "";
 
        $file = $testdir . "/" . $server . "/named.port" if ($server);
@@ -180,12 +201,18 @@ sub start_server {
                } else {
                        $command .= "-m record,size,mctx ";
                        $command .= "-T clienttest ";
-                       $command .= "-T nosoa " 
+                       $command .= "-T nosoa "
                                if (-e "$testdir/$server/named.nosoa");
-                       $command .= "-T noaa " 
+                       $command .= "-T noaa "
                                if (-e "$testdir/$server/named.noaa");
+                       $command .= "-T noedns "
+                               if (-e "$testdir/$server/named.noedns");
                        $command .= "-T dropedns "
                                if (-e "$testdir/$server/named.dropedns");
+                       $command .= "-T maxudp512 "
+                               if (-e "$testdir/$server/named.maxudp512");
+                       $command .= "-T maxudp1460 "
+                               if (-e "$testdir/$server/named.maxudp1460");
                        $command .= "-c named.conf -d 99 -g -U 4";
                }
                $command .= " -T notcp"
@@ -226,7 +253,7 @@ sub start_server {
        } elsif ($server =~ /^ans/) {
                $cleanup_files = "{ans.run}";
                 if (-e "$testdir/$server/ans.py") {
-                        $command = "$PYTHON -u ans.py 10.53.0.$' 5300";
+                        $command = "$PYTHON -u ans.py 10.53.0.$' $queryport";
                 } elsif (-e "$testdir/$server/ans.pl") {
                         $command = "$PERL ans.pl";
                 } else {
@@ -288,7 +315,7 @@ sub start_server {
 sub verify_server {
        my $server = shift;
        my $n = $server;
-       my $port = 5300;
+       my $port = $queryport;
        my $tcp = "+tcp";
 
        $n =~ s/^ns//;
index e61868f1f18aa5a935d6ba3d4e7dd358cdfc4c66..b03798c711eb44767ff12a474e22b13c298d29c8 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl -w
 #
-# Copyright (C) 2004-2007, 2012  Internet Systems Consortium, Inc. ("ISC")
+# Copyright (C) 2004-2007, 2012, 2016, 2018  Internet Systems Consortium, Inc. ("ISC")
 # Copyright (C) 2001  Internet Software Consortium.
 #
 # Permission to use, copy, modify, and/or distribute this software for any
@@ -15,8 +15,6 @@
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: stop.pl,v 1.12 2007/06/19 23:47:00 tbox Exp $
-
 # Framework for stopping test servers
 # Based on the type of server specified, signal the server to stop, wait
 # briefly for it to die, and then kill it if it is still alive.
 
 use strict;
 use Cwd 'abs_path';
+use Getopt::Long;
 
-# Option handling
-#   [--use-rndc] test [server]
+# Usage:
+#   perl stop.pl [--use-rndc [--port port]] test [server]
 #
-#   test - name of the test directory
-#   server - name of the server directory
-
-my $usage = "usage: $0 [--use-rndc] test-directory [server-directory]";
-my $use_rndc;
+#   --use-rndc      Attempt to stop the server via the "rndc stop" command.
+#
+#   --port port     Only relevant if --use-rndc is specified, this sets the
+#                   command port over which the attempt should be made.  If
+#                   not specified, port 9953 is used.
+#
+#   test            Name of the test directory.
+#
+#   server          Name of the server directory.
 
-while (@ARGV && $ARGV[0] =~ /^-/) {
-       my $opt = shift @ARGV;
-       if ($opt eq '--use-rndc') {
-               $use_rndc = 1;
-       } else {
-               die "$usage\n";
-       }
-}
+my $usage = "usage: $0 [--use-rndc [--port port]] test-directory [server-directory]";
 
-my $test = $ARGV[0];
-my $server = $ARGV[1];
+my $use_rndc = 0;
+my $port = 9953;
+GetOptions('use-rndc' => \$use_rndc, 'port=i' => \$port) or die "$usage\n";
 
 my $errors = 0;
 
+my $test = $ARGV[0];
+my $server = $ARGV[1];
 die "$usage\n" unless defined($test);
 die "No test directory: \"$test\"\n" unless (-d $test);
 die "No server directory: \"$server\"\n" if (defined($server) && !-d "$test/$server");
-    
+
 # Global variables
 my $testdir = abs_path($test);
 my @servers;
@@ -143,7 +142,7 @@ sub stop_rndc {
        my $ip = "10.53.0.$1";
 
        # Ugly, but should work.
-       system("$ENV{RNDC} -c $testdir/../common/rndc.conf -s $ip -p 9953 stop | sed 's/^/I:$server /'");
+       system("$ENV{RNDC} -c ../common/rndc.conf -s $ip -p $port stop | sed 's/^/I:$server /'");
        return;
 }
 
@@ -162,11 +161,21 @@ sub stop_signal {
                $errors++;
        }
 
-       my $result = kill $sig, $pid;
-       if (!$result) {
-               print "I:$server died before a SIG$sig was sent\n";
+       my $result;
+       if ($^O eq 'cygwin') {
+               $result = system("/bin/kill -f -$sig $pid");
                unlink $pid_file;
-               $errors++;
+               if ($result != 0) {
+                       print "I:$server died before a SIG$sig was sent\n";
+                       $errors++;
+               }
+       } else {
+               $result = kill $sig, $pid;
+               if (!$result) {
+                       print "I:$server died before a SIG$sig was sent\n";
+                       unlink $pid_file;
+                       $errors++;
+               }
        }
 
        return;
diff --git a/bin/tests/system/testsummary.sh b/bin/tests/system/testsummary.sh
new file mode 100644 (file)
index 0000000..f7cd456
--- /dev/null
@@ -0,0 +1,62 @@
+#!/bin/sh
+#
+# Copyright (C) 2018  Internet Systems Consortium, Inc. ("ISC")
+#
+# Permission to use, copy, modify, and/or distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+# PERFORMANCE OF THIS SOFTWARE.
+
+# Creates the system tests output file from the various test.output files.  It
+# then searches that file and prints the number of tests passed, failed, not
+# run.  It also checks whether the IP addresses 10.53.0.[1-8] were set up and,
+# if not, prints a warning.
+#
+# Usage:
+#    testsummary.sh [-n]
+#
+# -n   Do NOT delete the individual test.output files after concatenating
+#      them into systests.output.
+#
+# Status return:
+# 0 - no tests failed
+# 1 - one or more tests failed
+
+SYSTEMTESTTOP=.
+. $SYSTEMTESTTOP/conf.sh
+
+keepfile=0
+
+while getopts "n" flag; do
+    case $flag in
+       n) keepfile=1 ;;
+    esac
+done
+
+cat */test.output > systests.output 2> /dev/null
+if [ $keepfile -eq 0 ]; then
+    rm -f */test.output
+fi
+
+$PERL testsock.pl || {
+    cat <<EOF
+I:NOTE: System tests were skipped because they require that the
+I:      IP addresses 10.53.0.1 through 10.53.0.8 be configured
+I:      as alias addresses on the loopback interface.  Please run
+I:      "bin/tests/system/ifconfig.sh up" as root to configure them.
+EOF
+}
+
+status=0
+echo "I:System test result summary:"
+grep '^R:' systests.output | cut -d':' -f3 | sort | uniq -c | sed -e 's/^/I:/'
+grep '^R:[^:]*:FAIL' systests.output > /dev/null && status=1
+
+exit $status
index df8db2211b93a12cff37f87d55f675321f020a7a..5dc3f69c5e0ced13cd27a7966e87f8c4074a84e4 100644 (file)
@@ -193,7 +193,7 @@ then
        update add unsigned.example2. 600 TXT Foo
        send
 EOF
-       $DIG unsigned.example2 A @10.53.0.1 > dig.out.ns1.test$n
+       $DIG unsigned.example2 A @10.53.0.1 -p ${PORT} > dig.out.ns1.test$n
        grep "status: NOERROR" dig.out.ns1.test$n > /dev/null || ret=1
        if [ $ret != 0 ] ; then echo_i "failed"; fi
        status=`expr $status + $ret`
index ee73ee22c27d2c3ed38ca28657db4ccb65a76c42..1ac5523cf1db54014b3808af4cd00f23ab8bd468 100644 (file)
@@ -19,9 +19,7 @@
 # Clean up after zone transfer tests.
 #
 
-rm -f dig.out.ns1 dig.out.ns2 dig.out.ns3 dig.out.ns4
-rm -f dig.out.ns5 dig.out.ns6 dig.out.ns7
-rm -f dig.out.soa.ns3
+rm -f dig.out.*
 rm -f axfr.out
 rm -f ns1/slave.db ns2/slave.db
 rm -f ns2/example.db ns2/tsigzone.db ns2/example.db.jnl
index 4e1831b16956d0979d307a768c69bf2bc125bc42..52b1dd7e130ab392ed6ecbe5674657f4aef8ce95 100644 (file)
@@ -35,7 +35,6 @@ copy_setports ns2/named.conf.in ns2/named.conf
 copy_setports ns3/named.conf.in ns3/named.conf
 copy_setports ns6/named.conf.in ns6/named.conf
 copy_setports ns7/named.conf.in ns7/named.conf
-copy_setports ns8/named.conf.in ns8/named.conf
 
 copy_setports ns4/named.conf.base ns4/named.conf
 
index a54d9fc069778668cd6ad812e32b94e8562afc9e..ea34eeadc636a09024c1e7c549a76312fb6ebc60 100644 (file)
@@ -13,7 +13,7 @@
 # PERFORMANCE OF THIS SOFTWARE.
 
 rm -f */named.conf
-rm -f */named.run
+rm -f */named.run */ans.run
 rm -f */named.memstats
 rm -f ns2/example.db
 rm -f ns4/example.bk
index 10acb468046959222fa5ed23f0365aa9c7bdbeb3..938fd39c374d3aa932be51a48bb16856df07e54e 100644 (file)
@@ -12,8 +12,6 @@
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id$
-
 srcdir =       @srcdir@
 VPATH =                @srcdir@
 top_srcdir =   @top_srcdir@