- Python 3.10 with
pipenv
To install Python dependencies for this project only it suffices to call:
pipenv installPlease refer to the main project readme for details:
It is possible to test the implementation using simulation without the actual hardware. The process and tests communicate via UDP.
Please refer to the main project readme for details regarding how to run the UDP simulation:
Running actual tests:
pipenv run pytest test_comm.pySame, but write live logs to output:
pipenv run pytest test_comm.py -svx --log-cli-level=DEBUGSimilarly to the simulation case, but with --hardware switch and additional environment variables:
env REAL_HARDWARE=1 TRANSPORT=FIDO2for FIDO2 transportenv REAL_HARDWARE=1 TRANSPORT=U2Ffor U2F transport
E.g. for the U2F transport:
env REAL_HARDWARE=1 TRANSPORT=U2F pipenv run pytest --hardware test_comm.pyFor the CI use a Makefile is prepared, which automatically setups and runs both the simulation and tests. The UDP simulation has to be executed before that. Execution:
make