diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 07:24:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 07:24:22 +0000 |
commit | 45d6379135504814ab723b57f0eb8be23393a51d (patch) | |
tree | d4f2ec4acca824a8446387a758b0ce4238a4dffa /bin/tests/system/conf.sh.win32 | |
parent | Initial commit. (diff) | |
download | bind9-45d6379135504814ab723b57f0eb8be23393a51d.tar.xz bind9-45d6379135504814ab723b57f0eb8be23393a51d.zip |
Adding upstream version 1:9.16.44.upstream/1%9.16.44upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'bin/tests/system/conf.sh.win32')
-rw-r--r-- | bin/tests/system/conf.sh.win32 | 129 |
1 files changed, 129 insertions, 0 deletions
diff --git a/bin/tests/system/conf.sh.win32 b/bin/tests/system/conf.sh.win32 new file mode 100644 index 0000000..95f9c16 --- /dev/null +++ b/bin/tests/system/conf.sh.win32 @@ -0,0 +1,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" |