Skip to content

Commit

Permalink
test-pkcs11-tool-test-threads.sh - skip if opensc-tool not present
Browse files Browse the repository at this point in the history
As suggested in PR comments

 On branch X25519-improvements-2
 Changes to be committed:
	modified:   tests/test-pkcs11-tool-test-threads.sh
  • Loading branch information
dengert committed Nov 26, 2024
1 parent ab374ce commit 349419d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test-pkcs11-tool-test-threads.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ fi
echo "======================================================="
echo "Test pkcs11 threads IN "
echo "======================================================="
OPENSC_TOOL="../src/tools/opensc-tool"
echo "check for opensc-tool"
if [[ -f $OPENSC_TOOL ]] ; then
echo "trying opensc-tool -a"
$OPENSC_TOOL -a
if [[ "$?" -ne "0" ]] ; then
echo "No token found, skipping Test pkcs11 threads "
exit 77
fi
fi

$PKCS11_TOOL --test-threads IN -L --module="$P11LIB"
assert $? "Failed running tests"

Expand Down

0 comments on commit 349419d

Please sign in to comment.