1 # Copyright (C) Internet Systems Consortium, Inc. ("ISC") 2 # 3 # SPDX-License-Identifier: MPL-2.0 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 https://mozilla.org/MPL/2.0/. 8 # 9 # See the COPYRIGHT file distributed with this work for additional 10 # information regarding copyright ownership. 11 12 import os 13 14 # pylint: disable=import-error 15 from .autoconf import AC_VARS # type: ignore 16 17 # pylint: enable=import-error 18 19 20 BASIC_VARS = { 21 "ARPANAME": f"{AC_VARS['TOP_BUILDDIR']}/bin/tools/arpaname", 22 "CDS": f"{AC_VARS['TOP_BUILDDIR']}/bin/dnssec/dnssec-cds", 23 "CHECKCONF": f"{AC_VARS['TOP_BUILDDIR']}/bin/check/named-checkconf", 24 "CHECKZONE": f"{AC_VARS['TOP_BUILDDIR']}/bin/check/named-checkzone", 25 "DIG": f"{AC_VARS['TOP_BUILDDIR']}/bin/dig/dig", 26 "DELV": f"{AC_VARS['TOP_BUILDDIR']}/bin/delv/delv", 27 "DNSTAPREAD": f"{AC_VARS['TOP_BUILDDIR']}/bin/tools/dnstap-read", 28 "DSFROMKEY": f"{AC_VARS['TOP_BUILDDIR']}/bin/dnssec/dnssec-dsfromkey", 29 "FEATURETEST": f"{AC_VARS['TOP_BUILDDIR']}/bin/tests/system/feature-test", 30 "HOST": f"{AC_VARS['TOP_BUILDDIR']}/bin/dig/host", 31 "IMPORTKEY": f"{AC_VARS['TOP_BUILDDIR']}/bin/dnssec/dnssec-importkey", 32 "JOURNALPRINT": f"{AC_VARS['TOP_BUILDDIR']}/bin/tools/named-journalprint", 33 "KEYFRLAB": f"{AC_VARS['TOP_BUILDDIR']}/bin/dnssec/dnssec-keyfromlabel", 34 "KEYGEN": f"{AC_VARS['TOP_BUILDDIR']}/bin/dnssec/dnssec-keygen", 35 "KSR": f"{AC_VARS['TOP_BUILDDIR']}/bin/dnssec/dnssec-ksr", 36 "MDIG": f"{AC_VARS['TOP_BUILDDIR']}/bin/tools/mdig", 37 "NAMED": f"{AC_VARS['TOP_BUILDDIR']}/bin/named/named", 38 "NSEC3HASH": f"{AC_VARS['TOP_BUILDDIR']}/bin/tools/nsec3hash", 39 "NSLOOKUP": f"{AC_VARS['TOP_BUILDDIR']}/bin/dig/nslookup", 40 "NSUPDATE": f"{AC_VARS['TOP_BUILDDIR']}/bin/nsupdate/nsupdate", 41 "NZD2NZF": f"{AC_VARS['TOP_BUILDDIR']}/bin/tools/named-nzd2nzf", 42 "REVOKE": f"{AC_VARS['TOP_BUILDDIR']}/bin/dnssec/dnssec-revoke", 43 "RNDC": f"{AC_VARS['TOP_BUILDDIR']}/bin/rndc/rndc", 44 "RNDCCONFGEN": f"{AC_VARS['TOP_BUILDDIR']}/bin/confgen/rndc-confgen", 45 "RRCHECKER": f"{AC_VARS['TOP_BUILDDIR']}/bin/tools/named-rrchecker", 46 "SETTIME": f"{AC_VARS['TOP_BUILDDIR']}/bin/dnssec/dnssec-settime", 47 "SIGNER": f"{AC_VARS['TOP_BUILDDIR']}/bin/dnssec/dnssec-signzone", 48 "TSIGKEYGEN": f"{AC_VARS['TOP_BUILDDIR']}/bin/confgen/tsig-keygen", 49 "VERIFY": f"{AC_VARS['TOP_BUILDDIR']}/bin/dnssec/dnssec-verify", 50 "WIRETEST": f"{AC_VARS['TOP_BUILDDIR']}/bin/tests/wire_test", 51 "BIGKEY": f"{AC_VARS['TOP_BUILDDIR']}/bin/tests/system/rsabigexponent/bigkey", 52 "GENCHECK": f"{AC_VARS['TOP_BUILDDIR']}/bin/tests/system/rndc/gencheck", 53 "MAKEJOURNAL": f"{AC_VARS['TOP_BUILDDIR']}/bin/tests/system/makejournal", 54 "PIPEQUERIES": f"{AC_VARS['TOP_BUILDDIR']}/bin/tests/system/pipelined/pipequeries", 55 "TMPDIR": os.getenv("TMPDIR", "/tmp"), 56 "KRB5_CONFIG": "/dev/null", # we don't want a KRB5_CONFIG setting breaking the tests 57 "KRB5_KTNAME": "dns.keytab", # use local keytab instead of default /etc/krb5.keytab 58 "LC_ALL": "C", 59 "ANS_LOG_LEVEL": "debug", 60 } 61