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 and other math functions between processors and math
> libraries.  I always disable 80 bit extended precision on linux since
> the results are non-deterministic with respect to compiler settings.

diff with numerical precision concerns is ndiff :
http://www.math.utah.edu/~beebe/software/ndiff

HTH

> 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 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 only when
> >> I type "make test" and not a moment before?
> >
> > Hi Juan:
> >
> > In the above simple example "diff" is run only when you run ctest (or I
> > guess "make test" although I don't use that). So you could do something like
> >
> > ADD_TEST(my_first_test ${CMAKE_CURRENT_BINARY_DIR}/create_testfile; diff -q 
> > goldenfile testfile)
> >
> > subject to escaping of ";" which I can never get right until I experiment.
> > (This general command-line approach of separating commands with ";" only
> > works on Unix, I believe.)
> >
> > Then the create_testfile executable is run at ctest time to create testfile
> > and then diff is run immediately afterwards (which appears to be what you
> > want).
> >
> > A better approach would be to put everything you want including the diff
> > into a configurable script, e.g.,
> >
> > ADD_TEST(my_first_test ${CMAKE_CURRENT_BINARY_DIR}/test1.sh)
> >
> > Note, in this case, the script is configured using CONFIGURE_FILE at
> > cmake time (basically by substituting CMake-defined variables when needed),
> > but run only at ctest time.
> >
> > Our tests don't use diff (because postscript PLplot results are slightly
> > platform/compiler version dependent because of floating-point rounding
> > issues), but we do use a configurable scripting approach to generate our
> > test plots, see
> > http://plplot.svn.sourceforge.net/viewvc/plplot/trunk/test/CMakeLists.txt?view=log
> >
> > I don't recommend you wade through _all_ of that CMake logic and bash script
> > logic since it is so specific to our PLplot needs (and also its pretty
> > voluminous/hierarchical since it deals with hundreds of test plots), but I
> > have given you the above starting reference in case you have trouble
> > configuring test scripts for yourself using CONFIGURE_FILE.
> >
> > Alan
> > __
> > Alan W. Irwin
> >
> > Astronomical research affiliation with Department of Physics and Astronomy,
> > University of Victoria (astrowww.phys.uvic.ca).
> >
> > Programming affiliations with the FreeEOS equation-of-state implementation
> > for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
> > package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
> > Linux Links project (loll.sf.net); and the Linux Brochure Project
> > (lbproject.sf.net).
> > __
> >
> > Linux-powered Science
> > __
> >
> >
>
>
> --
> Juan Sanchez
> [EMAIL PROTECTED]
> 800-538-8450 Ext. 54395
> 512-602-4395
>
>
> ___
> CMake mailing list
> CMake@cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>


-- 
Mathieu
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


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 and other math functions between processors and math
> libraries.  I always disable 80 bit extended precision on linux since
> the results are non-deterministic with respect to compiler settings.

diff with numerical precision concerns is ndiff :
http://www.math.utah.edu/~beebe/software/ndiff

HTH

> 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 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 only when
> >> I type "make test" and not a moment before?
> >
> > Hi Juan:
> >
> > In the above simple example "diff" is run only when you run ctest (or I
> > guess "make test" although I don't use that). So you could do something like
> >
> > ADD_TEST(my_first_test ${CMAKE_CURRENT_BINARY_DIR}/create_testfile; diff -q 
> > goldenfile testfile)
> >
> > subject to escaping of ";" which I can never get right until I experiment.
> > (This general command-line approach of separating commands with ";" only
> > works on Unix, I believe.)
> >
> > Then the create_testfile executable is run at ctest time to create testfile
> > and then diff is run immediately afterwards (which appears to be what you
> > want).
> >
> > A better approach would be to put everything you want including the diff
> > into a configurable script, e.g.,
> >
> > ADD_TEST(my_first_test ${CMAKE_CURRENT_BINARY_DIR}/test1.sh)
> >
> > Note, in this case, the script is configured using CONFIGURE_FILE at
> > cmake time (basically by substituting CMake-defined variables when needed),
> > but run only at ctest time.
> >
> > Our tests don't use diff (because postscript PLplot results are slightly
> > platform/compiler version dependent because of floating-point rounding
> > issues), but we do use a configurable scripting approach to generate our
> > test plots, see
> > http://plplot.svn.sourceforge.net/viewvc/plplot/trunk/test/CMakeLists.txt?view=log
> >
> > I don't recommend you wade through _all_ of that CMake logic and bash script
> > logic since it is so specific to our PLplot needs (and also its pretty
> > voluminous/hierarchical since it deals with hundreds of test plots), but I
> > have given you the above starting reference in case you have trouble
> > configuring test scripts for yourself using CONFIGURE_FILE.
> >
> > Alan
> > __
> > Alan W. Irwin
> >
> > Astronomical research affiliation with Department of Physics and Astronomy,
> > University of Victoria (astrowww.phys.uvic.ca).
> >
> > Programming affiliations with the FreeEOS equation-of-state implementation
> > for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
> > package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
> > Linux Links project (loll.sf.net); and the Linux Brochure Project
> > (lbproject.sf.net).
> > __
> >
> > Linux-powered Science
> > __
> >
> >
>
>
> --
> Juan Sanchez
> [EMAIL PROTECTED]
> 800-538-8450 Ext. 54395
> 512-602-4395
>
>
> ___
> CMake mailing list
> CMake@cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>


