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