Add initialization test script with pkcs11
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user