Both issues are now marked resolved.<div><br></div><div><span class="Apple-style-span" style="font-family: Verdana; "><a name="bugnotes" id="bugnotes"><div id="bugnotes_open" style="padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; ">
<table class="width100" cellspacing="1" style="width: 100%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); ">
<tbody><tr class="bugnote" id="c15900" style="vertical-align: top; "><td class="bugnote-note-public" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; padding-top: 4px; padding-right: 4px; padding-bottom: 4px; padding-left: 4px; text-align: left; background-color: rgb(232, 232, 232); color: rgb(0, 0, 0); width: 75%; ">
Fixed in CVS HEAD of CMake<br><br>$ cvs commit -m "BUG: Fix documentation deficiency noted in issue <a href="http://public.kitware.com/Bug/view.php?id=7885" title="[resolved] Set environment before running a test">0007885</a>. Thanks to Philip Lowman for the gist of the patch." Source/cmTest.cxx<br>
<br>/cvsroot/CMake/CMake/Source/cmTest.cxx,v <-- Source/cmTest.cxx<br>new revision: 1.14; previous revision: 1.13<br></td></tr></tbody></table></div></a></span><br><div class="gmail_quote"><br></div><div class="gmail_quote">
Thanks, Philip......</div><div class="gmail_quote"><br></div><div class="gmail_quote">David</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">
<br></div><div class="gmail_quote">On Thu, Apr 2, 2009 at 11:28 PM, Philip Lowman <span dir="ltr"><<a href="mailto:philip@yhbt.com">philip@yhbt.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div class="im">On Thu, Apr 2, 2009 at 3:19 PM, Ian Monroe <span dir="ltr"><<a href="mailto:ian@monroe.nu" target="_blank">ian@monroe.nu</a>></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">
I've seen this question in the archives, but I was wondering if<br>
there's been any progress since I last saw it asked (>1 year ago).<br>
<br>
I have some unit tests. I need to run a command or two and set some<br>
environmental variables before all the tests start. Does CMake have a<br>
solution for this yet? Are there any common practices to handle what<br>
I'm guessing is a pretty common thing?<br>
<br>
I notice that CTest would allow me to setup a test environment, but<br>
since it requires hardcoding the source and build directory it seems<br>
pretty inappropriate as a common-repo script used by multiple<br>
developers. Possibly the solution is to figure out how CTest can be<br>
used anyways.</blockquote></div><div><br>This feature has been implemented in CMake CVS for some time thanks to David Cole. If someone would commit the patch I sent in so it shows up in the documentation (attached to this bug) they could then close this bug.<br>
<br><a href="http://public.kitware.com/Bug/view.php?id=7885" target="_blank">http://public.kitware.com/Bug/view.php?id=7885</a><br><br>also this duplicate bug as well.<br><a href="http://public.kitware.com/Bug/view.php?id=6391" target="_blank">http://public.kitware.com/Bug/view.php?id=6391</a><br>
</div></div><br>-- <br><font color="#888888">Philip Lowman<br>
</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div>