Re: [CMake] CTest question

2017-05-18 Thread T.Sariyski
ECUTE_PROCESS(COMMAND ${PROGRAM2} RESULT_VARIABLE status) IF(status) MESSAGE(SEND_ERROR "Executing \"${PROGRAM2}\" FAILED! status=${status}") ENDIF() From: Eric Noulard [mailto:eric.noul...@gmail.com] Sent: Wednesday, May 17, 2017 10:54 PM To: T.S

Re: [CMake] CTest question

2017-05-17 Thread Eric Noulard
We lack information on how your test are failing. If they all timeout then may be you should setup a proper timeout for the test. The actual execution speed of a test may depend on the load of your machine or the network (depending on what the test are actually doing). This may be even more sensibl

[CMake] CTest question

2017-05-17 Thread T.Sariyski
Hi, I wonder what is the reason that sometimes ctest ends with numerous ‘Failed’ and ‘Timeout’, which ‘ctest –rerun-failed’ reports ‘Passed’. At times the number of these false failures is about one third. I guess that the problem is in the way I set my tests, but I have no clue where to loo

Re: [CMake] CTest question...

2008-11-19 Thread Eric Noulard
2008/11/20 BRM <[EMAIL PROTECTED]>: > It was reporting that it could not find the executable. > However, this was certainly a PEBKAC issue (do'h) - I forgot to have an > ADD_EXECUTABLE() for the test program - or even an > CREATE_TEST_SOURCE_LIST()...though so it shouldn't have been finding it.

Re: [CMake] CTest question...

2008-11-19 Thread BRM
iginal Message From: Eric NOULARD <[EMAIL PROTECTED]> To: cmake@cmake.org Sent: Wednesday, November 19, 2008 7:52:49 AM Subject: Re: [CMake] CTest question... Le Tue, 18 Nov 2008 15:53:25 -0800 (PST), BRM <[EMAIL PROTECTED]> a écrit : > Any info on this? Any better resour

Re: [CMake] CTest question...

2008-11-18 Thread Eric NOULARD
D]> > To: CMake > Sent: Monday, November 17, 2008 3:14:53 AM > Subject: [CMake] CTest question... > > I'd like to build a series of test using the CTest functionality in > CMake. I have added ENABLE_TESTING() to the main CMakeLists, and was > hoping to put the tes

Re: [CMake] CTest question...

2008-11-18 Thread BRM
Any info on this? Any better resources? TIA, Ben - Original Message From: BRM <[EMAIL PROTECTED]> To: CMake Sent: Monday, November 17, 2008 3:14:53 AM Subject: [CMake] CTest question... I'd like to build a series of test using the CTest functionality in CMake. I

[CMake] CTest question...

2008-11-16 Thread BRM
I'd like to build a series of test using the CTest functionality in CMake. I have added ENABLE_TESTING() to the main CMakeLists, and was hoping to put the tests in their own sub-directories - as follows: / /Tests /Tests/object /Tests/object/child-objects I added the Tests directory in the root's

RE: [CMake] ctest question

2007-09-27 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
else did something similar? It would be if CMake contained macro like this: ADD_MD5_TEST(testname generatedfile md5checksum) -- Artur Kedzierski > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Juan Sanchez > Sent: Sunday, Septe

Re: [CMake] ctest question

2007-09-26 Thread Juan Sanchez
Awesome. I love that guys work on bibtex and bibtools. Juan Mathieu MARACHE wrote: > 2007/9/25, Juan Sanchez <[EMAIL PROTECTED]>: >> Hi Alan, >> >> I also have floating point results I want to account for. I'm thinking >> about writing a diff script for numerical results which uses an absolute

Re: [CMake] ctest question

2007-09-26 Thread Mathieu MARACHE
2007/9/25, Juan Sanchez <[EMAIL PROTECTED]>: > Hi Alan, > > I also have floating point results I want to account for. I'm thinking > about writing a diff script for numerical results which uses an absolute > and relative error tolerance. This would account for the difference in > transcendentals

Re: [CMake] ctest question

2007-09-26 Thread Mathieu MARACHE
2007/9/25, Juan Sanchez <[EMAIL PROTECTED]>: > Hi Alan, > > I also have floating point results I want to account for. I'm thinking > about writing a diff script for numerical results which uses an absolute > and relative error tolerance. This would account for the difference in > transcendentals

Re: [CMake] ctest question

2007-09-25 Thread Juan Sanchez
Hi Alan, I also have floating point results I want to account for. I'm thinking about writing a diff script for numerical results which uses an absolute and relative error tolerance. This would account for the difference in transcendentals and other math functions between processors and math lib

Re: [CMake] ctest question

