MantisBT - CMake
View Issue Details
0006391CMakeCTestpublic2008-02-20 09:532010-12-14 18:45
Jörg Becker 
David Cole 
normalfeatureN/A
closedduplicate 
 
 
0006391: CTest: set environment variables for test session
It would be great, if there would be a possibility to set environment variables (via CMakeLists.txt) for a test session. ICU_DATA, LD_LIBRARY_PATH, PATH are such variables I have in mind.
Having this feature, I could run my tests simply by 'make test'. Currently I have to call 'make depend;export a=foo;export b=bar;ctest'.
I tried both 'set(ENV{ICU_DATA} "foo")' and 'set(CTEST_ENVIRONMENT "ICU_DATA=bar")', but without any success.
No tags attached.
duplicate of 0007885closed David Cole Set environment before running a test 
Issue History
2008-02-20 09:53Jörg BeckerNew Issue
2008-02-21 12:07Alex NeundorfCategoryCCMake => CTest
2008-03-27 22:07Bill HoffmanStatusnew => assigned
2008-03-27 22:07Bill HoffmanAssigned To => Ken Martin
2009-04-03 11:40David ColeAssigned ToKen Martin => David Cole
2009-04-03 11:42David ColeRelationship addedduplicate of 0007885
2009-04-03 11:42David ColeDuplicate ID0 => 7885
2009-04-03 11:42David ColeStatusassigned => resolved
2009-04-03 11:42David ColeResolutionopen => duplicate
2010-12-14 18:45David ColeNote Added: 0024003
2010-12-14 18:45David ColeStatusresolved => closed

Notes
(0024003)
David Cole   
2010-12-14 18:45   
Closing bugs that have been resolved for more than 3 months without any further updates.