[CMake] All right all you CMake test writers....

2012-07-11 Thread Kent Williams
Here's something I find really annoying: Someone who names tests such that the name of one is a prefix of the name of another! So if you do this: ctest -V -R testname You get every test whose name begins with testname. Just had to vent. -- Powered by www.kitware.com Visit other Kitware

Re: [CMake] All right all you CMake test writers....

2012-07-11 Thread Jean-Christophe Fillion-Robin
Hi Kent, Given the fact the parameter -R accepts a regular expression, you could use the ^ and $ associated with regular expression. In your case, running: ctest -R ^Foo$ will only execute test matching Foo where as running ctest -R Foo will execute tests having the string Foo within