ctest Multiple labels

Discussion about coding and new developments
Post Reply
Posts: 183
Joined: 23 Aug 2009, 23:59

ctest Multiple labels

Post by Takala » 02 May 2017, 12:02


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



Post Reply