]> Creatis software - clitk.git/commitdiff
tests for getSpacing and getInfo
authormpech <maxime.pech@insa-lyon.fr>
Fri, 8 Jul 2011 11:13:31 +0000 (13:13 +0200)
committermpech <maxime.pech@insa-lyon.fr>
Fri, 8 Jul 2011 11:13:31 +0000 (13:13 +0200)
tests/tools/CMakeLists.txt
tests/tools/toolTestRunner.cxx

index b79dab4de686793797352b92162eebe56f45b8f4..d79be30e30b6de4ef219df7d433c6e4f03ca96cc 100644 (file)
@@ -30,7 +30,8 @@ ADD_TEST(clitkImageInfo_1 ${exe} clitkImageInfo ${p}Deformation4D.mhd ${p}Deform
 ADD_TEST(clitkImageInfo_2 ${exe} clitkImageInfo ${p}Lung3D.mhd ${p}Lung3D_ref.info)
 #=========================================================
 # clitkGetSpacing
-ADD_TEST(clitkGetSpacing_1 ${exe} clitkGetSpacing ${p}Deformation4D.mhd ${p}Deformation4D_ref.spacing)
-ADD_TEST(clitkGetSpacing_2 ${exe} clitkGetSpacing ${p}Lung3D.mhd ${p}Deformation4D_ref.spacing)
+ADD_TEST(clitkGetSpacing_1 ${exe} clitkGetSpacing -i ${p}Deformation4D.mhd ${p}Deformation4D_ref.spacing)
+message(clitkGetSpacing_1 "${exe} clitkGetSpacing -i ${p}Deformation4D.mhd ${p}Deformation4D_ref.spacing")
+ADD_TEST(clitkGetSpacing_2 ${exe} clitkGetSpacing -i ${p}Lung3D.mhd ${p}Lung3D_ref.spacing)
 UNSET(exe)
 UNSET(p)
\ No newline at end of file
index 26001a0768ea92a11b3845b09bcadf19b8981e5d..192f77b200b1d7a583fe974408b7189beacc29b9 100644 (file)
@@ -79,8 +79,6 @@ int main(int argc, char** argv){
   //run the command line
   system(cmd_line.str().c_str());
   
-  exit(1);
-  
   //files should be equal, so if this is the case return success=0
   int fail = (itksys::SystemTools::FilesDiffer(outFile.c_str(), refFile))?1:0;
   remove(outFile.c_str());