[CMake] Test example with list(FIND inside a macro.

2019-07-20 Thread Steven Truppe
Hi everyone, i have the following code: nclude(CMakePrintHelpers) ## MACROS ### macro(bsIsInListBefore)     message(STATUS "bsIsInListBefore(): #${ARGV0}#${ARGV1}")     set(index1 0)     set(index2 0)     cmake_print_variables(ARG1)     l

Re: [CMake] test depending on code compilation

2018-01-12 Thread Franck Houssen
- Mail original - > De: "Mario Werner" > À: cmake@cmake.org > Envoyé: Vendredi 12 Janvier 2018 09:38:50 > Objet: Re: [CMake] test depending on code compilation > > On 2018-01-11 18:03, Franck Houssen wrote: > > > > > > - Mail origina

Re: [CMake] test depending on code compilation

2018-01-12 Thread Mario Werner
On 2018-01-11 18:03, Franck Houssen wrote: > > > - Mail original - >> De: "Mario Werner" >> À: cmake@cmake.org >> Envoyé: Jeudi 11 Janvier 2018 16:27:18 >> Objet: Re: [CMake] test depending on code compilation >> > [snip] > >>

Re: [CMake] test depending on code compilation

2018-01-11 Thread Franck Houssen
- Mail original - > De: "Mario Werner" > À: cmake@cmake.org > Envoyé: Jeudi 11 Janvier 2018 16:27:18 > Objet: Re: [CMake] test depending on code compilation > > On 2018-01-10 10:47, Franck Houssen wrote: > > [snip] > > > > The 2 unexpected

Re: [CMake] test depending on code compilation

2018-01-11 Thread Mario Werner
On 2018-01-10 10:47, Franck Houssen wrote: > [snip] > > The 2 unexpected problems I have left are: > 1) mytestexe is compiled everytime I type "make" which is a solution but > is not really what I am looking for (also compiled when I type "make > check" which is expected). >     => is there a way

Re: [CMake] test depending on code compilation

2018-01-10 Thread Franck Houssen
OK, so I guess there is no way to do that like with autotools... - Mail original - > De: "Franck Houssen" > À: "CMake Mail List" > Envoyé: Mercredi 10 Janvier 2018 12:22:39 > Objet: Re: [CMake] test depending on code compilation > I tr

Re: [CMake] test depending on code compilation

2018-01-10 Thread Franck Houssen
d 0.00 sec I want make test to run test only => OK and verbose is OK. - Mail original - > De: "Franck Houssen" > À: "CMake Mail List" > Envoyé: Mercredi 10 Janvier 2018 10:47:34 > Objet: [CMake] test depending on code compilation > I need to d

[CMake] test depending on code compilation

2018-01-10 Thread Franck Houssen
I need to design a test (= a bash script) such that : 1) run a dedicated executable for the test (to be compiled) 2) diff the run output with a reference log file The test is created with : add_test(mytest ./mytest.sh). The bash script would look like: >> more mytest.sh /path/to/mytestexe >

[CMake] test dependencies and CTest -I

