From: mpech Date: Fri, 8 Jul 2011 11:13:31 +0000 (+0200) Subject: tests for getSpacing and getInfo X-Git-Tag: v1.3.0~295^2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=a48894959f4e7df71c77c91da5e8723b2697a79c;p=clitk.git tests for getSpacing and getInfo --- diff --git a/tests/tools/CMakeLists.txt b/tests/tools/CMakeLists.txt index b79dab4..d79be30 100644 --- a/tests/tools/CMakeLists.txt +++ b/tests/tools/CMakeLists.txt @@ -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 diff --git a/tests/tools/toolTestRunner.cxx b/tests/tools/toolTestRunner.cxx index 26001a0..192f77b 100644 --- a/tests/tools/toolTestRunner.cxx +++ b/tests/tools/toolTestRunner.cxx @@ -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());