Skip to content

Commit

Permalink
test: remove pkcs11 engine test
Browse files Browse the repository at this point in the history
  • Loading branch information
mimizohar committed Jun 20, 2024
1 parent 3e60cd4 commit 1a901c2
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions tests/sign_verify.test
Original file line number Diff line number Diff line change
Expand Up @@ -439,14 +439,15 @@ expect_fail \
# Test signing with key described by pkcs11 URI
_softhsm_setup "${WORKDIR}"
if [ -n "${PKCS11_KEYURI}" ]; then
if evmctl --help 2>/dev/null | grep -q engine; then
expect_pass check_sign FILE=pkcs11test TYPE=ima KEY="${PKCS11_KEYURI}" ALG=sha256 PREFIX=0x030204aabbccdd0100 OPTS="--keyid=aabbccdd" EVMCTL_ENGINE="--engine pkcs11"
expect_pass check_sign FILE=pkcs11test TYPE=ima KEY="${PKCS11_KEYURI}" ALG=sha1 PREFIX=0x030202aabbccdd0100 OPTS="--keyid=aabbccdd" EVMCTL_ENGINE="--engine pkcs11"
else
__skip() { echo "pkcs11 test with engine is skipped since there is no engine support"; return "$SKIP"; }
expect_pass __skip
expect_pass __skip
fi

# if evmctl --help 2>/dev/null | grep -q engine; then
# expect_pass check_sign FILE=pkcs11test TYPE=ima KEY="${PKCS11_KEYURI}" ALG=sha256 PREFIX=0x030204aabbccdd0100 OPTS="--keyid=aabbccdd" EVMCTL_ENGINE="--engine pkcs11"
# expect_pass check_sign FILE=pkcs11test TYPE=ima KEY="${PKCS11_KEYURI}" ALG=sha1 PREFIX=0x030202aabbccdd0100 OPTS="--keyid=aabbccdd" EVMCTL_ENGINE="--engine pkcs11"
# else
# __skip() { echo "pkcs11 test with engine is skipped since there is no engine support"; return "$SKIP"; }
# expect_pass __skip
# expect_pass __skip
# fi

# provider may not be supported or pkcs11 provider not installed
if evmctl --help 2>/dev/null | grep -q provider && \
Expand Down

0 comments on commit 1a901c2

Please sign in to comment.