On 2009-01-19 11:01+0100 Werner Smekal wrote: > Hi, > >> >> Well, that does sound as a reasonable and little-work solution. >> As CMake warns about not being able to find bash and therefore ctest >> won't work, I thought that using MinGW might get me around this >> problem. >> But undoubtedly that introduces new ones and it changes the platform >> in subtle ways. I will have a look at win-bash. >> >> Regards, >> >> Arjen > > We had this discussion already: > > http://sourceforge.net/mailarchive/forum.php?thread_name=4567655A.7000101%40iap.tuwien.ac.at&forum_name=plplot-devel > > We were (at least) partly successful using one of the bash executables > available for Windows (or sh executables, can't remember). You > shouldn't use sh.exe since then CMake assumes you are using the MSYS > enviroment. In addition to bash/sh you also need some unix tools > ported to Windows, which I think you'll find at gnuwin32.sf.net - in > comparison to other toolsets available is this project still being > worked on, and works very well - I use it all the time. You need to > install them, but there will be only a handful of persons who want to > test on Windows anyway .... > > And I agree to Alan, it's better to use the existing solution and > modify it a little bit so that it works on Windows with bash.exe and > gnuwin32 tools as well, as trying to write a Windows batch file - the > latter one is really limited I tried to code something in the last > months and it's really a PIA. Better alternative is kixtart, which is > also easy to install, but still we would need to do the work twice. >
Thanks, Werner, for drawing our attention to that important thread from more than two years ago. I barely remembered it so I read through it again, but it appears you had ctest success back then using the combination of win-bash and gnuwin32.sf.net. I looked at http://gnuwin32.sourceforge.net/packages.html, and it appears they supply both DiffUtils and TextUtils packages. I don't know for sure what is in those packages, but hopefully diff is supplied by the first one and tail by the second one so that we a bit of CMake magic to configure test_diff.sh (which uses both diff and tail) it should be possible to get ctest working again on windows. Would you please follow up on that, and (assuming you have success) write down a clear cookbook in our wiki for Arjen to follow for each of the windows platforms accessible to you? ctest is a really important tool for our developers so I hope you both end up using it on a routine basis. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel