Page 1 of 1

ctest Multiple labels

Posted: 02 May 2017, 12:02
by Takala
Hello,

I report here a simple solution to a problem that has been discussed here http://cmake.3232098.n2.nabble.com/Runn ... 95208.html.

The problem is: how to run ctest with multiple labels? At the moment this is surprisingly difficult. One needs to use regex. The aforementioned discussion actually contains a similar
script that I decided to create. The difference is that this new script allows to run tests with any number of labels.

So the usage is:

Code: Select all

$ ctestl [list of labels]
for example with 3 labels

Code: Select all

$ ctestl label1 label2 label3
All those tests are run that contain all of the labels.

I hope you find this usefull: https://github.com/ettaka/ctestl

Cheers,

Eelis