[Insight-developers] ITK v4: Best practice for adding test data?

Johnson, Hans J hans-johnson at uiowa.edu
Sat Jun 11 17:05:00 EDT 2011


Brad,

I'm trying to follow the instructions you provided in:
     http://www.itk.org/mailman/private/insight-developers/2011-June/019048.html

The data is needed for the FEM Framework.

[johnsonhj at hjhomebuildbox ITK-gcc-4.2]$ cmake ../ITK -DExternalData_LINK_CONTENT:STRING=MD5

CMake Warning: The variable, 'ExternalData_LINK_CONTENT', specified manually, was not used during the generation.
-- Build files have been written to: /Users/johnsonhj/Dashboards/src/ITK-gcc-4.2


QUESTIONS:

  1.  Should this be expected to work?
  2.  Do you have any suggestions on how to debug?

diff --git a/Modules/Numerics/FEM/test/CMakeLists.txt b/Modules/Numerics/FEM/test/CMakeLists.txt
index a802055..259dbdc 100644
--- a/Modules/Numerics/FEM/test/CMakeLists.txt
+++ b/Modules/Numerics/FEM/test/CMakeLists.txt
@@ -109,65 +109,65 @@ itk_add_test(NAME itkFEMPArrayTest
 # 3D Element Tests
 add_test(NAME itkFEMC0HexahedralElement-NodalLoads-BCs
       COMMAND ITK-FEMTestDriver itkFEMElement3DTest
-              ${ITK_DATA_ROOT}/Input/FEM/hexa2.meta)
+              DATA{Input/FEM/hexa2.meta})
 add_test(NAME itkFEMC0HexahedralElement-NoLoads
       COMMAND ITK-FEMTestDriver itkFEMElement3DTest
-              ${ITK_DATA_ROOT}/Input/FEM/hexa3.meta)
+              DATA{Input/FEM/hexa3.meta})
 add_test(NAME itkFEMC0HexahedralElement-GravityLoad-BCs
       COMMAND ITK-FEMTestDriver itkFEMElement3DTest
-              ${ITK_DATA_ROOT}/Input/FEM/hexa4-grav.meta)
+              DATA{Input/FEM/hexa4-grav.meta})
 add_test(NAME itkFEMC0TetrahedralElement-NodalLoads-BCs
       COMMAND ITK-FEMTestDriver itkFEMElement3DTest
-              ${ITK_DATA_ROOT}/Input/FEM/tetra2.meta)
+              DATA{Input/FEM/tetra2.meta})
 add_test(NAME itkFEMC0TetrahedralElement-NoLoads
       COMMAND ITK-FEMTestDriver itkFEMElement3DTest
-              ${ITK_DATA_ROOT}/Input/FEM/tetra3.meta)
+              DATA{Input/FEM/tetra3.meta})
 add_test(NAME itkFEMC0TetrahedralElement-GravityLoad-BCs
       COMMAND ITK-FEMTestDriver itkFEMElement3DTest
-              ${ITK_DATA_ROOT}/Input/FEM/tetra4-grav.meta)
+              DATA{Input/FEM/tetra4-grav.meta})



Any hints would be appreciated.

Thanks,
Hans



________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110611/f52bd8e9/attachment.htm>


More information about the Insight-developers mailing list