Hi David, <br><br>Not too long ago I was browsing the project of a friend who worked on BTK (The toolkit used by Mokka, a motion kinematic &amp; kinetic analyser) [1].<br><br>I noticed that he is using <b>cxxtest</b> [2] along with <b>ctest</b>. It seems it could to address the use case you are describing.<br>

<br>See Example integration [3] and cxxtest source [4]<br><br>Hth<br>Jc<br><br>[1] <a href="https://b-tk.googlecode.com/svn/web/mokka/index.html">https://b-tk.googlecode.com/svn/web/mokka/index.html</a><br>[2] <a href="http://cxxtest.tigris.org/">http://cxxtest.tigris.org/</a><br>

[3] <a href="https://code.google.com/p/b-tk/source/browse/BTK/trunk/Testing/Code/C3DFileReaderTest.h">https://code.google.com/p/b-tk/source/browse/BTK/trunk/Testing/Code/C3DFileReaderTest.h</a><br>[4] <a href="https://code.google.com/p/b-tk/source/browse/#svn%2FBTK%2Ftrunk%2FUtilities%2FCxxTest%2Fcxxtest">https://code.google.com/p/b-tk/source/browse/#svn%2FBTK%2Ftrunk%2FUtilities%2FCxxTest%2Fcxxtest</a><br>

<br><div class="gmail_quote">On Fri, Jan 6, 2012 at 10:03 AM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com">daviddoria@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">

Does CTest have a mechanism to run man mini-tests in a single file?<br>
I&#39;m looking for something equivalent to the UnitTest++ syntax:<br>
<br>
TEST(YourTestName)<br>
{}<br>
TEST(YourOtherTestName){}<br>
int main(){  return UnitTest::RunAllTests();}<br>
Of course you could do something like:<br>
<br>
int YourTestName()<br>
{<br>
<br>
}<br>
<br>
int YourOtherTestName()<br>
{<br>
}<br>
<br>
int main()<br>
{<br>
  YourTestName();<br>
  YourOtherTestName();<br>
}<br>
<br>
but then you have to manually output the name of the test if it fails,<br>
you could forget to call one of the tests, etc.<br>
<br>
Is there anything like this for CMake/CTest?<br>
<br>
Thanks,<br>
<br>
David<br>
<span class="HOEnZb"><font color="#888888">--<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>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>+1 919 869 8849<br><br>