summaryrefslogtreecommitdiffstats
path: root/bin/tests/system/conf.sh.win32
blob: 95f9c1679d6178f98578c71c2ac963a85535cfe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#!/bin/sh
#
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
#
# SPDX-License-Identifier: MPL-2.0
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
#
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.

#
# Common configuration data for system tests, to be sourced into
# other shell scripts.
#

# Find the top of the BIND9 tree.
TOP=${SYSTEMTESTTOP:=.}/../../..

# Make it absolute so that it continues to work after we cd.
export TOP=`cd $TOP && pwd`
export TOP_SRCDIR="$TOP"

# This is the windows build. This disables certain tests cases
# and changes some specific behaviors where necessary.
export CYGWIN=1

# Visual Studio build configurations are Release and Debug
export VSCONF=${VSCONF:-Debug}

# Interpreters for system tests
export PERL=/usr/bin/perl
if ! test -x "$PERL"; then
    echo "Perl interpreter is required for system tests."
    exit 77
fi
export PYTHON=@PYTHON@


export ARPANAME=$TOP/Build/$VSCONF/arpaname@EXEEXT@
export CDS=$TOP/Build/$VSCONF/dnssec-cds@EXEEXT@
export CHECKCONF=$TOP/Build/$VSCONF/named-checkconf@EXEEXT@
export CHECKDS="$PYTHON `cygpath -w $TOP/bin/python/dnssec-checkds.py`"
export CHECKZONE=$TOP/Build/$VSCONF/named-checkzone@EXEEXT@
export COVERAGE="$PYTHON `cygpath -w $TOP/bin/python/dnssec-coverage.py`"
export DDNSCONFGEN=$TOP/Build/$VSCONF/ddns-confgen@EXEEXT@
export DELV=$TOP/Build/$VSCONF/delv@EXEEXT@
export DIG=$TOP/Build/$VSCONF/dig@EXEEXT@
export DNSTAPREAD=$TOP/Build/$VSCONF/dnstap-read@EXEEXT@
export DSFROMKEY=$TOP/Build/$VSCONF/dnssec-dsfromkey@EXEEXT@
export FEATURETEST=$TOP/Build/$VSCONF/feature-test@EXEEXT@
export FSTRM_CAPTURE=@FSTRM_CAPTURE@
export IMPORTKEY=$TOP/Build/$VSCONF/dnssec-importkey@EXEEXT@
export JOURNALPRINT=$TOP/Build/$VSCONF/named-journalprint@EXEEXT@
export KEYFRLAB=$TOP/Build/$VSCONF/dnssec-keyfromlabel@EXEEXT@
export KEYGEN=$TOP/Build/$VSCONF/dnssec-keygen@EXEEXT@
export KEYMGR="$PYTHON `cygpath -w $TOP/bin/python/dnssec-keymgr.py`"
export MDIG=$TOP/Build/$VSCONF/mdig@EXEEXT@
export NAMED=$TOP/Build/$VSCONF/named@EXEEXT@
export NSEC3HASH=$TOP/Build/$VSCONF/nsec3hash@EXEEXT@
export NSLOOKUP=$TOP/Build/$VSCONF/nslookup@EXEEXT@
export NSUPDATE=$TOP/Build/$VSCONF/nsupdate@EXEEXT@
export NZD2NZF=$TOP/Build/$VSCONF/named-nzd2nzf@EXEEXT@
export PK11DEL="$TOP/Build/$VSCONF/pkcs11-destroy@EXEEXT@ -s ${SLOT:-0} -p ${HSMPIN:-1234} -w 0"
export PK11GEN="$TOP/Build/$VSCONF/pkcs11-keygen@EXEEXT@ -q -s ${SLOT:-0} -p ${HSMPIN:-1234}"
export PK11LIST="$TOP/Build/$VSCONF/pkcs11-list@EXEEXT@ -s ${SLOT:-0} -p ${HSMPIN:-1234}"
export REVOKE=$TOP/Build/$VSCONF/dnssec-revoke@EXEEXT@
export RNDC=$TOP/Build/$VSCONF/rndc@EXEEXT@
export RNDCCONFGEN=$TOP/Build/$VSCONF/rndc-confgen@EXEEXT@
export RRCHECKER=$TOP/Build/$VSCONF/named-rrchecker@EXEEXT@
export SETTIME=$TOP/Build/$VSCONF/dnssec-settime@EXEEXT@
export SIGNER=$TOP/Build/$VSCONF/dnssec-signzone@EXEEXT@
export TSIGKEYGEN=$TOP/Build/$VSCONF/tsig-keygen@EXEEXT@
export VERIFY=$TOP/Build/$VSCONF/dnssec-verify@EXEEXT@

# to port WIRETEST=$TOP/Build/$VSCONF/wire_test@EXEEXT@
export WIRETEST=

export BIGKEY=$TOP/Build/$VSCONF/bigkey@EXEEXT@
export GENCHECK=$TOP/Build/$VSCONF/gencheck@EXEEXT@
export KEYCREATE=$TOP/Build/$VSCONF/keycreate@EXEEXT@
export KEYDELETE=$TOP/Build/$VSCONF/keydelete@EXEEXT@
export MAKEJOURNAL=$TOP/Build/$VSCONF/makejournal@EXEEXT@
export PIPEQUERIES=$TOP/Build/$VSCONF/pipequeries@EXEEXT@
export RESOLVE=$TOP/Build/$VSCONF/resolve@EXEEXT@

# we don't want a KRB5_CONFIG setting breaking the tests
export KRB5_CONFIG=NUL

# Things that are different on Windows
export KILL="/bin/kill -f"
export DIFF="diff --strip-trailing-cr"
export DOS2UNIX=dos2unix
# No trailing period
export TP=

# Configure is launched from native environment, but tests are run in Cygwin -
# so any detection is unreliable.
export SHELL="/bin/bash -o igncr"
export CURL=/usr/bin/curl
export XMLLINT=/usr/bin/xmllint

#
# PsSuspend is part of PSTools and can be downloaded from
# https://download.sysinternals.com/files/PSTools.zip
#
export PSSUSPEND=@PSSUSPEND@

#
# Determine if we support various optional features.
#
export CRYPTO=@CRYPTO@


# The rest is shared between Windows and Unices
. $TOP/bin/tests/system/conf.sh.common

#
# Construct the lists of tests to run
#
SEQUENTIAL_WINDOWS=""
SEQUENTIALDIRS="$SEQUENTIAL_COMMON $SEQUENTIAL_WINDOWS"

PARALLEL_WINDOWS="@CHECKDS@ @COVERAGE@ @DNSTAP@ @KEYMGR@"
PARALLELDIRS="$PARALLEL_COMMON $PARALLEL_WINDOWS"

SUBDIRS="$SEQUENTIALDIRS $PARALLELDIRS"