We have recently introduced labels in cmake to make it easier to pick or exclude subset of tests. The final motivation came from merging Elmer/Ice tests into elmer devel branch. Many of those tests take a very long to to compute.
Currently the following labels are introduced:
- quick: tests running in ~1s or less (171 tests)
- slow: tests running in ~100s or less (11 tests)
- benchmark: representative set of medium fast tests (14 tests)
- elmerice: tests of elmerice
To run all the quick tests after compilation say
Code: Select all
ctest -L quick
Code: Select all
ctest -j4 -LE slow
The way to introduce the labels is to append in the test directory "testname" for file CMakeLists.txt:
Code: Select all
ADD_ELMER_LABEL(testname label)
- cfd: computational fluid dynamics
- cem: computational electromagnetics
- csm: computational solid mechanics
Any ideas on what kind of labels to introduce are welcome.
-Peter