Running tests with CTest

Running tests when compiling from source

You can run the tests of any OPM repository with the CTest command line tool. Move to your build directory for your OPM repository, and run CTest in your terminal by simply running

ctest

To target specific tests, use

ctest -R some_text

to run exactly the tests that have some_text in their name. For verbose output from the test, and the -VV flag.

Running GPU tests

All GPU specific tests have the gpu label, meaning one can run the GPU tests by running

ctest -L gpu -VV