[Insight-developers] kdtree plots and parallel tests

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Thu Dec 17 12:22:39 EST 2009


Le 4 déc. 09 à 03:17, Luis Ibanez a écrit :

> Bill,
>
> Yes,
> test dependencies can be defined in the CMakeLists.txt file
> by using the command:
>
>    SET_TESTS_PROPERTIES( Test2Name
>                      PROPERTIES DEPENDS Test1Name)
>
> This states that Test1Name must be run before running Test2Name.

I've just commited a fix using that method, for both statistics  
(review and non review).

I just hope it is compatible with all the supported cmake version.

Regards,

Gaëtan

>
> BTW: Those dependencies on the KdTree tests are my bad   :-(
>
> I should have put the test dependencies explicitly at the time.
>
>
>          Luis
>
>
> -------------------------------------
> On Thu, Dec 3, 2009 at 4:40 PM, Bill Lorensen  
> <bill.lorensen at gmail.com> wrote:
>> I think you can give test dependencies in cmake.
>>
>> 2009/12/3 Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr>:
>>>
>>> Hi Bill,
>>>
>>> Thanks for looking at that.
>>> I don't see a clean way to run both part of the test - the  
>>> production of the
>>> .dot and the production of the .png file - in a single test.
>>>
>>> In that case, it would be nice to be able to give test  
>>> dependencies in
>>> cmake, so they can be run in order by ctest.
>>>
>>> Gaëtan
>>>
>>>
>>>
>>> Le 3 déc. 09 à 16:30, Bill Lorensen a écrit :
>>>
>>>> Very bad practice. I thought I had caught all of those. I guess  
>>>> not.
>>>> I'll take a look. IN the past, I checked into Testing/Data/Input  
>>>> any
>>>> files that are used as inputs.
>>>>
>>>> Bill
>>>>
>>>> 2009/12/3 Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr>:
>>>>>
>>>>> Hi,
>>>>>
>>>>> I've just found a problem with parallel tests (ctest -j): the  
>>>>> kdtree plot
>>>>> tests are reusing the output files from other tests as input. When
>>>>> running
>>>>> the tests in parallel, it sometimes fail.
>>>>>
>>>>> ADD_TEST(itkKdTreeTest1Plot ${DOXYGEN_DOT_EXECUTABLE} -Tpng -o
>>>>>  ${TEMP}/itkKdTreeTest1_100.png ${TEMP}/itkKdTreeTest1_100.dot)
>>>>> ADD_TEST(itkKdTreeTest2Plot ${DOXYGEN_DOT_EXECUTABLE} -Tpng -o
>>>>>  ${TEMP}/itkKdTreeTest2.png ${TEMP}/itkKdTreeTest2.dot)
>>>>> ADD_TEST(itkKdTreeTest3Plot ${DOXYGEN_DOT_EXECUTABLE} -Tpng -o
>>>>>  ${TEMP}/itkKdTreeTest3.png ${TEMP}/itkKdTreeTest3.dot)
>>>>>
>>>>> Any idea on how to fix that nicely is welcome.
>>>>>
>>>>> Regards,
>>>>>
>>>>> 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
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Powered by www.kitware.com
>>>>>
>>>>> Visit other Kitware open-source projects at
>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>
>>>>> Kitware offers ITK Training Courses, for more information visit:
>>>>> http://kitware.com/products/protraining.html
>>>>>
>>>>> Please keep messages on-topic and check the ITK FAQ at:
>>>>> http://www.itk.org/Wiki/ITK_FAQ
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://www.itk.org/mailman/listinfo/insight-developers
>>>>>
>>>>>
>>>
>>> --
>>> 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
>>>
>>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://kitware.com/products/protraining.html
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-developers
>>

-- 
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/20091217/c764af4f/attachment.pgp>


More information about the Insight-developers mailing list