We now have a new script for uploading ITK binary testing data such as input and baseline images!
The ITK/Utilities/UploadBinaryData.sh script can also be invoked directly, without further configuration. In this case, it will prompt for your username and password to perform an authenticated upload.
The steps to upload new binary testing data are:
- Place the binary file at the desired location in the Git repository.
- Run the
git data-uploadalias, and pass in the binary file(s) as arguments. E.g.
cd ITK; git data-upload ./Modules/Core/Common/test/Input/cthead1.png.
- In the corresponding
test/CMakeLists.txtfile, use the
itk_add_testmacro and reference the relative file path with
- Re-build ITK, the
ITKDatatarget specifically, and the testing data will be
downloaded into the build tree. The path in the build tree is used in test execution.
This script can also be invoked to upload binary testing data for external ITK modules, for example.