-
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
Enable collect_test_cases.py to work for TF-PSA-Crypto #118
Enable collect_test_cases.py to work for TF-PSA-Crypto #118
Conversation
63203e3
to
a958e4d
Compare
a958e4d
to
cb943bc
Compare
@Harry-Ramsey I think you need to base it on the head of mbedtls-framework. The CI has started to complain. |
@@ -142,3 +142,16 @@ def is_mbedtls_3_6() -> bool: | |||
return False | |||
with open(os.path.join(root, 'include', 'mbedtls', 'build_info.h'), 'r') as f: | |||
return re.search(r"#define MBEDTLS_VERSION_NUMBER.*0x0306", f.read()) is not None | |||
|
|||
def is_mbedtls_4_x() -> bool: |
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.
Isn't this check not really future proof? I mean, I know that 4.x is the near future and we're going to deal with it for a while, but this check is going to fail in >= 5.x. At the same time we don't know yet if tests based on this check will change by that time...
Can't we instead live with only is_mbedtls_3.6
and use not is_mbedtls_3.6
in collect_test_cases.py
in place of this new function?
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.
That's a good point. Thus let's stick to:
if build_tree.looks_like_mbedtls_root(project_root) and \
not build_tree.is_mbedtls_3_6():
and no need to add is_mbedtls_4_x
.
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.
Fixed and rebased, thanks.
20d63ce
to
246dfa2
Compare
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 but there are some trailing spaces.
This commit adapts collect_test_cases.py to work for Mbed TLS and TF-PSA-Crypto. Signed-off-by: Harry Ramsey <[email protected]>
049270e
246dfa2
to
049270e
Compare
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
This commit adapts collect_test_cases.py to work for Mbed TLS and TF-PSA-Crypto.
PR checklist
Please add the numbers (or links) of the associated pull requests for consuming branches. You can omit branches where this pull request is not needed.
Notes for the submitter
Please refer to the contributing guidelines, especially the
checklist for PR contributors.
Help make review efficient: