-
Notifications
You must be signed in to change notification settings - Fork 68
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
Fix and refactor tests (follow-up) #110
Merged
Merged
Conversation
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
Previously, the test scripts have been executed from a rewritten version, which used `sed` to adjust binary paths. Not only have the tests passed despite the scripts not being created correctly, this mechanism was also cumbersome and intransparent. This refactoring now uses the original test scripts from the source tree. When building/testing with `cmake`/`ctest`, the (absolute) paths to executables are being taken from the environment, which is set in CMake via the new `declare_test_executable()` function. When executing tests from `make check` (or for manual execution), the current dir is used. Which is fine, if executed from the cmake build dir. The path to the files containing the expected data is passed as parameter now. Furthermore, some optimisations have been done in the bash scripts. Output files of the test execution are not deleted anymore, which should be OK, if executed in the build directory. EG_DATA is now also being passed as parameter. Refactor and add contrib test also, although not clear how this is connected and how this adds value to contrib...
Test `test1` has not been executed in CI, so I guess a change in the data set just went unnoticed.
Closed
thbeu
force-pushed
the
fix-and-refactor-tests
branch
from
March 9, 2024 13:43
b596e67
to
209435e
Compare
|
@thbeu Would you mind adding a |
Done. Just 14 s more for this step. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Continue #79,
TODO