2020-12-15 22:49:10 +00:00
|
|
|
#!/bin/bash
|
2021-05-01 20:16:51 +00:00
|
|
|
SOURCE_PATH=${SOURCE_PATH:-../}
|
2020-12-15 22:49:10 +00:00
|
|
|
|
2021-05-01 20:16:51 +00:00
|
|
|
source $SOURCE_PATH/tests/common.sh
|
2020-12-15 22:49:10 +00:00
|
|
|
|
|
|
|
echo "======================================================="
|
|
|
|
echo "Setup SoftHSM"
|
|
|
|
echo "======================================================="
|
|
|
|
if [[ ! -f $P11LIB ]]; then
|
|
|
|
echo "WARNINIG: The SoftHSM is not installed. Can not run this test"
|
|
|
|
exit 77;
|
|
|
|
fi
|
|
|
|
|
|
|
|
card_setup
|
|
|
|
|
|
|
|
echo "======================================================="
|
|
|
|
echo "Test pkcs11 threads OSILGISLT0 "
|
|
|
|
echo "======================================================="
|
|
|
|
$PKCS11_TOOL --test-threads IN -L
|
|
|
|
assert $? "Failed running tests"
|
|
|
|
|
|
|
|
|
|
|
|
echo "======================================================="
|
|
|
|
echo "Test pkcs11 threads OSILGISLT0 "
|
|
|
|
echo "======================================================="
|
|
|
|
$PKCS11_TOOL --test-threads OSILGISLT0 -L
|
|
|
|
assert $? "Failed running tests"
|
|
|
|
|
|
|
|
echo "======================================================="
|
|
|
|
echo "Cleanup"
|
|
|
|
echo "======================================================="
|
|
|
|
card_cleanup
|
|
|
|
|
|
|
|
exit $ERRORS
|