-
Notifications
You must be signed in to change notification settings - Fork 74
Add smartcard test (New) #2013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add smartcard test (New) #2013
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2013 +/- ##
==========================================
+ Coverage 53.82% 54.83% +1.00%
==========================================
Files 406 413 +7
Lines 43289 45015 +1726
Branches 7997 8408 +411
==========================================
+ Hits 23301 24682 +1381
- Misses 19176 19487 +311
- Partials 812 846 +34
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ac45574 to
9cf1e5a
Compare
9cf1e5a to
90c96da
Compare
90c96da to
d63740f
Compare
tomli380576
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall lgtm the main thing is the comparison on line 186
tomli380576
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, I tested with 202411-36032's built-in reader and all the commands work as expected
|
Verifying the snap builds here: |
2. fix data type error 3. fix typo 4. simply the statement
2. add unit test
604c3bc to
0b7e6ea
Compare
Hook25
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, lgtm, sorry it took this much. Feel free to land it.
Have a few comments below for minor things
| sudo add-apt-repository ppa:checkbox-dev/edge | ||
| sudo apt-get update | ||
| sudo apt-get install -y -qq libgl1 gcc python$PYTHON_VERSION-dev shellcheck | ||
| sudo apt-get install -y -qq libgl1 gcc python$PYTHON_VERSION-dev shellcheck libpcsclite-dev swig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary? aren't those build depends?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, they are. PySCard will be built from source code with the libpcsclite Python bindings that generated by swig in the tox environment.
Co-authored-by: Massimiliano <massimiliano.girardi@canonical.com>
Co-authored-by: Massimiliano <massimiliano.girardi@canonical.com>
|
Test result of new modification: https://certification.canonical.com/hardware/202505-36773/submission/469996/ |
Description
This PR is going to add smart card relevant test cases and test plan. Including
libpcsclite-devandswigto tox environment to makepyscardcould be compiledpython3-pyscardundercehckbox-provider-basein thesnapcraft.yamlsmartcardcategorysmartcard_resource_contactresource job to generate contact type smart card readersmartcard_resource_contactlessresource job to generate contactless type smart card reader (The contactless smart card reader could not test without moving card manually)smartcard/smartcard-reader-infoto dump smart card reader debug information to logsmartcard/smartcard-reader-detect-contactto detect contact type smart card readersmartcard/smartcard-reader-detect-contactlessto detect contactless type smart card readersmartcard/smartcard-reader-send-apdu-autoto test the APDU command could be sent and processedsmartcard/smartcard-reader-detect-contact-manualto test contact type smart card reader could detect smart card insert/removesmartcard/smartcard-reader-detect-contactless-manualto test contactless type smart card reader could detect smart card insert/removeResolved issues
https://warthogs.atlassian.net/browse/SOMERVILLE-2331
Documentation
Tests
Building test:
https://github.com/canonical/checkbox/actions/runs/16443809078
auto test: https://certification.canonical.com/hardware/202503-36528/submission/438753/
Manual test: https://certification.canonical.com/hardware/202503-36528/submission/438752/
auto test: https://certification.canonical.com/hardware/202503-36528/submission/439416/
manual test: https://certification.canonical.com/hardware/202503-36528/submission/439418/
auto test: https://certification.canonical.com/hardware/202503-36528/submission/439423/
manual test: https://certification.canonical.com/hardware/202503-36528/submission/439425/
auto test: https://certification.canonical.com/hardware/202503-36528/submission/439432/
manual test: https://certification.canonical.com/hardware/202503-36528/submission/439433/
auto test: https://certification.canonical.com/hardware/202503-36528/submission/439550/
manual test: https://certification.canonical.com/hardware/202503-36528/submission/439546/