aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@HansenPartnership.com>2023-06-26 10:11:10 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2023-06-26 10:13:45 -0400
commit85d1401b98b9348e34b8a3be7fefd8aebee467c5 (patch)
treec742f37f6a321259aa8ee1b34abc6c79d47c46b6
parentfdbab95dc58c30095da8c2d542fbc612b1fa3689 (diff)
downloadopenssl_tpm2_engine-85d1401b98b9348e34b8a3be7fefd8aebee467c5.tar.gz
tests: skip known test failures for swtpm
Apparently swtpm has deviated from the TPM2 reference implementation and one consequence of this is that it no longer handles parametrised EC curves correctly. Skip the non openssl curve tests to prevent this causing spurious test failures. Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
-rwxr-xr-xtests/create_nonopenssl_ecc.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/create_nonopenssl_ecc.sh b/tests/create_nonopenssl_ecc.sh
index a23a4cf..c1e6b4d 100755
--- a/tests/create_nonopenssl_ecc.sh
+++ b/tests/create_nonopenssl_ecc.sh
@@ -1,5 +1,10 @@
#!/bin/bash
+# swtpm doesn't have a correct implementation of the Barreto-Naehrig curves
+# which are the only openssl unparametrised ones, so skip the test
+if [ -x "${SWTPM}" ]; then
+ exit 77;
+fi
##
# test is