1#!/bin/sh
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 http://mozilla.org/MPL/2.0/.
8#
9# See the COPYRIGHT file distributed with this work for additional
10# information regarding copyright ownership.
11
12#
13# Common configuration data for system tests, to be sourced into
14# other shell scripts.
15#
16
17# Find the top of the BIND9 tree.
18TOP=@abs_top_builddir@
19TOP_SRCDIR=@abs_top_srcdir@
20
21# Provide TMPDIR variable for tests that need it.
22TMPDIR=${TMPDIR:-/tmp}
23
24# This is not the windows build.
25CYGWIN=""
26
27# Load common values shared between windows and unix/linux.
28. $TOP/bin/tests/system/conf.sh.common
29
30ARPANAME=$TOP/bin/tools/arpaname
31CDS=$TOP/bin/dnssec/dnssec-cds
32CHECKCONF=$TOP/bin/check/named-checkconf
33CHECKDS=$TOP/bin/python/dnssec-checkds
34CHECKZONE=$TOP/bin/check/named-checkzone
35COVERAGE=$TOP/bin/python/dnssec-coverage
36DDNSCONFGEN=$TOP/bin/confgen/ddns-confgen
37DELV=$TOP/bin/delv/delv
38DIG=$TOP/bin/dig/dig
39DNSTAPREAD=$TOP/bin/tools/dnstap-read
40DSFROMKEY=$TOP/bin/dnssec/dnssec-dsfromkey
41FEATURETEST=$TOP/bin/tests/system/feature-test
42FSTRM_CAPTURE=@FSTRM_CAPTURE@
43HOST=$TOP/bin/dig/host
44IMPORTKEY=$TOP/bin/dnssec/dnssec-importkey
45JOURNALPRINT=$TOP/bin/tools/named-journalprint
46KEYFRLAB=$TOP/bin/dnssec/dnssec-keyfromlabel
47KEYGEN=$TOP/bin/dnssec/dnssec-keygen
48KEYMGR=$TOP/bin/python/dnssec-keymgr
49MDIG=$TOP/bin/tools/mdig
50NAMED=$TOP/bin/named/named
51NSEC3HASH=$TOP/bin/tools/nsec3hash
52NSLOOKUP=$TOP/bin/dig/nslookup
53NSUPDATE=$TOP/bin/nsupdate/nsupdate
54NZD2NZF=$TOP/bin/tools/named-nzd2nzf
55PK11DEL="$TOP/bin/pkcs11/pkcs11-destroy -s ${SLOT:-0} -p ${HSMPIN:-1234} -w 0"
56PK11GEN="$TOP/bin/pkcs11/pkcs11-keygen -q -s ${SLOT:-0} -p ${HSMPIN:-1234}"
57PK11LIST="$TOP/bin/pkcs11/pkcs11-list -s ${SLOT:-0} -p ${HSMPIN:-1234}"
58RESOLVE=$TOP/lib/samples/resolve
59REVOKE=$TOP/bin/dnssec/dnssec-revoke
60RNDC=$TOP/bin/rndc/rndc
61RNDCCONFGEN=$TOP/bin/confgen/rndc-confgen
62RRCHECKER=$TOP/bin/tools/named-rrchecker
63SETTIME=$TOP/bin/dnssec/dnssec-settime
64SIGNER=$TOP/bin/dnssec/dnssec-signzone
65TSIGKEYGEN=$TOP/bin/confgen/tsig-keygen
66VERIFY=$TOP/bin/dnssec/dnssec-verify
67WIRETEST=$TOP/bin/tests/wire_test
68
69BIGKEY=$TOP/bin/tests/system/rsabigexponent/bigkey
70GENCHECK=$TOP/bin/tests/system/rndc/gencheck
71KEYCREATE=$TOP/bin/tests/system/tkey/keycreate
72KEYDELETE=$TOP/bin/tests/system/tkey/keydelete
73MAKEJOURNAL=$TOP/bin/tests/makejournal
74PIPEQUERIES=$TOP/bin/tests/system/pipelined/pipequeries
75SAMPLEUPDATE=$TOP/lib/samples/sample-update
76
77# we don't want a KRB5_CONFIG setting breaking the tests
78KRB5_CONFIG=/dev/null
79
80#
81# Construct the lists of tests to run
82#
83SEQUENTIAL_UNIX="@PKCS11_TEST@"
84SEQUENTIALDIRS="$SEQUENTIAL_COMMON $SEQUENTIAL_UNIX"
85
86PARALLEL_UNIX="@CHECKDS@ @COVERAGE@ @DNSTAP@ kasp @KEYMGR@ logfileconfig"
87PARALLELDIRS="$PARALLEL_COMMON $PARALLEL_UNIX"
88
89SUBDIRS="$SEQUENTIALDIRS $PARALLELDIRS"
90
91
92# Things that are different on Windows
93KILL=kill
94DIFF=diff
95DOS2UNIX=true
96# There's no trailing period on Windows
97TP=.
98
99# Use the CONFIG_SHELL detected by configure for tests
100SHELL=@SHELL@
101
102# CURL will be empty if no program was found by configure
103CURL=@CURL@
104
105# XMLLINT will be empty if no program was found by configure
106XMLLINT=@XMLLINT@
107
108# XSLTPROC will be empty if no program was found by configure
109XSLTPROC=@XSLTPROC@
110
111# PERL will be an empty string if no perl interpreter was found.
112PERL=@PERL@
113
114# Windows process management leave empty
115PSSUSPEND=
116
117PYTHON=@PYTHON@
118PYTEST=@PYTEST@
119
120#
121# Determine if we support various optional features.
122#
123LIBXML2_LIBS="@LIBXML2_LIBS@"
124HAVEXMLSTATS=${LIBXML2_LIBS:+1}
125JSON_C_LIBS="@JSON_C_LIBS@"
126HAVEJSONSTATS=${JSON_C_LIBS:+1}
127MAXMINDDB_LIBS="@MAXMINDDB_LIBS@"
128HAVEGEOIP2=${MAXMINDDB_LIBS:+1}
129ZLIB_LIBS="@ZLIB_LIBS@"
130HAVEZLIB=${ZLIB_LIBS:+1}
131NZD=@NZD_TOOLS@
132CRYPTO=@CRYPTO@
133
134export HAVEXMLSTATS HAVEJSONSTATS
135