MantisBT - CMake
View Issue Details
0014287CMakeCTestpublic2013-07-11 17:592016-06-10 14:31
Rolf Eike Beer 
Kitware Robot 
normalfeaturealways
closedmoved 
CMake 2.8.11.2 
 
0014287: CTest options should be cumulative
Writing a commandline like "ctest -R (foo|bar)" requires quoting of the regex e.g. with bash as bash tries to interpret (|) itself. Also if the number of expressions grows those regexes become clumsy.

It would be very nice if the same could be achieved by simply calling ctest -R foo -R bar. The same probably applies to -L, -LE, -E, -I, and maybe also -A.

For the moment it would be at least helpful to warn if any of these is used multiple times so it is obvious why it doesn't work.
No tags attached.
Issue History
2013-07-11 17:59Rolf Eike BeerNew Issue
2013-07-11 18:05Jean-Christophe Fillion-RobinNote Added: 0033528
2013-07-12 04:52Marcel LooseNote Added: 0033529
2013-07-15 08:32Brad KingStatusnew => backlog
2016-06-10 14:29Kitware RobotNote Added: 0042318
2016-06-10 14:29Kitware RobotStatusbacklog => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0033528)
Jean-Christophe Fillion-Robin   
2013-07-11 18:05   
Agreed. That would be helpful.
(0033529)
Marcel Loose   
2013-07-12 04:52   
You can use (single|double) quotes, to stop bash from interpreting the pipe symbol.

  $ ctest -R 'foo|bar'

will do the trick.
(0042318)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.