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.
Fix test execution by complete refactoring.
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 thescripts 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 executablesare 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 currentdir 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...