LLNL / libROM

Model reduction library with an emphasis on large scale parallelism and linear subspace methods
https://www.librom.net
Other
201 stars 36 forks source link

Add unit tests to CMake #295

Closed ckendrick closed 1 week ago

ckendrick commented 1 month ago

This registers unit tests in CMake so tests can be run with ctest. This also adds a build option ENABLE_TESTS to control whether to build unit tests. Previously, tests were built if googletest was found.

dylan-copeland commented 3 weeks ago

Should the unit tests still work with Google Test as before? Is there a new way to run the tests now?

ckendrick commented 3 weeks ago

Yes, the tests should still function as before with Google test. This just adds a new method for running all tests by using the ctest command in the build directory instead of each executable individually (see the changes in .github/workflows/run_tests/action.yml for an example).