[Insight-developers] Trouble adding data

M Stauffer (V) mstauff at verizon.net
Thu Jul 21 11:50:55 EDT 2011


Hi,

I'm having trouble adding test data using the new method described here:
http://www.itk.org/Wiki/ITK/Git/Develop/Data

But it's not working. After doing all the steps and pushing to gerrit, I
don't get the data file in build/ExternalData after configuring with
cmake or doing a build of the test driver that references the data.

Here's what I did:

Add Core/Common/test/Baseline/outNoInv.mhd (I just grabbed the first
tiny file I found for testing)

Add ref to DATA{Baseline/outNoInv.mhd} in CMakeLists.txt, to a test in
ITKCommon1TestDriver

Run cmake . :
-- Linked Modules/Core/Common/test/Baseline/outNoInv.mhd.md5 to
ExternalData MD5/881fc5ee940d84524e03f2a082807a39

Found md5 file :
./Modules/Core/Common/test/Baseline/.ExternalData_MD5_881fc5ee940d84524e
03f2a082807a39

Added files to commit :
#	new file:   Modules/Core/Common/test/Baseline/outNoInv.mhd.md5
#	modified:   Modules/Core/Common/test/CMakeLists.txt

git commit :
Modules/Core/Common/test/Baseline/outNoInv.mhd.md5: Added content to Git
at refs/data/MD5/881fc5ee940d84524e03f2a082807a39
Modules/Core/Common/test/Baseline/outNoInv.mhd.md5: Added content to
local store at .ExternalData/MD5/881fc5ee940d84524e03f2a082807a39
Content link Modules/Core/Common/test/Baseline/outNoInv.mhd.md5 ->
.ExternalData/MD5/881fc5ee940d84524e03f2a082807a39

ls .ExternalData/MD5/ :
44b09185340eaa8fb031c1ff04f76cdf  881fc5ee940d84524e03f2a082807a39
763b7b24e7899cb99cfed88df281f141 

git gerrit-push:
To mstauff at review.source.kitware.com:ITK
*
0a93aec2241fe78297c0a597349f01a23a5e8975:refs/data/commits/0a93aec2241fe
78297c0a597349f01a23a5e8975	[new branch]
*	HEAD:refs/for/master/TestAddData	[new branch]
Done
Pushed refs/data and removed local copy:
  MD5/881fc5ee940d84524e03f2a082807a39

Change set: http://review.source.kitware.com/#change,2161

Wait 15 minutes...

build ITKCommon1TestDriver - no build/ExternalData dir created
rm CMakeCache.txt
run ccmake - no build/ExternalData dir created
build ITKCommon1TestDriver - no build/ExternalData dir created



More information about the Insight-developers mailing list