Re: [CMake] Building and executing tests when building updated libraries

2012-02-21 Thread Eric Noulard
2012/2/21 Robert Dailey : > > I apologize if I sounded like your suggestion wasn't meaningful or useful. I > would much rather prefer to do it how you suggest (running all tests), but > this leaves me with some concerns: > > If the developer is running all unit tests on their local machine, what is

Re: [CMake] Building and executing tests when building updated libraries

2012-02-21 Thread Jean-Christophe Fillion-Robin
An possible alternative could be to associate one or more labels to your tests, then you should be able to run a specific subset of the test suite. See http://www.cmake.org/cmake/help/ctest-2-8-docs.html#opt:-Lregex--label-regexregex and http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt

Re: [CMake] Building and executing tests when building updated libraries

2012-02-21 Thread Robert Dailey
On Tue, Feb 21, 2012 at 1:15 PM, David Cole wrote: > On Tue, Feb 21, 2012 at 1:51 PM, Robert Dailey wrote: > > On Tue, Feb 21, 2012 at 12:37 PM, David Cole > wrote: > >> > >> On Tue, Feb 21, 2012 at 1:27 PM, Robert Dailey > wrote: > >>> > >>> Hi, > >>> > >>> I'm using Visual Studio as my gener

Re: [CMake] Building and executing tests when building updated libraries

2012-02-21 Thread David Cole
On Tue, Feb 21, 2012 at 1:51 PM, Robert Dailey wrote: > On Tue, Feb 21, 2012 at 12:37 PM, David Cole wrote: >> >> On Tue, Feb 21, 2012 at 1:27 PM, Robert Dailey wrote: >>> >>> Hi, >>> >>> I'm using Visual Studio as my generator for my CMake projects. As of >>> right now, I make my tests depend o

Re: [CMake] Building and executing tests when building updated libraries

2012-02-21 Thread Robert Dailey
On Tue, Feb 21, 2012 at 12:37 PM, David Cole wrote: > On Tue, Feb 21, 2012 at 1:27 PM, Robert Dailey wrote: > >> Hi, >> >> I'm using Visual Studio as my generator for my CMake projects. As of >> right now, I make my tests depend on the libraries they test. So for >> example, tests named: >> >> t

Re: [CMake] Building and executing tests when building updated libraries

2012-02-21 Thread David Cole
On Tue, Feb 21, 2012 at 1:27 PM, Robert Dailey wrote: > Hi, > > I'm using Visual Studio as my generator for my CMake projects. As of right > now, I make my tests depend on the libraries they test. So for example, > tests named: > > test_thingA > test_thingB > > will all depend on library: > > lib

[CMake] Building and executing tests when building updated libraries

2012-02-21 Thread Robert Dailey
Hi, I'm using Visual Studio as my generator for my CMake projects. As of right now, I make my tests depend on the libraries they test. So for example, tests named: test_thingA test_thingB will all depend on library: libfoo.lib When I build target "libfoo" in visual studio, it would be nice to