df81e8
From 84fc64b556d5b5145eb7831393b856a26a818dc1 Mon Sep 17 00:00:00 2001
25e332
From: Petr Mensik <pemensik@redhat.com>
25e332
Date: Fri, 1 Mar 2019 15:55:46 +0100
25e332
Subject: [PATCH] Detect correctly pkcs11 support
25e332
25e332
It fails now always, because oot builds are not supported by
25e332
cleanpkcs11.sh.
25e332
---
25e332
 bin/tests/system/cleanpkcs11.sh | 2 +-
25e332
 bin/tests/system/conf.sh.in     | 1 +
25e332
 2 files changed, 2 insertions(+), 1 deletion(-)
25e332
25e332
diff --git a/bin/tests/system/cleanpkcs11.sh b/bin/tests/system/cleanpkcs11.sh
25e332
index b974708..3bbef4c 100644
25e332
--- a/bin/tests/system/cleanpkcs11.sh
25e332
+++ b/bin/tests/system/cleanpkcs11.sh
25e332
@@ -12,6 +12,6 @@
25e332
 SYSTEMTESTTOP=.
25e332
 . $SYSTEMTESTTOP/conf.sh
25e332
 
25e332
-if [ ! -x ../../pkcs11/pkcs11-destroy ]; then exit 1; fi
25e332
+if [ ! -x "$PK11DESTROY" ]; then exit 1; fi
25e332
 
25e332
 $PK11DEL -w0 > /dev/null 2>&1
25e332
diff --git a/bin/tests/system/conf.sh.in b/bin/tests/system/conf.sh.in
df81e8
index e7831d8..aa2d841 100644
25e332
--- a/bin/tests/system/conf.sh.in
25e332
+++ b/bin/tests/system/conf.sh.in
df81e8
@@ -52,6 +52,7 @@ NSLOOKUP=$TOP/bin/dig/nslookup
df81e8
 NSUPDATE=$TOP/bin/nsupdate/nsupdate
df81e8
 NZD2NZF=$TOP/bin/tools/named-nzd2nzf
df81e8
 PK11DEL="$TOP/bin/pkcs11/pkcs11-destroy -s ${SLOT:-0} -p ${HSMPIN:-1234} -w 0"
df81e8
+PK11DESTROY=$TOP/bin/pkcs11/pkcs11-destroy
25e332
 PK11GEN="$TOP/bin/pkcs11/pkcs11-keygen -q -s ${SLOT:-0} -p ${HSMPIN:-1234}"
25e332
 PK11LIST="$TOP/bin/pkcs11/pkcs11-list -s ${SLOT:-0} -p ${HSMPIN:-1234}"
df81e8
 RESOLVE=$TOP/lib/samples/resolve
25e332
-- 
25e332
2.20.1
25e332