Parameterise the invocation of hxtool, so we can make it run under TESTS_ENVIRONMENT. From Andrew Bartlett
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18388 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -37,7 +37,9 @@
|
||||
srcdir="@srcdir@"
|
||||
nistdir=/sources/pki/nist/PKITS_data
|
||||
|
||||
if ./hxtool info | grep 'rsa: hcrypto null RSA' > /dev/null ; then
|
||||
hxtool="${TESTS_ENVIRONMENT} ./hxtool"
|
||||
|
||||
if ${hxtool} info | grep 'rsa: hcrypto null RSA' > /dev/null ; then
|
||||
exit 77
|
||||
fi
|
||||
|
||||
@@ -82,7 +84,7 @@ while read id verify cert arg1 arg2 arg3 arg4 arg5 ; do
|
||||
args="$args crl:FILE:$nistdir/crls/TrustAnchorRootCRL.crl"
|
||||
args="$args cert:FILE:$nistdir/certs/$cert"
|
||||
|
||||
if ./hxtool verify $args > /dev/null; then
|
||||
if ${hxtool} verify $args > /dev/null; then
|
||||
if test "$verify" = "f"; then
|
||||
echo "verify passed on fail: $id $cert"
|
||||
exit 1
|
||||
|
Reference in New Issue
Block a user