[Insight-developers] kdtree plots and parallel tests

Bill Lorensen bill.lorensen at gmail.com
Thu Dec 3 16:40:32 EST 2009


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
>
>


More information about the Insight-developers mailing list