Unpack PKITS_data.zip and run tests.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21781 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-08-01 19:25:51 +00:00
parent 31a03ec5c7
commit 46a2e577ca

View File

@@ -36,12 +36,16 @@
srcdir="@srcdir@"
objdir="@objdir@"
nistdir=/sources/pki/nist/PKITS_data
nistdir=${objdir}/PKITS_data
nistzip=${srcdir}/data/PKITS_data.zip
stat="--statistic-file=${objdir}/statfile"
hxtool="${TESTS_ENVIRONMENT} ./hxtool ${stat}"
# nistzip is not distributed part of the distribution
test -f "$nistzip" || exit 77
if ${hxtool} info | grep 'rsa: hcrypto null RSA' > /dev/null ; then
exit 77
fi
@@ -51,7 +55,9 @@ fi
echo "nist tests"
test -d "$nistdir" || exit 77
if [ ! -d "$nistdir" ] ; then
( mkdir "$nistdir" && cd "$nistdir" && unzip "$nistzip" ) || { rm -rf "$nistdir" ; exit 1; }
fi
while read id verify cert arg1 arg2 arg3 arg4 arg5 ; do
expr "$id" : "#" > /dev/null && continue