conf.sh.in 2.5 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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.
#

23
24
25
26
27
28
29
# 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

30
31
32
33
34
35
36
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

37
# Find the top of the source and test trees.
38
39
40
41
42
43
44
45
46
47
48
49
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

50
# Test tools borrowed from BIND 9's system test (without change).
51
52
export TESTSOCK=$BIND9_TOP/bin/tests/system/testsock.pl
export DIGCOMP=$BIND9_TOP/bin/tests/system/digcomp.pl
53

54
55
56
57
# 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"

58
59
# Add appropriate subdirectories to the above statement as the tests become
# available.
60
#SUBDIRS="dnssec masterfile ixfr/in-1 ixfr/in-2 ixfr/in-4"
61

62
63
64
65
66
67
68
69
# 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
70

71
72
73
export TESTS_TOP=$TOP/tests
export SYSTEM_TOP=$TESTS_TOP/system
export IXFR_TOP=$SYSTEM_TOP/ixfr