[CMake] Is it possible to set some environment vars to run some tests ?

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Tue Mar 28 13:58:09 EST 2006


On Tuesday 28 March 2006 17:19, William A. Hoffman wrote:
> At 10:08 AM 3/28/2006, Brad King wrote:
> >Gaetan Lehmann wrote:
> >>To run some tests on the python modules compiled with cmake, I need to
> >> set  the PYTHONPATH environement variable for the tests added with
> >> ADD_TEST()  macro. Is it possible ?
> >
> >Not directly with Dart or ctest.  We typically have created "test
> >driver" programs that wrap around tests and setup whatever environment
> >is needed.  These drivers are also useful for interpreting custom failure
> > cases.  See this one as an example:
> >
> >http://www.paraview.org/cgi-bin/viewcvs.cgi/GUI/Client/pvTestDriver.cxx?ro
> >ot=ParaView&view=markup
>
> Another option is a ctest -S script.  In those scripts it is possible to
> set environment variables.
>

The command

  make test 

with the Makefile generated by cmake can run this "ctest -S script" command 
(that's also for the insight journal) ?

Gaetan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060328/d123e7d2/attachment.pgp


More information about the CMake mailing list