Cannot execute gnuk tests #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Most likely. I reverse-engineered the not so well documented dependencies for the Gnuk test repository and initiated the contained tests. They should just use APDUs according to the OpenPGP spec. But I could not get so far.
The
conftest.pyfixture prepares the environment for each test and it failed somewhere aroundget_ccid_device().I deleted the VM where I tested but it was related to [
card_reader.py](https://salsa.debian.org/gnuk-team/gnuk/gnuk/-/blob/master/tests/card_reader.py#L322) and
usb.core. The iterator was empty.I think it is not just the VID:PID (if I remember correclty, I even tested a few) but some USB/CCID quirks are done for specific card reader models.
Originally posted by @rrottmann in https://github.com/polhenarejos/pico-hsm/issues/16#issuecomment-1410993894
I cannot run it in Mac since it complains about permissions.
Anyway, I think the best approach is to port these tests to
pyscard, which implements all ccid stack, and interface only with apdu.It runs smoothly without problems.