pico-hsm/tests/start-up-and-test-pkcs11.sh
Pol Henarejos c3af303468
Split pytest and pkcs11 test suites.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2023-10-09 00:58:49 +02:00

15 lines
331 B
Bash

#!/bin/bash
rm -rf pypicohsm
git clone https://github.com/polhenarejos/pypicohsm.git
pip3 install -e pypicohsm
/usr/sbin/pcscd &
sleep 2
rm -f memory.flash
tar -xf tests/memory.tar.gz
./build_in_docker/pico_hsm > /dev/null 2>&1 &
chmod a+x tests/scripts/*.sh
echo "======== PKCS11 Test suite ========"
./tests/scripts/pkcs11.sh