[CMake] simple ctest

th.tom at gmx.de th.tom at gmx.de
Thu Nov 5 01:59:52 EST 2009


> On Nov 4, 2009, at 11:43 AM, Mathieu Malaterre wrote:
> 
> > On Wed, Nov 4, 2009 at 4:52 PM,  <th.tom at gmx.de> wrote:
> >> I changed over to learn the windows batch a bit and I created a  
> >> short script to do the work, for some things I planed to integrate  
> >> into ctest.
> >>
> >> The rest works like a charm (configuring, building, reporting,  
> >> packaging etc)
> >>
> >> I am not sure about the status of ctest scripting - is it widely use?
> >
> > I gave up one time and used shell script.
> > Now I am stuck with this shell script and being forced to install
> > cygwin just to be able to execute this shell script, while if I had
> > taken the time it could be writen using ctest and be portable. You'll
> > have the same problem when you'll start doing stuff on *nix platform
> > and your batch file will be duplicated in some kind of shell script.
> >
> > 2cts
> > -- 
> > Mathieu
> 
> Ditto here. Take the time to use CTest scripts ...

I know, and I don't want to complain. However, it took me half an hour, to write a bash script and another hour to learn and use batch (no need for cygwin ;-) and I got it to work. It took me one day to get nothing to work with ctest scripting.

I have a deadline on friday to convince people to use cmake, I converted nearly 400 Makefiles into CMake, created a nightly build, packaging system, cvs integration, a lot of custom commands and code generators etc for different platforms (Win32, Sun, Linux). I am running out of time. 

When this project may switch to cmake, I may get the time to dig deeper into ctest scripting, but for now, I am happy with this solution.

-tom


More information about the CMake mailing list