[CMake] Pass exclude test regex in visual studio

2010-12-07 Thread j s
Hello,

Is there a way to pass the ctest -E flag to a visual studio 10 configuration
to prevent certain tests from running in the regressions?

Thanks,

Juan
___
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

Re: [CMake] Pass exclude test regex in visual studio

2010-12-07 Thread Tyler Roscoe
On Tue, Dec 07, 2010 at 02:39:18AM -0600, j s wrote:
 Is there a way to pass the ctest -E flag to a visual studio 10 configuration
 to prevent certain tests from running in the regressions?

I don't know of a good way (and I'm not 100% sure what you mean by
prevent certain tests from running in the regressions) but what I
usually do is just edit the command associated with the RUN_TESTS target
and add command-line args (-E, -VV) there.

If you have a permanent set you like to exclude, you can just create
your own target MY_RUN_TESTS or whatever that runs
${CMAKE_CTEST_COMMAND} with your preferred arguments.

hth,
tyler
___
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


Re: [CMake] Pass exclude test regex in visual studio

2010-12-07 Thread j s
Thanks.  I have examples (for documentation) which run much longer than the
standard regressions.

Juan

On Tue, Dec 7, 2010 at 10:15 AM, Tyler Roscoe ty...@cryptio.net wrote:

 On Tue, Dec 07, 2010 at 02:39:18AM -0600, j s wrote:
  Is there a way to pass the ctest -E flag to a visual studio 10
 configuration
  to prevent certain tests from running in the regressions?

 I don't know of a good way (and I'm not 100% sure what you mean by
 prevent certain tests from running in the regressions) but what I
 usually do is just edit the command associated with the RUN_TESTS target
 and add command-line args (-E, -VV) there.

 If you have a permanent set you like to exclude, you can just create
 your own target MY_RUN_TESTS or whatever that runs
 ${CMAKE_CTEST_COMMAND} with your preferred arguments.

 hth,
 tyler

___
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