Hi Kent, <div><br></div><div>Given the fact the parameter -R accepts a regular expression, you could use the &quot;^&quot; and &quot;$&quot; associated with regular expression.</div><div><br></div><div>In your case, running:</div>

<div><br></div><div>    ctest -R ^Foo$ </div><div><br></div><div>will only execute test matching &quot;Foo&quot; where as running </div><div><br></div><div>  ctest -R Foo </div><div><br></div><div>will execute tests having the string Foo within their names.</div>

<div><br></div><div>Hth</div><div>Jc</div><div><br><div class="gmail_quote">On Wed, Jul 11, 2012 at 10:59 AM, Kent Williams <span dir="ltr">&lt;<a href="mailto:nkwmailinglists@gmail.com" target="_blank">nkwmailinglists@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Here&#39;s something I find really annoying:  Someone who names tests such<br>
that the name of one is a prefix of the name of another!  So if you do<br>
this:<br>
<br>
ctest -V -R &lt;testname&gt;<br>
<br>
You get every test whose name begins with &lt;testname&gt;.<br>
<br>
Just had to vent.<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>+1 919 869 8849<br><br>
</div>