Re: [CMake] CMake make test feature?

2011-03-31 Thread Belcourt, Kenneth
On Mar 31, 2011, at 4:43 PM, Nicolas Desprès wrote: On Fri, Apr 1, 2011 at 12:22 AM, Belcourt, Kenneth wrote: This is probably old news but is there some reason why I can build my code in parallel with make -j8, for example, but trying to run the tests in parallel with make -j8 tests ign

Re: [CMake] CMake make test feature?

2011-03-31 Thread Nicolas Desprès
On Fri, Apr 1, 2011 at 12:22 AM, Belcourt, Kenneth wrote: > Hi, Hello, > > This is probably old news but is there some reason why I can build my code > in parallel with make -j8, for example, but trying to run the tests in > parallel with make -j8 tests ignores the -j option.  I've resorted to >

[CMake] CMake make test feature?

2011-03-31 Thread Belcourt, Kenneth
Hi, This is probably old news but is there some reason why I can build my code in parallel with make -j8, for example, but trying to run the tests in parallel with make -j8 tests ignores the -j option. I've resorted to invoking ctest with -j8 which works fine. Any way to normalize the b

Re: [CMake] "make test" to run tests in parallel in CMake 2.8?

2011-02-28 Thread Bill Hoffman
On 2/28/2011 10:07 AM, Michael Wild wrote: On 02/28/2011 03:57 PM, Chris Green wrote: On 2/28/11 8:13 AM, Michael Wild wrote: On 02/28/2011 03:03 PM, Chris Green wrote: Try this: make test ARGS=-j12 Bingo! Thank you, Chris. Just a warning: AFAIK this is undocumented and I found it out

Re: [CMake] "make test" to run tests in parallel in CMake 2.8?

2011-02-28 Thread Michael Wild
On 02/28/2011 03:57 PM, Chris Green wrote: > On 2/28/11 8:13 AM, Michael Wild wrote: >> On 02/28/2011 03:03 PM, Chris Green wrote: > >>> Try this: >>> >>> make test ARGS=-j12 > Bingo! > > Thank you, > > Chris. > Just a warning: AFAIK this is undocumented and I found it out by looking at the Ma

Re: [CMake] "make test" to run tests in parallel in CMake 2.8?

2011-02-28 Thread Chris Green
On 2/28/11 8:13 AM, Michael Wild wrote: > On 02/28/2011 03:03 PM, Chris Green wrote: >> Try this: >> >> make test ARGS=-j12 Bingo! Thank you, Chris. -- Chris Green , FNAL CD/ADSS/CET; 'phone (630) 840-2167. IRC: gre...@jabber.fnal.gov, chrisgr...@jabber.dsd.lbl.gov; chissgreen (AIM, Yahoo); ch

Re: [CMake] "make test" to run tests in parallel in CMake 2.8?

2011-02-28 Thread Michael Wild
On 02/28/2011 03:03 PM, Chris Green wrote: > Hi, > > I would have expected this naively to be a FAQ already, but the almighty > Ge wasn't particularly helpful. If I *have* missed the answer > somehow, please accept my apologies and I'd appreciate a brief pointer > to the right place to find it

[CMake] "make test" to run tests in parallel in CMake 2.8?

2011-02-28 Thread Chris Green
Hi, I would have expected this naively to be a FAQ already, but the almighty Ge wasn't particularly helpful. If I *have* missed the answer somehow, please accept my apologies and I'd appreciate a brief pointer to the right place to find it: I'm investigating upgrading our build system from CM

Re: [CMake] make test missing

2010-11-09 Thread Jochen Issing
- renaming didn't solve it Instead I moved ENABLE_TESTING() from test/CMakeListst.txt to my root CMakeLists.txt I think this is not stated in the documentation. Thanks everybody! jochen > > It is possible your example above is not complicated > enough to trigger the clash.

Re: [CMake] make test missing

2010-11-09 Thread Marcel Loose
to trigger the clash. For example, your test > subdirectories are just created, but you do not have an > add_subdirectory(test) command to actually run cmake within that > test subdirectory. > > So I would suggest to the OP that they do rename their test directory > to something

Re: [CMake] make test missing

2010-11-08 Thread Alan W. Irwin
uld suggest to the OP that they do rename their test directory to something else because I am pretty sure that will solve the issue. Until PLplot did that (for a much earlier version of CMake) "make test" failed to work for us. Alan Maybe, you could post your CMakeLists.txt for fur

Re: [CMake] make test missing

2010-11-08 Thread Michael Hertling
On 11/08/2010 10:03 PM, Jochen Issing wrote: > Hi list, > > I tried to add ctest to my project and did this by adding ENABLE_TESTING() > and several ADD_TEST(...) to my CMakeLists.txt file. > The tests are run on executables, which are built inside a dedicated test > directory in my project root

[CMake] make test missing

2010-11-08 Thread Jochen Issing
Hi list, I tried to add ctest to my project and did this by adding ENABLE_TESTING() and several ADD_TEST(...) to my CMakeLists.txt file. The tests are run on executables, which are built inside a dedicated test directory in my project root and the execs show up in my Makefile. After reading thro

Re: [CMake] Make test an official dependency...

