ci: Add test cases for ECDSA using PSA Crypto

Add ECDSA verification tests to the CI using the PSA Crypto API

Signed-off-by: Roland Mikhel <roland.mikhel@arm.com>
Change-Id: I904c8929f355ec791ff28ac7c3e0ca3832b2403d
diff --git a/ci/sim_run.sh b/ci/sim_run.sh
index 59d65e1..7a9ff2d 100755
--- a/ci/sim_run.sh
+++ b/ci/sim_run.sh
@@ -43,10 +43,20 @@
 if [[ ! -z $MULTI_FEATURES ]]; then
   IFS=','
   read -ra multi_features <<< "$MULTI_FEATURES"
+
+  # psa crypto tests require single thread mode
+  TEST_ARGS=''
+  for features in "${multi_features[@]}"; do
+    if [[ $features =~ "psa" ]]; then
+        TEST_ARGS='--test-threads=1'
+        break
+    fi
+  done
+
   for features in "${multi_features[@]}"; do
     echo "Running cargo for features=\"${features}\""
-    time cargo test --no-run --features "$features"
-    time cargo test --features "$features"
+    time cargo test --no-run --features "$features" -- $TEST_ARGS
+    time cargo test --features "$features" -- $TEST_ARGS
     rc=$? && [ $rc -ne 0 ] && EXIT_CODE=$rc
   done
 fi