[CMake] Is it possible to set some environment vars to run
some tests ?
William A. Hoffman
billlist at nycap.rr.com
Tue Mar 28 10:19:52 EST 2006
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?root=ParaView&view=markup
Another option is a ctest -S script. In those scripts it is possible to set environment variables.
-Bill
More information about the CMake
mailing list