-
Notifications
You must be signed in to change notification settings - Fork 20
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
Switch generate_psa_test.py to automatic dependencies for positive test cases #83
Merged
yanesca
merged 17 commits into
main
from
dev/gilles-peskine-arm/psa-storage-test-cases-never-supported-positive-framework
Dec 20, 2024
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
0555f71
Create a framework for PSA test cases with automatic dependencies
gilles-peskine-arm 24901cd
TestCase: add mechanism to skip a test case
gilles-peskine-arm 5f0d655
Use psa_test_case.TestCase throughout generate_psa_tests.py
gilles-peskine-arm a3d2eaf
Prepare psa_test_cases to mix manual and automatic dependencies
gilles-peskine-arm e3615b9
Go through psa_test_case.TestCase for skipping never-implemented mech…
gilles-peskine-arm a489671
Move find_dependencies_not_implemented to psa_test_case.py
gilles-peskine-arm 8d72e5e
find_dependencies_not_implemented: Also read inferred PSA_WANT symbols
gilles-peskine-arm ea6951a
Explain why DSA is explicitly excluded
gilles-peskine-arm 119b3b9
generate_psa_tests: comment out always-skipped test cases
gilles-peskine-arm e3f9189
generate_psa_tests.py: Sort and uniquify dependencies
gilles-peskine-arm adb23c3
Support an alternative prefix in psa_information.automatic_dependencies
gilles-peskine-arm 16229d8
Switch crypto_data_tests.py to automatic dependencies
gilles-peskine-arm 05e4ae8
psa_test_case automatic dependencies: take the key size into account
gilles-peskine-arm 4a134ee
psa_test_case automatic dependencies: key pair type operations
gilles-peskine-arm f324e9e
psa_test_case automatic dependencies: RSA_GENERATE_MIN_KEY_BITS
gilles-peskine-arm a43fe58
psa_test_cases: automatically skip test cases
gilles-peskine-arm e1f38eb
generate_psa_tests: use automatic dependencies for positive test cases
gilles-peskine-arm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
psa_information.tweak_key_pair_dependency
, and thuspsa_test_case.TestCase.infer_dependencies
, silently suppresses dependencies on key pairs if a usage is specified and is notBASIC
orGENERATE
(for exampleIMPORT
orDERIVE
). Furthermore, if no usage is specified withset_key_pair_usage()
and a key pair type is present, theninfer_dependencies
ends up generating the deprecated dependency symbolPSA_WANT_KEY_TYPE_xxx_KEY_PAIR
.Right now, this ends up working, because we always call either
set_key_pair_usage('GENERATE')
orset_key_pair_usage('BASIC')
. This could be considered in scope sinceset_key_pair_usage()
is a new method and it isn't working correctly. This could also be considered out of scope since it doesn't break anything and the goal of this pull request is to forward-port some improvements, not to fix every problem we can find. I propose to consider it out-of-scope here, and handle it in the follow-up that handles negative test cases, for which the current behavior does introduce a bug.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.
I agree, we should consider it out of scope. (Just commenting, not reviewing.)