Add initialization test script with pkcs11

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2023-09-24 10:30:59 +02:00
parent 08e7d74a81
commit d906df2809
4 changed files with 18 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash -eu
#!/bin/bash
rm -rf pypicohsm
git clone https://github.com/polhenarejos/pypicohsm.git
@@ -7,12 +7,11 @@ pip3 install -e pypicohsm
sleep 2
rm -f memory.flash
tar -xf tests/memory.tar.gz
./build_in_docker/pico_hsm > /dev/null &
#pytest tests -W ignore::DeprecationWarning
./build_in_docker/pico_hsm > /dev/null 2>&1 &
pytest tests -W ignore::DeprecationWarning
chmod a+x tests/scripts/*.sh
echo -n "Test initialization... "
./tests/scripts/initialize.sh
echo "\tok"
./tests/scripts/initialize.sh > /dev/null 2>&1
test $? -eq 0 && echo -e '\tok' || (echo -e '\tfail' && exit 1)