setup.sh revision 1.1.1.2
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
12# shellcheck source=conf.sh
13. "$SYSTEMTESTTOP/conf.sh"
14
15set -e
16
17$SHELL clean.sh
18
19mkdir keys
20
21copy_setports ns2/named.conf.in ns2/named.conf
22copy_setports ns3/named.conf.in ns3/named.conf
23copy_setports ns4/named.conf.in ns4/named.conf
24copy_setports ns5/named.conf.in ns5/named.conf
25copy_setports ns6/named.conf.in ns6/named.conf
26copy_setports ns7/named.conf.in ns7/named.conf
27
28if $SHELL ../testcrypto.sh ed25519; then
29	echo "yes" > ed25519-supported.file
30fi
31
32if $SHELL ../testcrypto.sh ed448; then
33	echo "yes" > ed448-supported.file
34fi
35
36copy_setports ns3/policies/autosign.conf.in ns3/policies/autosign.conf
37copy_setports ns3/policies/kasp.conf.in ns3/policies/kasp.conf
38
39copy_setports ns6/policies/csk1.conf.in ns6/policies/csk1.conf
40copy_setports ns6/policies/csk2.conf.in ns6/policies/csk2.conf
41copy_setports ns6/policies/kasp.conf.in ns6/policies/kasp.conf
42
43# Setup zones
44(
45	cd ns2
46	$SHELL setup.sh
47)
48(
49	cd ns3
50	$SHELL setup.sh
51)
52(
53	cd ns4
54	$SHELL setup.sh
55)
56(
57	cd ns5
58	$SHELL setup.sh
59)
60(
61	cd ns6
62	$SHELL setup.sh
63)
64(
65	cd ns7
66	$SHELL setup.sh
67)
68