pico-hsm/tests/scripts/pkcs11.sh
Pol Henarejos c44d7db4e1
Refactor tests
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2023-10-09 00:34:50 +02:00

23 lines
409 B
Bash
Executable file

#!/bin/bash
source ./tests/scripts/func.sh
echo "==== Test initialization ===="
./tests/scripts/initialize.sh
test $? -eq 0 || {
echo -e "\t${FAIL}"
exit 1
}
echo "==== Test keygen ===="
./tests/scripts/keygen.sh
test $? -eq 0 || {
echo -e "\t${FAIL}"
exit 1
}
echo "==== Test sign and verify ===="
./tests/scripts/sign_and_verify.sh
test $? -eq 0 || {
echo -e "\t${FAIL}"
exit 1
}