[CMake] Is it possible to set some environment vars to run some
tests ?
Brad King
brad.king at kitware.com
Tue Mar 28 10:08:46 EST 2006
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
-Brad
More information about the CMake
mailing list