[Insight-developers] call for help from a TCL developer to write a small script in TCL to run WrapITK's TCL tests

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Tue Jun 6 05:03:18 EDT 2006


Hi,

In order to improve WrapITK quality, I'm writing test drivers to run the  
tests in WrapITK [1].
Basically, a test driver set some environment variables, run the test  
program, run ImageCompare [5] to be sure the images produced are correct,  
and return 0 if everything goes write, or an error code if the test  
program or ImageCompare has returned an error.
The driver should be able to take several option --compare img1 img2, so  
if a test program produce several images, they can all be validated.
A typical run can be:

   /usr/bin/tcl tclTestDriver.tcl \
        Test.tcl in.png out1.png out2.png param1 param2 \
        --compare out1.png ref1.png \
        --compare out2.png ref2.png

To be sure that the tests will be runnable, the test drivers are wrote in  
the target language. The python [2] and java [3] test drivers are ready,  
but my lack of knowledge of tcl prevent me to write the tcl test driver.  
The current program used to run tcl [4] tests is wrote in bash - so it  
will fail on windows - and is not able to run ImageCompare

Any help from a tcl developer to write this small tcl script would be  
highly appreciated !

Thanks,

Gaetan


[1] WrapITK (Insight Journal):  
http://www.insight-journal.org/InsightJournalManager/view_reviews.php?back=publications.php%3Fjournalid%3D4%26order%3D%26revision_display%3D&pubid=85
[2] python test driver  
http://voxel.jouy.inra.fr/darcs/contrib-itk/WrapITK/Python/Tests/pythonTestDriver.py.in
[3] java test driver  
http://voxel.jouy.inra.fr/darcs/contrib-itk/WrapITK/Java/Tests/javaTestDriver.java.in
[4] tcl bash script  
http://voxel.jouy.inra.fr/darcs/contrib-itk/WrapITK/Tcl/itkwish.in
[5] ImageCompare  
http://insight-journal.org/InsightJournalManager/documentation/CMake/ImageCompare.tgz

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


More information about the Insight-developers mailing list