-
Notifications
You must be signed in to change notification settings - Fork 94
Improve test runner script with refactoring and prerequisite checks #509
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
Conversation
86f3774 to
3505c8f
Compare
dc55734 to
129b151
Compare
c6a0970 to
51a3803
Compare
51a3803 to
d88f23f
Compare
|
For additional context, the initial goal of this pull request was to allow me to understand the missing prerequisites. The proposed improvements fulfill this. This is now ready for integration 🙏 |
2f1962a to
8203180
Compare
|
@jcfr Thank you for making this MUCH easier to understand. |
Yeah - it is (was) a bit of a mess. I just started digging into it in the past few days myself. |
8203180 to
2bc5572
Compare
This change refactors the test runner script by adding a `run()` function for executing compiler commands, capturing their output, and returning the results.
This change updates the test runner script to check for the presence of required compilers (clang, gcc) before running tests.
Suggested-by: Oliver Stöneberg <firewave@users.noreply.github.com>
…s handling Suggested-by: Oliver Stöneberg <firewave@users.noreply.github.com>
Suggested-by: Oliver Stöneberg <firewave@users.noreply.github.com>
`from __future__ import annotations` is useful in importable packages to enable postponed evaluation of annotations. However, in a standalone script like `run-tests.py`, it adds no value.
2bc5572 to
89e6b31
Compare
firewave
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. The stuff I wanted to check will need to be redone anyways, so no need to further look into that.
This pull request enhances the test runner script with two main improvements:
run()function that centralizes the logic for executing compiler commands, capturing their output, and returning results.clang,gcc) are present before running tests.