[CMake] perennial question, how to setup environment for simple tests

David Cole david.cole at kitware.com
Fri Apr 3 11:45:07 EDT 2009


Both issues are now marked resolved.
Fixed in CVS HEAD of CMake

$ cvs commit -m "BUG: Fix documentation deficiency noted in issue
0007885<http://public.kitware.com/Bug/view.php?id=7885>.
Thanks to Philip Lowman for the gist of the patch." Source/cmTest.cxx

/cvsroot/CMake/CMake/Source/cmTest.cxx,v <-- Source/cmTest.cxx
new revision: 1.14; previous revision: 1.13


Thanks, Philip......

David




On Thu, Apr 2, 2009 at 11:28 PM, Philip Lowman <philip at yhbt.com> wrote:

> On Thu, Apr 2, 2009 at 3:19 PM, Ian Monroe <ian at monroe.nu> wrote:
>
>> I've seen this question in the archives, but I was wondering if
>> there's been any progress since I last saw it asked (>1 year ago).
>>
>> I have some unit tests. I need to run a command or two and set some
>> environmental variables before all the tests start. Does CMake have a
>> solution for this yet? Are there any common practices to handle what
>> I'm guessing is a pretty common thing?
>>
>> I notice that CTest would allow me to setup a test environment, but
>> since it requires hardcoding the source and build directory it seems
>> pretty inappropriate as a common-repo script used by multiple
>> developers. Possibly the solution is to figure out how CTest can be
>> used anyways.
>
>
> 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.
>
> http://public.kitware.com/Bug/view.php?id=7885
>
> also this duplicate bug as well.
> http://public.kitware.com/Bug/view.php?id=6391
>
> --
> Philip Lowman
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090403/e8aaed30/attachment.htm>


More information about the CMake mailing list