ctest Multiple labels

Discussion about coding and new developments

ctest Multiple labels

Postby Takala » 02 May 2017, 12:02

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
Takala
 
Posts: 173
Joined: 23 Aug 2009, 23:59

Return to Software development

Who is online

Users browsing this forum: No registered users and 1 guest

cron