mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-01-17 09:28:05 +00:00
Add PKCS11 tool test
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
654cb1e4e0
commit
2853b38b08
2 changed files with 18 additions and 0 deletions
|
|
@ -42,3 +42,10 @@ test $? -eq 0 || {
|
|||
echo -e "\t${FAIL}"
|
||||
exit 1
|
||||
}
|
||||
|
||||
echo "==== Test PKCS11-tool ===="
|
||||
./tests/scripts/pkcs11_test.sh
|
||||
test $? -eq 0 || {
|
||||
echo -e "\t${FAIL}"
|
||||
exit 1
|
||||
}
|
||||
11
tests/scripts/pkcs11_test.sh
Executable file
11
tests/scripts/pkcs11_test.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
source ./tests/scripts/func.sh
|
||||
reset
|
||||
test $? -eq 0 || exit $?
|
||||
|
||||
echo -n " Test PKCS11 tool..."
|
||||
gen_and_check rsa:2048
|
||||
test $? -eq 0 && echo -n "." || exit $?
|
||||
pkcs11-tool --test -l --pin 648219 > /dev/null 2>&1
|
||||
test $? -eq 0 && echo -e ".\t${OK}" || exit $?
|
||||
Loading…
Add table
Reference in a new issue