[Insight-developers] git and dashboard

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Mon Aug 2 08:56:15 EDT 2010


Le 1 août 10 à 20:53, Brad King a écrit :

> On 7/29/2010 2:49 PM, Gaëtan Lehmann wrote:
>> Running
>>
>> ctest -j8 -T test -T Memcheck -T Submit -M Nightly -R Connected
>>
>> in the build dir works just fine though.
>>
>> Any idea of what can be wrong?
>
> The memory check configuration is put in the cache
> and configured into DartConfiguration.tcl.  I'm not
> sure why ctest_memcheck() is not loading it from there.
>
> Try setting the values directly in the ctest script:
>
>  set(CTEST_MEMORYCHECK_COMMAND /usr/bin/valgrind)
>  set(CTEST_MEMORYCHECK_COMMAND_OPTIONS "...")
>  set(CTEST_MEMORYCHECK_SUPPRESSIONS_FILE ...)


Ok it seems to work by setting them both in the ctest script and in  
the cache.

   set(CTEST_MEMORYCHECK_COMMAND /usr/bin/valgrind)
   set(CTEST_MEMORYCHECK_COMMAND_OPTIONS "--trace-children=yes --quiet  
--tool=memcheck --leak-check=yes --show-reachable=yes --num- 
callers=100 --verbose --demangle=yes")
   set(CTEST_MEMORYCHECK_SUPPRESSIONS_FILE ${CTEST_SOURCE_DIRECTORY}/ 
CMake/InsightValgrind.supp)

   set( dashboard_cache "
     BUILD_TESTING:BOOL=ON
     BUILD_EXAMPLES:BOOL=ON
     BUILD_SHARED_LIBS:BOOL=ON
     ITK_LEGACY_SILENT:BOOL=ON
     ITK_USE_CONSOLIDATED_MORPHOLOGY:BOOL=ON
     ITK_USE_REVIEW:BOOL=ON
     ITK_USE_REVIEW_STATISTICS:BOOL=ON
     MEMORYCHECK_COMMAND:FILEPATH=${CTEST_MEMORYCHECK_COMMAND}
     MEMORYCHECK_COMMAND_OPTIONS:STRING=$ 
{CTEST_MEMORYCHECK_COMMAND_OPTIONS}
     MEMORYCHECK_SUPPRESSIONS_FILE:FILEPATH=$ 
{CTEST_MEMORYCHECK_SUPPRESSIONS_FILE}
     "
     )

Thanks!

Gaëtan


-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr  http://www.itk.org
http://www.mandriva.org  http://www.bepo.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20100802/6406d82d/attachment.pgp>


More information about the Insight-developers mailing list