pico-hsm/tests/start-up-and-test.sh
Pol Henarejos 088002863c
Before cloning, it should be removed.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2023-03-20 18:03:49 +01:00

12 lines
273 B
Bash
Executable File

#!/bin/bash -eu
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 &
pytest tests -W ignore::DeprecationWarning