-- 
Mathieu
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Bug: SET(CMAKE_DEBUG_POSTFIX "D")

2006-09-29 Thread Mathieu MARACHE
Hi,I've got a small bug trying to use configuration postfixes under windows with at least NMakes and VisualStudio C++ .NET 7.1 . I used the latest 2.4.3 release of CMake.The following command works for libraries and shared libraries but not for executables. For example :
with SET(CMAKE_DEBUG_POSTFIX "D"), libraries get created as expected :  - myLibD.dll in Debug and - myLib.dll in others configurationsbut for executables, it is always : - 
myApp.exeShould I post a bug report (I haven't found any mentioning this yet) ?Regards,-- Mathieu
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Bug: SET(CMAKE_DEBUG_POSTFIX "D")

2006-09-29 Thread Mathieu MARACHE
Thanks Brad, That did the trick ! BTW, we tried to buy the CMake book this summer but our supplier told us it was not edited anymore... Is this true ? And if yes will an updated version of the book be released ?
Best regards,Mathieu2006/9/29, Brad King <[EMAIL PROTECTED]>:
Mathieu MARACHE wrote:> Hi,> I've got a small bug trying to use configuration postfixes under windows> with at least NMakes and VisualStudio C++ .NET 7.1 . I used the latest> 2.4.3 release of CMake.
>> The following command works for libraries and shared libraries but not> for executables. For example :>> with SET(CMAKE_DEBUG_POSTFIX "D"), libraries get created as expected :
>  - myLibD.dll in Debug and>  - myLib.dll in others configurations>> but for executables, it is always :>  - myApp.exe>> Should I post a bug report (I haven't found any mentioning this yet) ?
Look at the documentation of SET_TARGET_PROPERTIES.  You can set aDEBUG_POSTFIX property on any target.  The documentation explains whyCMAKE_DEBUG_POSTFIX doesn't work for executables.-Brad
-- Mathieu
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

[CMake] CTest update with dart

2007-05-09 Thread Mathieu MARACHE

Hi,

I've succesfully installed a Dart server to use with CTest for a
continuous build dashboard. However, The update stage which updates
from a svn repository doesn't recover prior revision numbers to
populate the update.xml file and thus when parsed by the Dart server
the URL to see the diffs introduced by the new revision contain the
same number...

I use Dart 1.0.7 (for the record), CMake 2.4.6 on linux and
subversion. Is this known or should I fill up a bug report ?

--
Mathieu
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Missing Qt4 plugins

2014-05-23 Thread Mathieu MARACHE
I have filled a issue in CMake's bugtraker

http://public.kitware.com/Bug/view.php?id=14930

FindQt4.cmake is missing some platform dependent bearer plugins and the
qtga image format plugin.

By setting them like this :
set( QT_BEARER_PLUGINS qcorewlanbearer qgenericbearer qnativewifibearer
qconnmanbearer qnmbearer)
set( QT_IMAGEFORMATS_PLUGINS qgif qjpeg qmng qico qsvg qtiff qtga )

Before including DeployQt4 and using the install_qt4_executable macro can
solve this.

HTH others :-)

--
nǝıɥʇɐƜ
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake