The openSC package includes the pkcs11 tool, a very rudimentary test suite, pkcs11-tool --test --slot X --module module . This is just for reference, I'm sure you can find some quirks in the pkcs11-tool test suite if you use the weird or slightly exotic PKCS # 11 module.
source share