Refactor test workflow

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2023-10-09 17:45:49 +02:00
parent 2f177eb8df
commit 11a3472941
6 changed files with 41 additions and 39 deletions

View File

@@ -1,5 +1,14 @@
#!/bin/bash -eu
source tests/docker_env.sh
run_in_docker ./tests/start-up-and-test.sh
if [[ "$#" -gt 1 ]]; then
if [[ $1 == "pkcs11" ]]; then
run_in_docker ./tests/start-up-and-test-pkcs11.sh
elif [[ $1 == "pytest" ]]; then
run_in_docker ./tests/start-up-and-test.sh
fi
else
run_in_docker ./tests/start-up-and-test.sh
fi