Blame SOURCES/bind-9.11-tests-variants.patch

cf16a9
From 607cec78382b016aad0fe041f2e1895b6896c647 Mon Sep 17 00:00:00 2001
cf16a9
From: Petr Mensik <pemensik@redhat.com>
cf16a9
Date: Fri, 1 Mar 2019 15:48:20 +0100
cf16a9
Subject: [PATCH] Make alternative named builds testable in system tests
cf16a9
cf16a9
Red Hat has alternative variant builds of named, which are not ever
cf16a9
tested by system tests. New variables make it relatively easy to test
cf16a9
alternative variants.
cf16a9
cf16a9
For sdb variant use:
cf16a9
export NAMED_VARIANT=-sdb DNSSEC_VARIANT=
cf16a9
cf16a9
For pkcs variant use:
cf16a9
export NAMED_VARIANT=-pkcs11 DNSSEC_VARIANT=-pkcs11
cf16a9
---
cf16a9
 bin/tests/system/conf.sh.in | 18 +++++++++---------
cf16a9
 1 file changed, 9 insertions(+), 9 deletions(-)
cf16a9
cf16a9
diff --git a/bin/tests/system/conf.sh.in b/bin/tests/system/conf.sh.in
cf16a9
index d859909..9152f07 100644
cf16a9
--- a/bin/tests/system/conf.sh.in
cf16a9
+++ b/bin/tests/system/conf.sh.in
cf16a9
@@ -37,17 +37,17 @@ DDNSCONFGEN=$TOP/bin/confgen/ddns-confgen
cf16a9
 DELV=$TOP/bin/delv/delv
cf16a9
 DIG=$TOP/bin/dig/dig
cf16a9
 DNSTAPREAD=$TOP/bin/tools/dnstap-read
cf16a9
-DSFROMKEY=$TOP/bin/dnssec/dnssec-dsfromkey
cf16a9
-FEATURETEST=$TOP/bin/named/feature-test
cf16a9
+DSFROMKEY=$TOP/bin/dnssec${DNSSEC_VARIANT}/dnssec-dsfromkey${DNSSEC_VARIANT}
cf16a9
+FEATURETEST=$TOP/bin/named${NAMED_VARIANT}/feature-test${NAMED_VARIANT}
cf16a9
 FSTRM_CAPTURE=@FSTRM_CAPTURE@
cf16a9
 HOST=$TOP/bin/dig/host
cf16a9
-IMPORTKEY=$TOP/bin/dnssec/dnssec-importkey
cf16a9
+IMPORTKEY=$TOP/bin/dnssec${DNSSEC_VARIANT}/dnssec-importkey${DNSSEC_VARIANT}
cf16a9
 JOURNALPRINT=$TOP/bin/tools/named-journalprint
cf16a9
-KEYFRLAB=$TOP/bin/dnssec/dnssec-keyfromlabel
cf16a9
-KEYGEN=$TOP/bin/dnssec/dnssec-keygen
cf16a9
+KEYFRLAB=$TOP/bin/dnssec${DNSSEC_VARIANT}/dnssec-keyfromlabel${DNSSEC_VARIANT}
cf16a9
+KEYGEN=$TOP/bin/dnssec${DNSSEC_VARIANT}/dnssec-keygen${DNSSEC_VARIANT}
cf16a9
 KEYMGR=$TOP/bin/python/dnssec-keymgr
cf16a9
 MDIG=$TOP/bin/tools/mdig
cf16a9
-NAMED=$TOP/bin/named/named
cf16a9
+NAMED=$TOP/bin/named${NAMED_VARIANT}/named${NAMED_VARIANT}
cf16a9
 NSEC3HASH=$TOP/bin/tools/nsec3hash
cf16a9
 NSLOOKUP=$TOP/bin/dig/nslookup
cf16a9
 NSUPDATE=$TOP/bin/nsupdate/nsupdate
cf16a9
@@ -56,12 +56,12 @@ PK11DEL="$TOP/bin/pkcs11/pkcs11-destroy -s ${SLOT:-0} -p ${HSMPIN:-1234} -w 0"
cf16a9
 PK11GEN="$TOP/bin/pkcs11/pkcs11-keygen -q -s ${SLOT:-0} -p ${HSMPIN:-1234}"
cf16a9
 PK11LIST="$TOP/bin/pkcs11/pkcs11-list -s ${SLOT:-0} -p ${HSMPIN:-1234}"
cf16a9
 RESOLVE=$TOP/bin/tests/system/resolve
cf16a9
-REVOKE=$TOP/bin/dnssec/dnssec-revoke
cf16a9
+REVOKE=$TOP/bin/dnssec${DNSSEC_VARIANT}/dnssec-revoke${DNSSEC_VARIANT}
cf16a9
 RNDC=$TOP/bin/rndc/rndc
cf16a9
 RNDCCONFGEN=$TOP/bin/confgen/rndc-confgen
cf16a9
 RRCHECKER=$TOP/bin/tools/named-rrchecker
cf16a9
-SETTIME=$TOP/bin/dnssec/dnssec-settime
cf16a9
-SIGNER=$TOP/bin/dnssec/dnssec-signzone
cf16a9
+SETTIME=$TOP/bin/dnssec${DNSSEC_VARIANT}/dnssec-settime${DNSSEC_VARIANT}
cf16a9
+SIGNER=$TOP/bin/dnssec${DNSSEC_VARIANT}/dnssec-signzone${DNSSEC_VARIANT}
cf16a9
 TSIGKEYGEN=$TOP/bin/confgen/tsig-keygen
cf16a9
 VERIFY=$TOP/bin/dnssec/dnssec-verify
cf16a9
 WIRETEST=$TOP/bin/tests/wire_test
cf16a9
-- 
cf16a9
2.26.3
cf16a9