Re: [CMake] Multiple tests in a single file

2012-01-08 Thread David Cole
On Sunday, January 8, 2012, Fraser Hutchison < fraser.hutchi...@googlemail.com> wrote: > On 07/01/2012 14:41, David Cole wrote: > > On Fri, Jan 6, 2012 at 6:47 PM, David Doria wrote: > > On Fri, Jan 6, 2012 at 5:54 PM, Jean-Christophe Fillion-Robin > wrote: > > Hi David, > > Not too long ago I wa

Re: [CMake] Multiple tests in a single file

2012-01-07 Thread David Cole
On Fri, Jan 6, 2012 at 6:47 PM, David Doria wrote: > On Fri, Jan 6, 2012 at 5:54 PM, Jean-Christophe Fillion-Robin > wrote: >> Hi David, >> >> Not too long ago I was browsing the project of a friend who worked on BTK >> (The toolkit used by Mokka, a motion kinematic & kinetic analyser) [1]. >> >>

Re: [CMake] Multiple tests in a single file

2012-01-06 Thread David Doria
On Fri, Jan 6, 2012 at 5:54 PM, Jean-Christophe Fillion-Robin wrote: > Hi David, > > Not too long ago I was browsing the project of a friend who worked on BTK > (The toolkit used by Mokka, a motion kinematic & kinetic analyser) [1]. > > I noticed that he is using cxxtest [2] along with ctest. It s

Re: [CMake] Multiple tests in a single file

2012-01-06 Thread Jean-Christophe Fillion-Robin
Hi David, Not too long ago I was browsing the project of a friend who worked on BTK (The toolkit used by Mokka, a motion kinematic & kinetic analyser) [1]. I noticed that he is using *cxxtest* [2] along with *ctest*. It seems it could to address the use case you are describing. See Example integ

[CMake] Multiple tests in a single file

2012-01-06 Thread David Doria
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 Your