-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Modify lcov.sh to work in tf-psa-crypto as well #8395
Modify lcov.sh to work in tf-psa-crypto as well #8395
Conversation
Add repository detection (credit to davidhorstmann-arm for adding this in all.sh previously) and use repository detection to set the library directory and title variables. Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
81407df
to
11120f9
Compare
The script is supposed to be invoked from the build directory. It doesn't need to know the name of the build directory. The name of the build directory can be arbitrary; it's common to have multiple build directories with different configurations or compiler options. |
Roger, thank you. I was confused over that but makes sense now. Will modify it. |
lcov.sh can now be called from any build directory and also still works with in-place builds too. Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
I've just noticed that the |
The Thanks to @davidhorstmann-arm for helping me to get to the bottom of that. |
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, thanks.
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
Description
This PR solves part one of Mbed-TLS/TF-PSA-Crypto#41.
Add repository detection (credit to davidhorstmann-arm for adding this in all.sh previously) and use repository detection to set the library directory and title variables.
I have tested this script locally against both mbedtls and tf-psa-crypto and the results were as expected.
Limitations: The modifications rely on the build directory being named "build" in tf-psa-crypto which may not always be the case. Perhaps this is ok for now, but I will document it. Otherwise perhaps we could supply the build directory name as a command line argument. Open to suggestions.
PR checklist
Please tick as appropriate and edit the reasons (e.g.: "backport: not needed because this is a new feature")
Notes for the submitter
Please refer to the contributing guidelines, especially the
checklist for PR contributors.