2a4663
From 06a22ff20ac3d68fa1f995c91068b43392425e43 Mon Sep 17 00:00:00 2001
25e332
From: Petr Mensik <pemensik@redhat.com>
25e332
Date: Fri, 1 Mar 2019 15:48:20 +0100
25e332
Subject: [PATCH] Make alternative named builds testable in system tests
25e332
25e332
Red Hat has alternative variant builds of named, which are not ever
25e332
tested by system tests. New variables make it relatively easy to test
25e332
alternative variants.
25e332
25e332
For sdb variant use:
25e332
export NAMED_VARIANT=-sdb DNSSEC_VARIANT=
25e332
25e332
For pkcs variant use:
25e332
export NAMED_VARIANT=-pkcs11 DNSSEC_VARIANT=-pkcs11
25e332
---
25e332
 bin/tests/system/conf.sh.in | 19 ++++++++++---------
25e332
 1 file changed, 10 insertions(+), 9 deletions(-)
25e332
25e332
diff --git a/bin/tests/system/conf.sh.in b/bin/tests/system/conf.sh.in
2a4663
index 4b0fe39..f135af6 100644
25e332
--- a/bin/tests/system/conf.sh.in
25e332
+++ b/bin/tests/system/conf.sh.in
2a4663
@@ -34,7 +34,7 @@ DISABLED_ALGORITHM=ECDSAP384SHA384
2a4663
 DISABLED_ALGORITHM_NUMBER=14
2a4663
 DISABLED_BITS=384
25e332
 
25e332
-NAMED=$TOP/bin/named/named
25e332
+NAMED=$TOP/bin/named${NAMED_VARIANT}/named${NAMED_VARIANT}
25e332
 # We must use "named -l" instead of "lwresd" because argv[0] is lost
25e332
 # if the program is libtoolized.
25e332
 LWRESD="$TOP/bin/named/named -l"
2a4663
@@ -45,13 +45,14 @@ NSUPDATE=$TOP/bin/nsupdate/nsupdate
25e332
 DDNSCONFGEN=$TOP/bin/confgen/ddns-confgen
25e332
 TSIGKEYGEN=$TOP/bin/confgen/tsig-keygen
25e332
 RNDCCONFGEN=$TOP/bin/confgen/rndc-confgen
25e332
-KEYGEN=$TOP/bin/dnssec/dnssec-keygen
25e332
-KEYFRLAB=$TOP/bin/dnssec/dnssec-keyfromlabel
25e332
-SIGNER=$TOP/bin/dnssec/dnssec-signzone
25e332
-REVOKE=$TOP/bin/dnssec/dnssec-revoke
25e332
-SETTIME=$TOP/bin/dnssec/dnssec-settime
25e332
-DSFROMKEY=$TOP/bin/dnssec/dnssec-dsfromkey
25e332
-IMPORTKEY=$TOP/bin/dnssec/dnssec-importkey
25e332
+KEYGEN=$TOP/bin/dnssec${DNSSEC_VARIANT}/dnssec-keygen${DNSSEC_VARIANT}
25e332
+KEYFRLAB=$TOP/bin/dnssec${DNSSEC_VARIANT}/dnssec-keyfromlabel${DNSSEC_VARIANT}
25e332
+SIGNER=$TOP/bin/dnssec${DNSSEC_VARIANT}/dnssec-signzone${DNSSEC_VARIANT}
25e332
+REVOKE=$TOP/bin/dnssec${DNSSEC_VARIANT}/dnssec-revoke${DNSSEC_VARIANT}
25e332
+SETTIME=$TOP/bin/dnssec${DNSSEC_VARIANT}/dnssec-settime${DNSSEC_VARIANT}
25e332
+DSFROMKEY=$TOP/bin/dnssec${DNSSEC_VARIANT}/dnssec-dsfromkey${DNSSEC_VARIANT}
25e332
+IMPORTKEY=$TOP/bin/dnssec${DNSSEC_VARIANT}/dnssec-importkey${DNSSEC_VARIANT}
25e332
+CHECKDS=$TOP/bin/python/dnssec-checkds
25e332
 CHECKDS=$TOP/bin/python/dnssec-checkds
25e332
 COVERAGE=$TOP/bin/python/dnssec-coverage
25e332
 KEYMGR=$TOP/bin/python/dnssec-keymgr
2a4663
@@ -71,7 +72,7 @@ DNSTAPREAD=$TOP/bin/tools/dnstap-read
25e332
 MDIG=$TOP/bin/tools/mdig
25e332
 NZD2NZF=$TOP/bin/tools/named-nzd2nzf
25e332
 FSTRM_CAPTURE=@FSTRM_CAPTURE@
25e332
-FEATURETEST=$TOP/bin/named/feature-test
25e332
+FEATURETEST=$TOP/bin/named${NAMED_VARIANT}/feature-test${NAMED_VARIANT}
25e332
 
25e332
 RANDFILE=$TOP/bin/tests/system/random.data
25e332
 
25e332
-- 
25e332
2.20.1
25e332