Thanks for your fast answers.<br><br>Reported as <a href="http://public.kitware.com/Bug/view.php?id=7885">http://public.kitware.com/Bug/view.php?id=7885</a><br><br>J. Bedouet<br><br><br><div class="gmail_quote">On Wed, Oct 29, 2008 at 2:53 PM, Bill Hoffman <span dir="ltr">&lt;<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">Judicaël Bedouet wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
I have a test which must be executed in different environments. Test results depend on values of environment variables.<br>
Is there a way to easily set environment variables before running a test ? Somewhat like<br>
<br>
ADD_TEST (TestEnv1 testEnv)<br>
SET_TEST_PROPERTIES (TestEnv1 PROPERTIES ENV TEST_ENV=&quot;testEnvValue1&quot;)<br>
SET_TEST_PROPERTIES (TestEnv1 PROPERTIES WILL_FAIL true)<br>
<br>
ADD_TEST (TestEnv2 testEnv)<br>
SET_TEST_PROPERTIES (TestEnv2 PROPERTIES ENV TEST_ENV=&quot;testEnvValue2&quot;)<br>
<br>
</blockquote>
<br></div></div>
Currently, there is not. &nbsp; Please create a feature request in the bug tracker. &nbsp; Right now the only work around would be to have the test be run from a cmake -P script.<br><font color="#888888">
<br>
-Bill<br>
</font></blockquote></div><br>