From a48894959f4e7df71c77c91da5e8723b2697a79c Mon Sep 17 00:00:00 2001 From: mpech Date: Fri, 8 Jul 2011 13:13:31 +0200 Subject: [PATCH] tests for getSpacing and getInfo --- tests/tools/CMakeLists.txt | 5 +++-- tests/tools/toolTestRunner.cxx | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) 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()); -- 2.45.1