2009-10-22 Thread Philip Lowman
Are you looking for something like this...? if(TARGET foo) add_test(footest foo) endif() On Wed, Oct 21, 2009 at 2:33 PM, Theodore Papadopoulo < theodore.papadopo...@sophia.inria.fr> wrote: > From the documentation of add_dependencies: > > Make a top-level target depend on other top-level tar

[CMake] Make test an official dependency...

2009-10-21 Thread Theodore Papadopoulo
From the documentation of add_dependencies: Make a top-level target depend on other top-level targets. A top-level target is one created by ADD_EXECUTABLE, ADD_LIBRARY, or ADD_CUSTOM_TARGET. A test is thus not a valid target to add dependencies to. Often, one wants to build an executable only

Re: [CMake] make test

2008-03-28 Thread Alan W. Irwin
On 2008-03-28 22:31+0100 Alexander Neundorf wrote: I think simply having test depend on all may be a bit slow. I agree that is a concern for bigger projects like paraview with half-minute "make all" latency (as recently demonstrated by Bill) so it appears our goal should be to have a DEPENDS o

Re: [CMake] make test

2008-03-28 Thread Alexander Neundorf
On Friday 28 March 2008, Alan W. Irwin wrote: > On 2008-03-28 20:59+0100 Alexander Neundorf wrote: ... > > Then it's also more obvious that it doesn't depend on all > > I am probably missing something because I don't understand this comment. I meant: if somebody runs a tool different from make, he

Re: [CMake] make test

2008-03-28 Thread Alan W. Irwin
On 2008-03-28 20:59+0100 Alexander Neundorf wrote: On Friday 28 March 2008, Alan W. Irwin wrote: On 2008-03-14 13:04-0700 Alan W. Irwin wrote: Another concern with the current "make test" is it does not depend on the default "all" target. That is a bad oversight IMO, since the current situati

Re: [CMake] make test

2008-03-28 Thread Alexander Neundorf
On Friday 28 March 2008, Alan W. Irwin wrote: > On 2008-03-14 13:04-0700 Alan W. Irwin wrote: > > Another concern with the current "make test" is it does not depend on the > > default "all" target. That is a bad oversight IMO, since the current > > situation is you will be running out-of-date test

Re: [CMake] make test

2008-03-27 Thread Alan W. Irwin
On 2008-03-14 13:04-0700 Alan W. Irwin wrote: Another concern with the current "make test" is it does not depend on the default "all" target. That is a bad oversight IMO, since the current situation is you will be running out-of-date tests after some code fixup unless you remember to run "make"

Re: [CMake] make test

2008-03-14 Thread Alexander Neundorf
On Friday 14 March 2008, Alan W. Irwin wrote: > On 2008-03-13 21:18-0400 David Cole wrote: > > For it to work, there has to be an "ENABLE_TESTING()" in the top level > > CMakeLists.txt file. And at least one ADD_TEST somewhere in the tree... > > "make test" should be equivalent to running "ctest" i

[CMake] make test

2008-03-14 Thread Alan W. Irwin
On 2008-03-13 21:18-0400 David Cole wrote: For it to work, there has to be an "ENABLE_TESTING()" in the top level CMakeLists.txt file. And at least one ADD_TEST somewhere in the tree... "make test" should be equivalent to running "ctest" in the top level binary directory. (Or any sub-directory f

Re: [CMake] 'make test' doesn't build cppunit test executable

2007-03-26 Thread Bill Hoffman
[EMAIL PROTECTED] wrote: Hi all! I'm trying to integrate cppunit tests using cmake in our ims library and cannot solve the problem how to build tests executables only by demand, i.e. by calling 'make test'. I'm quite new to cmake and don't know if this is possible at all, but I suppose it should

[CMake] 'make test' doesn't build cppunit test executable

2007-03-26 Thread apervukh
Hi all! I'm trying to integrate cppunit tests using cmake in our ims library and cannot solve the problem how to build tests executables only by demand, i.e. by calling 'make test'. I'm quite new to cmake and don't know if this is possible at all, but I suppose it should be possible :-) I have fou

[CMake] 'make test' fails on x86/Solaris

2007-03-05 Thread Matthew Woehlke
I got the following failures on x86/Solaris trying to build cmake 2.4.6. Here is the output: 6/14 Testing: kwsys.testProcess-4 6/14 Test: kwsys.testProcess-4 Command: "/home/install/gnu/src/cmake-2.4.6/Tests/kwsys/testProcess" "4" Directory: /home/install/gnu/src/cmake-2.4.6/Tests/kwsys "kwsys.t

Re: [CMake] make test oddity

2006-08-23 Thread Scott Amort
On Wed, 2006-08-23 at 11:12 -0400, Brad King wrote: > Your "make" program is finding the "test" directory on disk and assumes > the target is up to date. Don't call the directory "test". Thanks Brad! That did it. Best, Scott ___ CMake mailing list CMa

Re: [CMake] make test oddity

2006-08-23 Thread Brad King
Scott Amort wrote: > I have come across some strange behaviour with testing and my CMake > files. My project is structured like this: > > main project > -- src > -- test > -- subproject1 > src > test [snip] > The idea is that the main project builds all the subprojects first, then > its

[CMake] make test oddity

2006-08-23 Thread Scott Amort
Hi All, I have come across some strange behaviour with testing and my CMake files. My project is structured like this: main project -- src -- test -- subproject1 src test -- subproject2 src test -- subproject3 src test ...etc. The idea is that the main project bui