[Insight-developers] Data for testing

Luis Ibanez luis.ibanez at kitware.com
Wed Jul 25 18:36:17 EDT 2007


Hi Alex,


                How big is the data ?


If it is small (e.g. several Kb) we usually put it in

        Insight/Testing/Data/Input

Then, in the CMakeLists.txt files of the Testing directories
we define CMake variables that point to this directory.

See for example, lines 17-18 of the CMakeLists.txt file in
the directory

        Insight/Testing/Code/Review

you will find:


    SET(BASELINE ${ITK_DATA_ROOT}/Baseline/Review)
    SET(INPUTDATA ${ITK_DATA_ROOT}/Input)

Where ITK_DATA_ROOT has been set to the source directory
of ITK : Insight/Testing/Data in line 30 of the CMakeLists.txt
file of directory:

          Insight/Testing

For an example on how you use the INPUTDATA symbol, look at
lines 200-300 of the Insight/Testing/Code/Review/CMakeLists.txt
file.


      Luis



----------------------------
Alexandre GOUAILLARD wrote:
> Hi all
> 
> What is the right way to upload data for testing and call them from the
> tests?
> 
> Alex
> 
> 
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
> 


More information about the Insight-developers mailing list