2016-08-19 Thread Lowekamp, Bradley (NIH/NLM/LHC) [C]
Hello, I am trying to get ctest working on CircleCI with multiple concurrent containers. The following command works for many cases: ctest -j 2 -I ${CIRCLE_NODE_INDEX},,${CIRCLE_NODE_TOTAL} unless there are dependencies specified between tests via something like: set_property(TEST B APPEND

Re: [CMake] test endian ness

2016-01-13 Thread CHEVRIER, Marc
Hi, May be to include the module before using it: include (TestBigEndian) On 13/01/16 15:25, "CMake on behalf of Vania Joloboff" wrote: >Hi > >I am familiar with autoconf and trying to migrate our project to cmake. >Thus newbie. I am running cmake 3.2.2 on Linux Mint 17 > >I have seen in t

[CMake] test endian ness

2016-01-13 Thread Vania Joloboff
Hi I am familiar with autoconf and trying to migrate our project to cmake. Thus newbie. I am running cmake 3.2.2 on Linux Mint 17 I have seen in the documentation the macro https://cmake.org/cmake/help/v3.2/module/TestBigEndian.html?highlight=endian#module:TestBigEndian which seems very conveni

Re: [CMake] Test Shared Library Dependencies and set_tests_properties()

2014-05-12 Thread Jörg Kreuzberger
-Ursprüngliche Nachricht- Von:Nils Gladitz Gesendet: Mo 12.05.2014 12:14 Betreff:Re: AW: [CMake] Test Shared Library Dependencies and set_tests_properties() An: Jörg Kreuzberger ; > On 05/12/2014 11:59 AM, Jörg Kreuzberger wrote: > > Hi! > > >

Re: [CMake] Test Shared Library Dependencies and set_tests_properties()

2014-05-12 Thread Nils Gladitz
On 05/12/2014 09:10 AM, Jörg Kreuzberger wrote: For execution i therefore call set_test_properties( testname PROPERTIES ENVIRONMENT ) with LD_LIBRARY_PATH on Linux and PATH for windows. This seems to work on linux for "cached" entries like e.g. ${QT_LIBRARY_DIR} or others. If i want to add to

[CMake] Test Shared Library Dependencies and set_tests_properties()

2014-05-12 Thread Jörg Kreuzberger
Hi! For using tests those tests have sometimes dependencies to shared libraries, from cache and from build. For execution i therefore call set_test_properties( testname PROPERTIES ENVIRONMENT ) with LD_LIBRARY_PATH on Linux and PATH for windows. This seems to work on linux for "cached" entries

[CMake] Test for OUTPUT rule

2013-10-03 Thread xantares 09
Hi, I can check if a target has been created: add_custom_target(foo ...) if (TARGET foo) ... But I can't test for if an output rule has been created for foo.x: add_custom_command(OUTPUT foo.x) if (... foo.x) Or is it possible ? x. -- Powered by

Re: [CMake] Test if ENV${VAR} is set

2012-09-14 Thread Davis Ford
Thanks to all for the feedback / suggestions. I did edit the wiki -- feel free to revise my submission or extend with your own. I linked to this thread on there, as well. http://www.itk.org/Wiki/CMake/Examples#Check_if_environment_variable_is_set On Fri, Sep 14, 2012 at 4:43 PM, Bogdan Cristea

Re: [CMake] Test if ENV${VAR} is set

2012-09-14 Thread Bogdan Cristea
On Friday 14 September 2012 16:26:10 you wrote: > On Fri, Sep 14, 2012 at 4:17 PM, Bogdan Cristea wrote: > > On Friday 14 September 2012 16:13:16 Davis Ford wrote: > >> if("$ENV{FOO_HOME}" MATCHES "") > >> > >>message("You must set FOO_HOME") > >>return() > >> > >> endif() > > > > Try s

Re: [CMake] Test if ENV${VAR} is set

2012-09-14 Thread Eric Clark
gt; Sent: Friday, September 14, 2012 3:26 PM > To: Bogdan Cristea > Cc: cmake@cmake.org > Subject: Re: [CMake] Test if ENV${VAR} is set > > On Fri, Sep 14, 2012 at 4:17 PM, Bogdan Cristea wrote: > > On Friday 14 September 2012 16:13:16 Davis Ford wrote: > >> if(&quo

Re: [CMake] Test if ENV${VAR} is set

2012-09-14 Thread David Cole
On Fri, Sep 14, 2012 at 4:17 PM, Bogdan Cristea wrote: > On Friday 14 September 2012 16:13:16 Davis Ford wrote: >> if("$ENV{FOO_HOME}" MATCHES "") >>message("You must set FOO_HOME") >>return() >> endif() > > Try something like this > > if(NOT ENV{FOO_HOME}) > message("etc") > endif() > > -

Re: [CMake] Test if ENV${VAR} is set

2012-09-14 Thread Bogdan Cristea
On Friday 14 September 2012 16:13:16 Davis Ford wrote: > if("$ENV{FOO_HOME}" MATCHES "") >message("You must set FOO_HOME") >return() > endif() Try something like this if(NOT ENV{FOO_HOME}) message("etc") endif() -- Bogdan -- Powered by www.kitware.com Visit other Kitware open-source

[CMake] Test if ENV${VAR} is set

2012-09-14 Thread Davis Ford
Hi, I'm new to CMake -- trying to do something relatively simple. Not having much luck -- I've scoured the docs/wiki, but searching the manual http://cmake.org/cmake/help/v2.8.9/cmake.html in the browser results in a million hits for a search string. I just want to test if an environment variable

Re: [CMake] All right all you CMake test writers....

2012-07-11 Thread Jean-Christophe Fillion-Robin
Hi Kent, Given the fact the parameter -R accepts a regular expression, you could use the "^" and "$" associated with regular expression. In your case, running: ctest -R ^Foo$ will only execute test matching "Foo" where as running ctest -R Foo will execute tests having the string Foo wit

[CMake] All right all you CMake test writers....

2012-07-11 Thread Kent Williams
Here's something I find really annoying: Someone who names tests such that the name of one is a prefix of the name of another! So if you do this: ctest -V -R You get every test whose name begins with . Just had to vent. -- Powered by www.kitware.com Visit other Kitware open-source projects

Re: [CMake] Test Output truncated on the the first compilation warning

2012-05-29 Thread Pere Mato Vila
Thanks for the suggestion. It works with a more recent version. On May 29, 2012, at 3:14 PM, Rolf Eike Beer wrote: > Pere Mato Vila wrote: >> No. Are you aware of any fix in this area? Changing the version in these >> centrally maintained servers we are using is not immediate and I would like

Re: [CMake] Test Output truncated on the the first compilation warning

2012-05-29 Thread Rolf Eike Beer
Pere Mato Vila wrote: > No. Are you aware of any fix in this area? Changing the version in these > centrally maintained servers we are using is not immediate and I would like > to make sure that my request is well justified. Cheers, You can download a precompiled version from Kitware and extract i

Re: [CMake] Test Output truncated on the the first compilation warning

2012-05-29 Thread Pere Mato Vila
No. Are you aware of any fix in this area? Changing the version in these centrally maintained servers we are using is not immediate and I would like to make sure that my request is well justified. Cheers, Pere On May 29, 2012, at 1:40 PM, Rolf Eike Beer wrote: > A

Re: [CMake] Test Output truncated on the the first compilation warning

2012-05-29 Thread Rolf Eike Beer
Am Dienstag, 29. Mai 2012, 09:38:53 schrieb Pere Mato Vila: > When displaying the test results with CDash 2.0.2 produced by CTest 2.8.2, > the output, which includes the building of the test, is truncated on the > first occurrence of a compilation warning. The first character not > displayed is [

[CMake] Test Output truncated on the the first compilation warning

2012-05-29 Thread Pere Mato Vila
When displaying the test results with CDash 2.0.2 produced by CTest 2.8.2, the output, which includes the building of the test, is truncated on the first occurrence of a compilation warning. The first character not displayed is [`]. An example of the results can be seen at http://cdash.cern.c

[CMake] Test organization within cmake

2012-05-24 Thread Damien R
Hi, I want some help to organize tests within cmake. Currently I have a test directory which contains some test files, eg : test_foo.cpp test_bar.cpp In the CMakeLists.txt, I had: add_executable(test_foo test_foo.cpp) add_test(test_foo test_foo) add_executable(test_bar test_bar.cpp) add_test(tes

[CMake] test dependencies, labels, and tests in multiple directories

2011-10-29 Thread Mark
CMake 2.8.5, Debian Linux I have tests in two different directories; the tests in one directory depend on one test that is found in another directory. If I try to test using 'make test', the tests run. Same for a ctest -S script that doesn't use labels, and a script that runs all tests in the pro

Re: [CMake] test linker flags?

2011-07-24 Thread Michael Hertling
On 07/15/2011 03:15 AM, Clifford Yapp wrote: > Is there a way to test flags supplied to the linker > (CMAKE_SHARED_LINKER_FLAGS) in the same way we can test compiler flags > with CHECK_C_COMPILER_FLAG? I'd like to check if -Wl,--no-undefined > works or not before using it. > > Cheers, > CY You m

[CMake] test linker flags?

2011-07-14 Thread Clifford Yapp
Is there a way to test flags supplied to the linker (CMAKE_SHARED_LINKER_FLAGS) in the same way we can test compiler flags with CHECK_C_COMPILER_FLAG? I'd like to check if -Wl,--no-undefined works or not before using it. Cheers, CY ___ Powered by www.ki

Re: [CMake] Test if found library is 32 or 64 bit

2011-07-11 Thread j s
The /usr/bin/file command on linux can be used to check the file type. ~> file /usr/lib/libpython2.6.so /usr/lib/libpython2.6.so: symbolic link to `libpython2.6.so.1' ~> file /usr/lib/libpython2.6.so.1 /usr/lib/libpython2.6.so.1: symbolic link to `libpython2.6.so.1.0' ~> file /usr/lib/libpython

[CMake] Test if found library is 32 or 64 bit

2011-07-11 Thread joe
Hi, I've got a seemingly simple question. However, I failed to find an answer up to now. In my FindXXX module, I search a library with help of the find_library command on a 64-bit Linux. Now, I want to check, if the library is 32-bit (built with -m32) or 64-bit. How can I check this? Thanks

Re: [CMake] TEST Property ENVIRONMENT combined with ctest --build-and-test

2011-06-21 Thread David Cole
On Tue, Jun 21, 2011 at 12:09 PM, Hugo Heden wrote: > ** > Good day all, > > I am using ADD_TEST like this: > > ADD_TEST( > nameOfMyTest > ${CMAKE_CTEST_COMMAND} > --build-and-test ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} > --build-generator ${CMAKE_GENERATOR} > --build-make

[CMake] TEST Property ENVIRONMENT combined with ctest --build-and-test

2011-06-21 Thread Hugo Heden
Good day all, I am using ADD_TEST like this: ADD_TEST( nameOfMyTest ${CMAKE_CTEST_COMMAND} --build-and-test ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} --build-generator ${CMAKE_GENERATOR} --build-makeprogram ${CMAKE_BUILD_TOOL} --build-nocmake --build-noclean --bu

Re: [CMake] Test-specific configuration

2011-06-20 Thread Andreas Naumann
Am 21.06.2011 02:50, schrieb Tim Gallagher: Hi, I'm trying to set up automated testing of our code with CTest (we are using CMake), but I'm running into some issues I can't figure out the correct way to solve. Many of our tests require specific sets of options to be turned on/off in the confi

[CMake] Test-specific configuration

2011-06-20 Thread Tim Gallagher
Hi, I'm trying to set up automated testing of our code with CTest (we are using CMake), but I'm running into some issues I can't figure out the correct way to solve. Many of our tests require specific sets of options to be turned on/off in the configuration step. How is this done? We've used

[CMake] Test properties

2011-03-15 Thread Belcourt, Kenneth
Hi, Another add_test() question. I reuse the same test directory because I run both Fortran and C executables on the same test and the input files are so large that I don't want to replicate the entire test hierarchy. The problem is that I need to remove files both before I run the firs

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-12-09 Thread Zach Mullen
On Thu, Dec 9, 2010 at 12:04 PM, Tyler Roscoe wrote: > Ok I've added a link to this thread and the patch below to the bug: > http://www.vtk.org/Bug/view.php?id=11561 > > Without feedback from anyone, I will assume that I have done an awesome, > production-ready job and will await the call for pat

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-12-09 Thread Tyler Roscoe
Ok I've added a link to this thread and the patch below to the bug: http://www.vtk.org/Bug/view.php?id=11561 Without feedback from anyone, I will assume that I have done an awesome, production-ready job and will await the call for patches to add to CMake 2.8.4. Thanks, tyler On Tue, Dec 07, 2010

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-12-07 Thread Tyler Roscoe
In the process of attempting to fix this, I learned a lot of stuff about how COST is handled that I've never encountered in the docs. Am I missing something? Here are some notes I made about the behavior of COST in CTest. If others find them useful, I'd be happy to put them in the Wiki if someone

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-12-02 Thread Tyler Roscoe
I've taken the liberty of adding this bug to the tracker: http://www.cmake.org/Bug/view.php?id=11561 Can someone give me an idea of how involved this fix is? If it cannot be fixed in short order, I'll be forced to hack around the change in COST's behavior in my own scripts. Fixing the problem at

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-11-30 Thread Tyler Roscoe
On Tue, Nov 30, 2010 at 01:29:37PM -0500, Zach Mullen wrote: > Hm, yours was a use case we didn't really consider when we were making > changes to cost behavior. Clearly. :) > The middle ground here would be to respect costs in the non-parallel > case when they are expressed explicitly This so

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-11-30 Thread Zach Mullen
Hm, yours was a use case we didn't really consider when we were making changes to cost behavior. The middle ground here would be to respect costs in the non-parallel case when they are expressed explicitly, but not to cost-order them automatically based on their previous run times. -Zach On Tue,

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-11-30 Thread Tyler Roscoe
On Fri, Nov 26, 2010 at 10:38:44AM -0500, Zach Mullen wrote: > I just realized why this isn't working -- it's actually not a regression. Maybe we have different definitions of "regression". I see a feature that used to do one thing but which now does something else. Here is what the docs say abou

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-11-26 Thread Zach Mullen
ing lines like this in my generated CTestTestfile.cmake: >> > >> >SET_TESTS_PROPERTIES(rs_exerciser_2dgrid PROPERTIES COST "-500" >> FAIL_REGULAR_EXPRESSION "TP_EXERCISER_FAIL") >> > >> > and the FAIL_REGULAR_EXPRESSIO

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-11-26 Thread Zach Mullen
OPERTIES(rs_exerciser_2dgrid PROPERTIES COST "-500" > FAIL_REGULAR_EXPRESSION "TP_EXERCISER_FAIL") > > > > and the FAIL_REGULAR_EXPRESSION property seems to be working just fine. > > > > > > I've included a small repro case below

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-11-23 Thread David Cole
;    SET_TESTS_PROPERTIES(rs_exerciser_2dgrid PROPERTIES  COST "-500" > FAIL_REGULAR_EXPRESSION "TP_EXERCISER_FAIL") > > and the FAIL_REGULAR_EXPRESSION property seems to be working just fine. > > > I've included a small repro case below. This looks like a

[CMake] test property COST not working in cmake 2.8.3?

2010-11-23 Thread Tyler Roscoe
t;TP_EXERCISER_FAIL") and the FAIL_REGULAR_EXPRESSION property seems to be working just fine. I've included a small repro case below. This looks like a regression. Should I open a bug? Thanks, tyler [tyle...@tpb006:~/cmake-test-properties-test]$ cat CMakeLists.txt cmake_minimum_required(VERSION 2.

[CMake] test

2010-10-14 Thread Chang Yu Huang
test ___ 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 subscr

Re: [CMake] Test Script problems on Windows

2010-05-05 Thread Allen D Byrne
Well it turns out the problem was in the execute_process script. I had the : OUTPUT_FILE ${TEST_OUTPUT} ERROR_FILE ${TEST_OUTPUT} both going to one file - Windows couldn't handle that. Changing that allowed the command to actually execute, NOW, I have to deal with the CRLF issue i

[CMake] Test Script problems on Windows

2010-05-05 Thread Allen D Byrne
As stated in my previous post, I have a script, named runTest.cmake, which works on linux but fails on Windows with: "The process cannot access the file because it is being used by another process" This script calls execute_process() with an executable to capture the output for a comparison

[CMake] Test Script problems

2010-04-30 Thread Allen D Byrne
I have a test script that works on linux but fails to work properly on Windows. It runs a command, captures the standard out and compares it to a reference file. On linux everything works 99% of the time (issue with '=' or '--' in a parameter argument - later question). On windows, the executio

Re: [CMake] test dependencies

2010-03-12 Thread David Cole
If you use set_property instead, there's an APPEND mode to make this easier: set_property(TEST test3 APPEND PROPERTY DEPENDS test2) set_property(TEST test3 APPEND PROPERTY DEPENDS test1) I think you can do it with set_tests_properties, too, like this: SET_TESTS_PROPERTIES(test3 PROPERTIES DEPENDS

Re: [CMake] test dependencies

2010-03-12 Thread Alexandre Gramfort
Hi, I don't manage to have a test depend on multiple tests. If I do : SET_TESTS_PROPERTIES(test3 PROPERTIES DEPENDS test2) SET_TESTS_PROPERTIES(test3 PROPERTIES DEPENDS test1) test3 only depends on test1 and SET_TESTS_PROPERTIES(test3 PROPERTIES DEPENDS test1 test2) is not a valid syntax. S

Re: [CMake] test dependencies

2010-03-12 Thread Alexander Neundorf
On Friday 12 March 2010, David Cole wrote: > ctest -R "test1|test2" ? > > Using -R says "run only the tests that match this regex" -- it does not say > "run the matching tests after running all the tests they depend on > first"... Well, OTOH if I do "make some_target" with cmake-generated makefile

Re: [CMake] test dependencies

2010-03-12 Thread David Cole
ctest -R "test1|test2" ? Using -R says "run only the tests that match this regex" -- it does not say "run the matching tests after running all the tests they depend on first"... On Fri, Mar 12, 2010 at 12:37 PM, Alexandre Gramfort < alexandre.gramf...@inria.fr> wrote: > Hi, > > here is a simple

[CMake] test dependencies

2010-03-12 Thread Alexandre Gramfort
Hi, here is a simple CMakeList to illustrate my problem: --- PROJECT(Test) CMAKE_MINIMUM_REQUIRED(VERSION 2.8) ENABLE_TESTING() ADD_TEST(test1 ${CMAKE_COMMAND} -E touch test1.txt) ADD_TEST(test2 ${CMAKE_COMMAND} -E touch test2.txt) SET_TESTS_PROPERTIES(test2 PROPERTIES DEPENDS test1)

Re: [CMake] test executable failing only when run in ctest

2009-01-26 Thread Brad King
Matthew Leotta wrote: > > On Jan 26, 2009, at 3:04 PM, Brad King wrote: >> add_test(run_xterm xterm) >> >> $ ctest -R run_xterm >> >> Then run gdb and the test inside the xterm to see if it fails. It could >> be an environment difference. >> >> -Brad >> > > It runs fine from within xterm when xt

Re: [CMake] test executable failing only when run in ctest

2009-01-26 Thread Michael Jackson
On Jan 26, 2009, at 3:29 PM, Matthew Leotta wrote: On Jan 26, 2009, at 3:04 PM, Brad King wrote: Matthew Leotta wrote: Brad, Thanks, but I'm not sure if I completely understand your suggestion. Let me clarify. If I run the test executable ./bvxm_test_all I get no errors and no segfault.

Re: [CMake] test executable failing only when run in ctest

2009-01-26 Thread Matthew Leotta
On Jan 26, 2009, at 3:04 PM, Brad King wrote: Matthew Leotta wrote: Brad, Thanks, but I'm not sure if I completely understand your suggestion. Let me clarify. If I run the test executable ./bvxm_test_all I get no errors and no segfault. I know how to debug this, but there is nothing t

Re: [CMake] test executable failing only when run in ctest

2009-01-26 Thread Brad King
Matthew Leotta wrote: > Brad, > > Thanks, but I'm not sure if I completely understand your suggestion. > Let me clarify. If I run the test executable > > ./bvxm_test_all > > I get no errors and no segfault. I know how to debug this, but there is > nothing to debug. If in the same directory

Re: [CMake] test executable failing only when run in ctest

2009-01-26 Thread Matthew Leotta
Brad, Thanks, but I'm not sure if I completely understand your suggestion. Let me clarify. If I run the test executable ./bvxm_test_all I get no errors and no segfault. I know how to debug this, but there is nothing to debug. If in the same directory I run ctest then the test will

Re: [CMake] test executable failing only when run in ctest

2009-01-26 Thread Brad King
Matthew Leotta wrote: > I've come across a test on the VXL dashboard that seems to segfault only > on some test machines. > > http://www.cdash.org/CDash/testSummary.php?project=12&name=bvxm_test_apm_processors&date=2009-01-26 > > > One of the failing machines is mine (Mac_OS_X-10.5.6_unix_make).

[CMake] test executable failing only when run in ctest

2009-01-26 Thread Matthew Leotta
I've come across a test on the VXL dashboard that seems to segfault only on some test machines. http://www.cdash.org/CDash/testSummary.php?project=12&name=bvxm_test_apm_processors&date=2009-01-26 One of the failing machines is mine (Mac_OS_X-10.5.6_unix_make). When I run the same test execu

[CMake] test list cmake

2008-10-03 Thread Ricardo M. García
Hi i am new, live from spain (bad english) i am testing if we can read me Bye :P ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] test dependencies

2008-08-06 Thread Nicholas O. Andrews
Hi! Does CTest have any support for acyclic unit/regression/functionality test dependencies? i.e. can you enforce that certain tests pass before continuing with the others? Also, is there any support for automatically figuring out what these dependencies are based on source code #includes etc.? Che

[CMake] Test Post - Please Ignore

2008-06-24 Thread Mike Jackson
Sorry for the noise.. Just trying to troubleshoot something with gmail... -- Mike Jackson imikejackson & gmail * com ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] test

2008-03-03 Thread Bill Hoffman
___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Test for if a macro defined

2008-02-10 Thread Alexander Neundorf
On Saturday 09 February 2008, James Bigler wrote: > Is there an expression similar to the one for variables to determine if a > macro is defined? > > MACRO(TEST) >MESSAGE("TEST is defined") > ENDMACRO(TEST) > > IF(DEFINED TEST) >TEST() > ELSE(DEFINED TEST) >MESSAGE("TEST is not defined"

Re: [CMake] Test for if a macro defined

2008-02-09 Thread Filipe Sousa
James Bigler wrote: Is there an expression similar to the one for variables to determine if a macro is defined? MACRO(TEST) MESSAGE("TEST is defined") ENDMACRO(TEST) IF(DEFINED TEST) TEST() ELSE(DEFINED TEST) MESSAGE("TEST is not defined") ENDIF(DEFINED TEST) I don't think there is

[CMake] Test for if a macro defined

2008-02-08 Thread James Bigler
Is there an expression similar to the one for variables to determine if a macro is defined? MACRO(TEST) MESSAGE("TEST is defined") ENDMACRO(TEST) IF(DEFINED TEST) TEST() ELSE(DEFINED TEST) MESSAGE("TEST is not defined") ENDIF(DEFINED TEST) James __

Re: [CMake] Test for ICC

2007-12-14 Thread Alexander Neundorf
On Tuesday 04 December 2007, Mike Jackson wrote: > I need to test for icc/icpc (The intel compiler). What would be the > best way to do that? With cmake cvs you can check the compiler id (CMAKE_C_COMPILER_ID or something similar), with cmake 2.4.x you have to check the filename of the compiler I

Re: [CMake] Test for ICC

2007-12-04 Thread James Bigler
but I want to specifically look for the intel compiler. I guess I could just exec icc and see what comes back. Checking for $CC=icc might be useful, but mine is set to /opt/intel/cc/10.0.023/bin/icc.. Any suggestions would be good. I use this: SET(MANTA_COMPILER_NAME_REGEXPR "icc.*$") IF(

[CMake] Test for ICC

2007-12-04 Thread Mike Jackson
I need to test for icc/icpc (The intel compiler). What would be the best way to do that? I could do: IF (NOT CMAKE_COMPILER_IS_GNUCC) but I want to specifically look for the intel compiler. I guess I could just exec icc and see what comes back. Checking for $CC=icc might be useful, but min

[CMake] test

2007-11-18 Thread Chen Levy
Please ignore this message. -- Cheers, Chen. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] Re: CMake test suite - 51% failure rate?! (x86/Solaris 10)

2007-04-02 Thread Matthew Woehlke
Matthew Woehlke wrote: [It] turns out g++ is broken, at least in that binaries it produces all have this problem. Which means I seem to have found a "bug"; tests that involve compiling C++ programs either a: ignore that I was using CC=cc CXX=CC to build cmake, or b: fail to notice that g++ pro

Re: [CMake] Re: CMake test suite - 51% failure rate?! (x86/Solaris 10)

2007-03-26 Thread Bill Hoffman
Matthew Woehlke wrote: Bill Hoffman wrote: Matthew Woehlke wrote: A while back I "successfully"* built CMake on an x86/Solaris 10 box. Now, trying to build on a different box, I am getting a 51% failure rate in the test suite. Huh?! (* the test suite has an odd problem with GNU make 3.81, ot

[CMake] Re: CMake test suite - 51% failure rate?! (x86/Solaris 10)

2007-03-26 Thread Matthew Woehlke
Bill Hoffman wrote: Matthew Woehlke wrote: A while back I "successfully"* built CMake on an x86/Solaris 10 box. Now, trying to build on a different box, I am getting a 51% failure rate in the test suite. Huh?! (* the test suite has an odd problem with GNU make 3.81, otherwise it was clean)

Re: [CMake] CMake test suite - 51% failure rate?! (x86/Solaris 10)

2007-03-26 Thread Bill Hoffman
Matthew Woehlke wrote: A while back I "successfully"* built CMake on an x86/Solaris 10 box. Now, trying to build on a different box, I am getting a 51% failure rate in the test suite. Huh?! (* the test suite has an odd problem with GNU make 3.81, otherwise it was clean) I also can't seem to

[CMake] CMake test suite - 51% failure rate?! (x86/Solaris 10)

2007-03-26 Thread Matthew Woehlke
A while back I "successfully"* built CMake on an x86/Solaris 10 box. Now, trying to build on a different box, I am getting a 51% failure rate in the test suite. Huh?! (* the test suite has an odd problem with GNU make 3.81, otherwise it was clean) I also can't seem to find any output from th

Re: [CMake] Test sources

2007-02-20 Thread Pascal Fleury
On Monday 19 February 2007 16:08:08 Ken Martin wrote: > We have a test for CREATE_TEST_SOURCELIST in CMake/Tests/TestDriver and it > does not use a full path to the tests and it is passing on the dashboard. > Perhaps you specified the path to the test source files as a full absolute > path? Thanks

RE: [CMake] Test sources

2007-02-19 Thread Ken Martin
12065 518 371 3971 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pascal Fleury Sent: Sunday, February 18, 2007 6:18 PM To: cmake@cmake.org Subject: [CMake] Test sources Hi CMakers, I am trying to use the CREATE_TEST_SOURCELIST approach to test some

[CMake] Test sources

2007-02-18 Thread Pascal Fleury
Hi CMakers, I am trying to use the CREATE_TEST_SOURCELIST approach to test some existing CppUnit tests. My plan was to have the functions that CTest expects ( the foo(int,char**) for test in file 'foo.cpp' ) be generated, each of them calling the suite from the CppUnit (basically testing a comp

Re: [CMake] test files generated by CheckIncludeFile are not ansi conform

2006-05-16 Thread Brad King
Michael Biebl wrote: The template files for CheckIncludeFile are not ansi conform, this means running with "CFLAGS=-Werror -Wstrict-prototypes" produces failing tests. The template file CheckIncludeFile.c.in and the one for cxx should correctly read #include <${CHECK_INCLUDE_FILE_VAR}> int mai

[CMake] test files generated by CheckIncludeFile are not ansi conform

2006-05-15 Thread Michael Biebl
The template files for CheckIncludeFile are not ansi conform, this means running with "CFLAGS=-Werror -Wstrict-prototypes" produces failing tests. The template file CheckIncludeFile.c.in and the one for cxx should correctly read #include <${CHECK_INCLUDE_FILE_VAR}> int main(int argc, char *argv