12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- #!/bin/sh
- #
- # Copyright (C) 2004-2011 Internet Systems Consortium, Inc. ("ISC")
- # Copyright (C) 2000-2003 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.
- #
- # Common configuration data for system tests, to be sourced into
- # other shell scripts.
- #
- # Prerequisite check
- if [ @srcdir@ != @builddir@ ]; then
- echo "Currently systest doesn't work for a separate build tree."
- echo "Rebuild BIND 10 on the source tree and run the tests."
- exit 1
- fi
- if [ -z $BIND9_TOP ]; then
- echo "systest assumes there's a compiled tree of BIND 9 which can be"
- echo "accessed via the BIND9_TOP environment variable."
- echo "Please make sure this assumption is met."
- exit 1
- fi
- # Find the top of the source and test trees.
- export TOP=@abs_top_srcdir@
- export TEST_TOP=@abs_builddir@
- # Programs
- export RUN_BIND10=$TOP/src/bin/bind10/run_bind10.sh
- export RUN_BINDCTL=$TOP/src/bin/bindctl/run_bindctl.sh
- export BINDCTL_CSV_DIR=@abs_srcdir@/common/
- export B10_LOADZONE=$TOP/src/bin/loadzone/run_loadzone.sh
- export BIND9_NAMED=$BIND9_TOP/bin/named/named
- export DIG=$BIND9_TOP/bin/dig/dig
- export RNDC=$BIND9_TOP/bin/rndc/rndc
- # Test tools borrowed from BIND 9's system test (without change).
- export TESTSOCK=$BIND9_TOP/bin/tests/system/testsock.pl
- export DIGCOMP=$BIND9_TOP/bin/tests/system/digcomp.pl
- # bindctl test doesn't work right now and is disabled (see #2568)
- #export SUBDIRS="bindctl glue ixfr/in-2"
- export SUBDIRS="glue ixfr/in-2"
- # Add appropriate subdirectories to the above statement as the tests become
- # available.
- #SUBDIRS="dnssec masterfile ixfr/in-1 ixfr/in-2 ixfr/in-4"
- # PERL will be an empty string if no perl interpreter was found. A similar
- # comment applies to AWK.
- export PERL=@PERL@
- export AWK=@AWK@
- # Other constants
- export RNDC_PORT=9953
- export DNS_PORT=53210
- export TESTS_TOP=$TOP/tests
- export SYSTEM_TOP=$TESTS_TOP/system
- export IXFR_TOP=$SYSTEM_TOP/ixfr
|