[BACK]Return to setup.sh CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / mpl / bind / dist / bin / tests / system / ixfr

Annotation of src/external/mpl/bind/dist/bin/tests/system/ixfr/setup.sh, Revision 1.1.1.6

1.1       christos    1: #!/bin/sh
1.1.1.6 ! christos    2:
1.1       christos    3: # Copyright (C) Internet Systems Consortium, Inc. ("ISC")
                      4: #
1.1.1.6 ! christos    5: # SPDX-License-Identifier: MPL-2.0
        !             6: #
1.1       christos    7: # This Source Code Form is subject to the terms of the Mozilla Public
1.1.1.6 ! christos    8: # License, v. 2.0.  If a copy of the MPL was not distributed with this
1.1.1.5   christos    9: # file, you can obtain one at https://mozilla.org/MPL/2.0/.
1.1       christos   10: #
                     11: # See the COPYRIGHT file distributed with this work for additional
                     12: # information regarding copyright ownership.
                     13:
                     14: SYSTEMTESTTOP=..
                     15: . $SYSTEMTESTTOP/conf.sh
                     16:
1.1.1.5   christos   17: $SHELL clean.sh
1.1       christos   18:
1.1.1.5   christos   19: copy_setports ns1/named.conf.in ns1/named.conf
1.1       christos   20: copy_setports ns3/named.conf.in ns3/named.conf
                     21: copy_setports ns4/named.conf.in ns4/named.conf
1.1.1.3   christos   22: copy_setports ns5/named.conf.in ns5/named.conf
1.1       christos   23:
1.1.1.5   christos   24: # Set up db files for zone "test" - this is a series of four
                     25: # versions of the zone, the second and third having small changes
                     26: # and the fourth having a large one.
                     27:
                     28: testdb () {
                     29:     cat << EOF
                     30: \$ORIGIN $1
                     31: \$TTL    15
                     32: @  15  IN        SOA ns1.test. hostmaster.test. (
                     33:                               $2 ; serial
                     34:                               3H ; refresh
                     35:                               15 ; retry
                     36:                               1w ; expire
                     37:                               3h ; minimum
                     38:                              )
                     39:        IN  NS     ns1.test.
                     40:        IN  NS     ns2.test.
                     41:        IN  NS     ns5.test.
                     42: ns1    IN  A      10.53.0.3
                     43: ns2    IN  A      10.53.0.4
                     44: ns5    IN  A      10.53.0.5
                     45: EOF
                     46:
                     47:     i=0
                     48:     while [ $i -lt $3 ]; do
                     49:         echo "host$i IN A 192.0.2.$i"
                     50:         i=$((i+1))
                     51:     done
                     52: }
                     53:
                     54: testdb test. 1 60 > ns3/mytest.db
                     55: testdb test. 2 61 > ns3/mytest1.db
                     56: testdb test. 3 62 > ns3/mytest2.db
                     57: testdb test. 4 0  > ns3/mytest3.db
                     58:
                     59: # Set up similar db files for sub.test, which will have IXFR disabled
                     60: testdb sub.test. 1 60 > ns3/subtest.db
                     61: testdb sub.test. 3 61 > ns3/subtest1.db
                     62:
                     63: # Set up a large zone
                     64: i=0
1.1       christos   65: $SHELL ../genzone.sh 3 > ns3/large.db
1.1.1.5   christos   66: while [ $i -lt 10000 ]; do
                     67:     echo "record$i 10 IN TXT this is record %i" >> ns3/large.db
                     68:     i=$((i+1))
                     69: done

CVSweb <webmaster@jp.NetBSD.org>