xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/mirror/setup.sh (revision 9fb66d812c00ebfb445c0b47dea128f32aa6fe96)
1#!/bin/sh -e
2#
3# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
4#
5# This Source Code Form is subject to the terms of the Mozilla Public
6# License, v. 2.0. If a copy of the MPL was not distributed with this
7# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8#
9# See the COPYRIGHT file distributed with this work for additional
10# information regarding copyright ownership.
11
12SYSTEMTESTTOP=..
13. $SYSTEMTESTTOP/conf.sh
14
15$SHELL clean.sh
16
17copy_setports ns1/named.conf.in ns1/named.conf
18copy_setports ns2/named.conf.in ns2/named.conf
19copy_setports ns3/named.conf.in ns3/named.conf
20
21( cd ns1 && $SHELL -e sign.sh )
22
23cat ns2/verify-axfr.db.bad.signed > ns2/verify-axfr.db.signed
24cat ns2/verify-load.db.bad.signed > ns3/verify-load.db.mirror
25