Blame tests/rsa-testpkcs11.softhsm

Packit 6b81fa
#!/bin/sh
Packit 6b81fa
Packit 6b81fa
# Copyright (C) 2013 Nikos Mavrogiannopoulos
Packit 6b81fa
#
Packit 6b81fa
# This file is part of GnuTLS.
Packit 6b81fa
#
Packit 6b81fa
# GnuTLS is free software; you can redistribute it and/or modify it
Packit 6b81fa
# under the terms of the GNU General Public License as published by the
Packit 6b81fa
# Free Software Foundation; either version 3 of the License, or (at
Packit 6b81fa
# your option) any later version.
Packit 6b81fa
#
Packit 6b81fa
# GnuTLS is distributed in the hope that it will be useful, but
Packit 6b81fa
# WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6b81fa
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6b81fa
# General Public License for more details.
Packit 6b81fa
#
Packit 6b81fa
# You should have received a copy of the GNU General Public License
Packit 6b81fa
# along with GnuTLS; if not, write to the Free Software Foundation,
Packit 6b81fa
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Packit 6b81fa
Packit 6b81fa
outdir="output.$$"
Packit 6b81fa
Packit 6b81fa
# Load common test functions
Packit 6b81fa
. ${srcdir}/rsa-common.sh
Packit 6b81fa
Packit 6b81fa
# Do the common test initialization
Packit 6b81fa
common_init
Packit 6b81fa
Packit 6b81fa
../examples/auth ${MODULE} ${PIN}
Packit 6b81fa
if test $? != 0;then
Packit 6b81fa
	echo "Basic PKCS #11 test test failed"
Packit 6b81fa
	exit 1;
Packit 6b81fa
fi
Packit 6b81fa
Packit 6b81fa
# Cleanup
Packit 6b81fa
rm -rf "$outdir"
Packit 6b81fa
Packit 6b81fa
exit 0