-
Notifications
You must be signed in to change notification settings - Fork 189
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
CMake maintenance #4468
CMake maintenance #4468
Conversation
When a test case doesn't need CMake variable substitution during configuration, there is no need to rename it. Renaming test files hinders Coverage.py's ability to map test files in the build directory to the corresponding test files in the root directory. Use FILE_SUFFIX to change the filepath during configuration, and SUFFIX to change the test name in CTest.
The checkpoint and ek_eof_one_species tests no longer depend on CMake variables substitution. Instead, the test parameters are passed as arguments to the test file and a class factory generates the test class and parses the test parameters.
Move utility functions to test cases that use them, if they are used only once.
Mark shared python files as explicit dependencies of client tests instead of passing them to `add_custom_target()`.
Now that I see this PR, I noticed that it exists one instruction of cmake |
It also ignores the CMake variable |
@jngrad thank you for the explanation! |
This PR is needed for the upcoming electrostatics/magnetostatics refactoring PR. |
Description of changes:
checkpoint_test()
and call it once for each combination of features (improves readability and separation of concerns)