Does CTest have a mechanism to run man mini-tests in a single file?
I'm looking for something equivalent to the UnitTest++ syntax:

TEST(YourTestName)
{}
TEST(YourOtherTestName){}
int main(){  return UnitTest::RunAllTests();}
Of course you could do something like:

int YourTestName()
{

}

int YourOtherTestName()
{
}

int main()
{
  YourTestName();
  YourOtherTestName();
}

but then you have to manually output the name of the test if it fails,
you could forget to call one of the tests, etc.

Is there anything like this for CMake/CTest?

Thanks,

David
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to