[Insight-developers] Need to add images for new tests to Data -- how to do that in a Gerrit topic?

Luis Ibanez luis.ibanez at kitware.com
Thu Nov 4 14:45:08 EDT 2010


Gaetan,

We will be demonstrating the use of MIDAS for
hosting ITK Testing Data at the Iowa meeting.

The essential changes can be seen in the
following Gerrit patch:

   http://review.source.kitware.com/#change,301


Instructions are available at:

  http://www.itk.org/Wiki/ITK_Release_4/Testing_Data


---

Essentially:

* For every data file required for testing we will put its
  identification md5 checksum in a file, in the directory
  ITK/Testing/MIDAS_Keys

* For every ITK tests, in the CMakeLists.txt files, we
   will replace:

   add_test( test007 executable
      input.png
      output.png
      )


with


   midas_add_test(test007 executable
       MIDAS{input.png.md5}
       output.png
       )


The CMake script in

       ITK/CMake/MIDAS.cmake

will take care of the rest.


Images will be downloaded at the moment
of running "ctest".

---

When a new image needs to be added to the
test suite, you will first upload the image to
the ITK Testing collection in MIDAS:

http://midas.kitware.com/community/view/7

and then will add its corresponding MD5 keyfile
to the directory

         ITK/Testing/MIDAS_Keys

Then you will edit the add_test command in the
CMakeLists.txt file,

and

Finally,
you will submit your Git patch to Gerrit.



Any reviewer who download the patch, will
be able to build ITK, and at the moment of
running the tests, CMake will download the
necessary images from MIDAS.



---------------------------

Please give it a try at the Gerrit patch and
let us know what you think.


     Thanks


           Luis


-----------------------------------------------------------
2010/11/4 Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr>

>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20101104/f5a2e938/attachment.htm>


More information about the Insight-developers mailing list