2007-09-24 Thread Juan Sanchez
Thanks Alan for your detailed response. I think your advice is very helpful. I think I'm getting on to the right track with ctest. Regards, Juan Alan W. Irwin wrote: > On 2007-09-24 10:05-0500 Juan Sanchez wrote: > >> Hello Alan, >> >>> From your example, what in this statement that causes th

Re: [CMake] ctest question

2007-09-24 Thread Alan W. Irwin
On 2007-09-24 10:05-0500 Juan Sanchez wrote: Hello Alan, From your example, what in this statement that causes the test to run when I type "make test"? ADD_TEST(my_first_test diff -q goldenfile testfile) All it says is to run diff. How do I tell it to generate the testfile from another exe

Re: [CMake] ctest question

2007-09-24 Thread Juan Sanchez
Hello Alan, >From your example, what in this statement that causes the test to run when I type "make test"? ADD_TEST(my_first_test diff -q goldenfile testfile) All it says is to run diff. How do I tell it to generate the testfile from another executable? How do I tell this executable to run on

RE: [CMake] ctest question

2007-09-23 Thread Alan W. Irwin
On 2007-09-23 20:58-0700 Sanchez, Juan wrote: Well the fundamental problem is the point when the test gets run. When you run ctest (after cmake and make). I would think your solution requires that the test has already been executed. For my purposes, that is way too premature and costly. I

RE: [CMake] ctest question

2007-09-23 Thread Sanchez, Juan
--Original Message- From: Alan W. Irwin [mailto:[EMAIL PROTECTED] Sent: Sun 9/23/2007 10:08 PM To: Sanchez, Juan Cc: Aleix; CMake ML Subject: RE: [CMake] ctest question On 2007-09-23 18:48-0700 Sanchez, Juan wrote: > Would this sound reasonable? > Write a perl script with the name of

RE: [CMake] ctest question

2007-09-23 Thread Alan W. Irwin
On 2007-09-23 18:48-0700 Sanchez, Juan wrote: Would this sound reasonable? Write a perl script with the name of the test program and golden result file as arguments. The perl script will run the test and compare the output results with the golden file and then return success or failure. ADD

RE: [CMake] ctest question

2007-09-23 Thread Sanchez, Juan
ailto:[EMAIL PROTECTED] Sent: Sun 9/23/2007 5:33 PM To: Sanchez, Juan Cc: CMake ML Subject: Re: [CMake] ctest question Hi, I think that execute_process() is your command :). Bye! On 9/23/07, Juan Sanchez <[EMAIL PROTECTED]> wrote: > I want run a test program and pipe its results to a file

Re: [CMake] ctest question

2007-09-23 Thread Aleix
Hi, I think that execute_process() is your command :). Bye! On 9/23/07, Juan Sanchez <[EMAIL PROTECTED]> wrote: > I want run a test program and pipe its results to a file. I then want > to compare this file to the golden results using diff. > > Does anyone have a macro or cookbook example for do

[CMake] ctest question

2007-09-23 Thread Juan Sanchez
I want run a test program and pipe its results to a file. I then want to compare this file to the golden results using diff. Does anyone have a macro or cookbook example for doing this? Thank you, Juan ___ CMake mailing list CMake@cmake.org http://w

Re: [CMake] CTest Question

2006-06-30 Thread Scott Amort
William A. Hoffman wrote: > You may want to look at the ctest --build-and-test option. > We use it in cmake itself. It will run cmake and do a build on > a test that is not include in the parent build tree. Hi Bill, I will look into this. Thanks again for your assistance! Best, Scott

Re: [CMake] CTest Question

2006-06-30 Thread William A. Hoffman
At 04:51 PM 6/29/2006, Scott Amort wrote: >William A. Hoffman wrote: >> make test should do the trick. >> You can also run ctest directly in the build tree. >> What you have should work. You might have to move the >> ENABLE_TESTING to the top of the project. Also you can >> look for the DartTesti

Re: [CMake] CTest Question

2006-06-29 Thread Scott Amort
William A. Hoffman wrote: > make test should do the trick. > You can also run ctest directly in the build tree. > What you have should work. You might have to move the > ENABLE_TESTING to the top of the project. Also you can > look for the DartTesting. You can look for this file > in your build

Re: [CMake] CTest Question

2006-06-29 Thread William A. Hoffman
At 01:03 PM 6/29/2006, Scott Amort wrote: >Hi All, > >I have one last hurdle in converting my project over to CMake - unit >testing. I don't quite understand the CTest framework, and it doesn't >seem to be doing what I expect. In my tests subdirectory, I have this >CMakeLists.txt: > >#for testing

[CMake] CTest Question

2006-06-29 Thread Scott Amort
Hi All, I have one last hurdle in converting my project over to CMake - unit testing. I don't quite understand the CTest framework, and it doesn't seem to be doing what I expect. In my tests subdirectory, I have this CMakeLists.txt: #for testing ENABLE_TESTING() #build testing executables ADD_