conf.sh.in revision 7865ea9545f28f12f046b32d24c989e8441b9812
c3c6770e537ea916265c78d0294ad108233e17c1Michael Sawyer#!/bin/sh
6fe42ff85ced80bd2ccc49b429d36831b5f2a5b9Tinderbox User#
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington# Copyright (C) 2004-2012 Internet Systems Consortium, Inc. ("ISC")
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# Copyright (C) 2000-2003 Internet Software Consortium.
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater#
c3c6770e537ea916265c78d0294ad108233e17c1Michael Sawyer# Permission to use, copy, modify, and/or distribute this software for any
c3c6770e537ea916265c78d0294ad108233e17c1Michael Sawyer# purpose with or without fee is hereby granted, provided that the above
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# copyright notice and this permission notice appear in all copies.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
c3c6770e537ea916265c78d0294ad108233e17c1Michael Sawyer# PERFORMANCE OF THIS SOFTWARE.
c3c6770e537ea916265c78d0294ad108233e17c1Michael Sawyer
a69070d8fab55dbc63ba9f96c9d3e34f0ea9119aMark Andrews# $Id: conf.sh.in,v 1.71 2011/12/05 17:10:50 each Exp $
821644d49b73b49f2abc5463bc53a3132f612478Mark Andrews
821644d49b73b49f2abc5463bc53a3132f612478Mark Andrews#
c3c6770e537ea916265c78d0294ad108233e17c1Michael Sawyer# Common configuration data for system tests, to be sourced into
c3c6770e537ea916265c78d0294ad108233e17c1Michael Sawyer# other shell scripts.
67adc03ef81fb610f8df093b17f55275ee816754Evan Hunt#
67adc03ef81fb610f8df093b17f55275ee816754Evan Hunt
67adc03ef81fb610f8df093b17f55275ee816754Evan Hunt# Find the top of the BIND9 tree.
c3c6770e537ea916265c78d0294ad108233e17c1Michael SawyerTOP=${SYSTEMTESTTOP:=.}/../../..
c3c6770e537ea916265c78d0294ad108233e17c1Michael Sawyer
9069215eac23e32f4ef1c8e44ad7ff2865cfcdacEvan Hunt# Make it absolute so that it continues to work after we cd.
9069215eac23e32f4ef1c8e44ad7ff2865cfcdacEvan HuntTOP=`cd $TOP && pwd`
5a77e9620a0b2f7417469c98be374de49d0eccc6Andreas Gustafsson
c3c6770e537ea916265c78d0294ad108233e17c1Michael SawyerNAMED=$TOP/bin/named/named
c3c6770e537ea916265c78d0294ad108233e17c1Michael Sawyer# We must use "named -l" instead of "lwresd" because argv[0] is lost
c3c6770e537ea916265c78d0294ad108233e17c1Michael Sawyer# if the program is libtoolized.
c3c6770e537ea916265c78d0294ad108233e17c1Michael SawyerLWRESD="$TOP/bin/named/named -l"
e2f470bebb3a0c107bc4ac86c6920c21e50e83e0Brian WellingtonDIG=$TOP/bin/dig/dig
e2f470bebb3a0c107bc4ac86c6920c21e50e83e0Brian WellingtonRNDC=$TOP/bin/rndc/rndc
4eb998928b9aef0ceda42d7529980d658138698aEvan HuntNSUPDATE=$TOP/bin/nsupdate/nsupdate
e2f470bebb3a0c107bc4ac86c6920c21e50e83e0Brian WellingtonDDNSCONFGEN=$TOP/bin/confgen/ddns-confgen
e2f470bebb3a0c107bc4ac86c6920c21e50e83e0Brian WellingtonKEYGEN=$TOP/bin/dnssec/dnssec-keygen
e2f470bebb3a0c107bc4ac86c6920c21e50e83e0Brian WellingtonKEYFRLAB=$TOP/bin/dnssec/dnssec-keyfromlabel
e2f470bebb3a0c107bc4ac86c6920c21e50e83e0Brian WellingtonSIGNER=$TOP/bin/dnssec/dnssec-signzone
e2f470bebb3a0c107bc4ac86c6920c21e50e83e0Brian WellingtonREVOKE=$TOP/bin/dnssec/dnssec-revoke
e2f470bebb3a0c107bc4ac86c6920c21e50e83e0Brian WellingtonSETTIME=$TOP/bin/dnssec/dnssec-settime
ac21f918f23ce95fd5be807428ee9e2c42319878Evan HuntDSFROMKEY=$TOP/bin/dnssec/dnssec-dsfromkey
ac21f918f23ce95fd5be807428ee9e2c42319878Evan HuntCHECKZONE=$TOP/bin/check/named-checkzone
ac21f918f23ce95fd5be807428ee9e2c42319878Evan HuntCHECKCONF=$TOP/bin/check/named-checkconf
ac21f918f23ce95fd5be807428ee9e2c42319878Evan HuntPK11GEN="$TOP/bin/pkcs11/pkcs11-keygen -s 0 -p 1234"
ac21f918f23ce95fd5be807428ee9e2c42319878Evan HuntPK11LIST="$TOP/bin/pkcs11/pkcs11-list -s 0 -p 1234"
9069215eac23e32f4ef1c8e44ad7ff2865cfcdacEvan HuntPK11DEL="$TOP/bin/pkcs11/pkcs11-destroy -s 0 -p 1234"
9069215eac23e32f4ef1c8e44ad7ff2865cfcdacEvan HuntJOURNALPRINT=$TOP/bin/tools/named-journalprint
c3c6770e537ea916265c78d0294ad108233e17c1Michael Sawyer
c3c6770e537ea916265c78d0294ad108233e17c1Michael Sawyer# The "stress" test is not run by default since it creates enough
c3c6770e537ea916265c78d0294ad108233e17c1Michael Sawyer# load on the machine to make it unusable to other users.
2c15fcdeac4c2402258867fbac24d7475ef98259Mark Andrews# v6synth
9069215eac23e32f4ef1c8e44ad7ff2865cfcdacEvan HuntSUBDIRS="acl allow_query addzone autosign builtin cacheclean checkconf
9069215eac23e32f4ef1c8e44ad7ff2865cfcdacEvan Hunt checknames checkzone database dlv dlvauto dlz dlzexternal
9069215eac23e32f4ef1c8e44ad7ff2865cfcdacEvan Hunt dname dns64 dnssec ecdsa forward glue gost ixfr inline limits
9069215eac23e32f4ef1c8e44ad7ff2865cfcdacEvan Hunt logfileconfig lwresd masterfile masterformat metadata notify
9069215eac23e32f4ef1c8e44ad7ff2865cfcdacEvan Hunt nsupdate pending pkcs11 redirect resolver rndc rpz rrsetorder
9069215eac23e32f4ef1c8e44ad7ff2865cfcdacEvan Hunt rsabigexponent sortlist smartsign staticstub statistics stub
9069215eac23e32f4ef1c8e44ad7ff2865cfcdacEvan Hunt tkey tsig tsiggss unknown upforwd views xfer xferquota zonechecks"
9069215eac23e32f4ef1c8e44ad7ff2865cfcdacEvan Hunt
9069215eac23e32f4ef1c8e44ad7ff2865cfcdacEvan Hunt# PERL will be an empty string if no perl interpreter was found.
9069215eac23e32f4ef1c8e44ad7ff2865cfcdacEvan HuntPERL=@PERL@
9069215eac23e32f4ef1c8e44ad7ff2865cfcdacEvan Huntif test -n "$PERL"
222d38735f97f771054e223b03f84c5858252332Evan Huntthen
c3c6770e537ea916265c78d0294ad108233e17c1Michael Sawyer if $PERL -e "use IO::Socket::INET6;" 2> /dev/null
c3c6770e537ea916265c78d0294ad108233e17c1Michael Sawyer then
c5272fb3303425f794dab68f734f6a2a45dce01eMichael Sawyer TESTSOCK6="$PERL $TOP/bin/tests/system/testsock6.pl"
ac21f918f23ce95fd5be807428ee9e2c42319878Evan Hunt else
ac21f918f23ce95fd5be807428ee9e2c42319878Evan Hunt TESTSOCK6=false
ac21f918f23ce95fd5be807428ee9e2c42319878Evan Hunt fi
ac21f918f23ce95fd5be807428ee9e2c42319878Evan Huntelse
ac21f918f23ce95fd5be807428ee9e2c42319878Evan Hunt TESTSOCK6=false
c5272fb3303425f794dab68f734f6a2a45dce01eMichael Sawyerfi
c5272fb3303425f794dab68f734f6a2a45dce01eMichael Sawyer
c5272fb3303425f794dab68f734f6a2a45dce01eMichael Sawyerexport NAMED LWRESD DIG NSUPDATE KEYGEN KEYFRLAB SIGNER KEYSIGNER KEYSETTOOL \
2c15fcdeac4c2402258867fbac24d7475ef98259Mark Andrews PERL SUBDIRS RNDC CHECKZONE PK11GEN PK11LIST PK11DEL TESTSOCK6 \
c5272fb3303425f794dab68f734f6a2a45dce01eMichael Sawyer JOURNALPRINT
c5272fb3303425f794dab68f734f6a2a45dce01eMichael Sawyer