You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A lot of the tests require files that need to be read as part of the test execution. E.g. specfem_config.yml files. The paths are defined as relative paths from specfempp/build/tests/unit-tests/ to specfempp/tests/unit-tests/ and will therefore fail if the tests are built in e.g. specfempp/../build/.
Solution
One solution is to use CMake to actually manage test running through the add_test() directive, and define a working directory for each test:
The bug
A lot of the tests require files that need to be read as part of the test execution. E.g.
specfem_config.yml
files. The paths are defined as relative paths fromspecfempp/build/tests/unit-tests/
tospecfempp/tests/unit-tests/
and will therefore fail if the tests are built in e.g.specfempp/../build/
.Solution
One solution is to use CMake to actually manage test running through the
add_test()
directive, and define a working directory for each test:The text was updated successfully, but these errors were encountered: