-
-
Notifications
You must be signed in to change notification settings - Fork 311
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
tests: Revise content of the root testsuite dir #4516
Conversation
wenzeslaus
commented
Oct 14, 2024
- Remove Makefiles.
- Move the functioning test to the testsuite directory for the gunittest to pick it up.
- Remove the extended example how to run gunittest. Point to the CI in the README instead.
- Remove hemisphere generator because it does not test anything by itself (without further processing and a human).
- Remove GPS import tests as the tools are not in core.
- Remove division into subdirectories. The directories with the code should be used instead.
- Improve the test for gunittest loader function with some duplication but now creating an overview of .py and .sh tests.
* Remove Makefiles. * Move the functioning test to the testsuite directory for the gunittest to pick it up. * Remove the extended example how to run gunittest. Point to the CI in the README instead. * Remove hemisphere generator because it does not test anything by itself (without further processing and a human). * Remove GPS import tests as the tools are not in core. * Remove division into subdirectories. The directories with the code should be used instead. * Improve the test for gunittest loader function with some duplication but now creating an overview of .py and .sh tests.
Do we want to install md5sum on macOS, replace the md5sum call with inlined Python, or disable the test on macOS? (I'm not ready to rewrite the whole test to Python, although that's an option, too.)
|
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
I think installing md5sum might be appropriate for now, I don't see a quick way to have it called on cli without having a full script written. Once cached, installs on macOS CI are quite fast. |
On Mac there is md5 available by default. |
Regarding the note that the modern way is using pytest (for gunittest) in the modified testsuite/README.md, theres a couple of points that I think are misunderstood or has limitations.
|
It seems there's some differences to be aware of: https://security.stackexchange.com/questions/65499/difference-between-os-x-md5-and-gnu-md5sum |
Of course, minor adjustments are needed, but in this case better than add a new dependency. |
#4527 will fix this. If there would not have been file rename involved I would have added it here. |
Test now passes on Mac too! |
It's ok, as technically, that's what we would want it to be at one point. |