Files
pico-hsm/tests/scripts/pkcs11.sh
2023-10-02 00:48:54 +02:00

14 lines
390 B
Bash
Executable File

#!/bin/bash
echo -n "Test initialization..."
./tests/scripts/initialize.sh
test $? -eq 0 && echo -e '\tok' || (echo -e '\tfail' && exit 1)
echo -n "Test keygen..."
./tests/scripts/keygen.sh
test $? -eq 0 && echo -e '\tok' || (echo -e '\tfail' && exit 1)
echo -n "Test sign and verify..."
./tests/scripts/sign_and_verify.sh
test $? -eq 0 && echo -e '\tok' || (echo -e '\tfail' && exit 1)