From 6f0adcc6b53d17c213e8e4b1b52605205d53ac4a Mon Sep 17 00:00:00 2001 From: Julien Malik <julien.malik@c-s.fr> Date: Sun, 22 Feb 2015 16:34:24 +0100 Subject: [PATCH] COMP: fix tolerance definition in Examples tests --- Examples/IO/test/CMakeLists.txt | 2 +- Examples/Simulation/test/CMakeLists.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Examples/IO/test/CMakeLists.txt b/Examples/IO/test/CMakeLists.txt index 3bea063b8e..769c795760 100644 --- a/Examples/IO/test/CMakeLists.txt +++ b/Examples/IO/test/CMakeLists.txt @@ -79,7 +79,7 @@ otb_add_test(NAME ioTeImageToKmzAndMapFileProductExample COMMAND ${OTB_TEST_DRIV ) otb_add_test(NAME ioTeTileMapImageIOExampleTest COMMAND ${OTB_TEST_DRIVER} - --compare-image ${HIGHTOL} + --compare-image 10.0 ${BASELINE}/openStreetMap.png ${TEMP}/openStreetMap.png Execute $<TARGET_FILE:TileMapImageIOExample> diff --git a/Examples/Simulation/test/CMakeLists.txt b/Examples/Simulation/test/CMakeLists.txt index e94dea6bec..c0f9aafded 100644 --- a/Examples/Simulation/test/CMakeLists.txt +++ b/Examples/Simulation/test/CMakeLists.txt @@ -4,7 +4,7 @@ set(INPUTDATA ${OTB_DATA_ROOT}/Examples) # ------- ProsailModelExampleTest ---------- otb_add_test(NAME siTvProsailModelExampleTest COMMAND ${OTB_TEST_DRIVER} - --compare-ascii ${TOL_3} + --compare-ascii ${EPSILON_3} ${BASELINE}/siTvProsailModelExampleTest.txt ${TEMP}/siTvProsailModelExampleTest.txt Execute $<TARGET_FILE:ProsailModel> @@ -27,7 +27,7 @@ otb_add_test(NAME siTvProsailModelExampleTest COMMAND ${OTB_TEST_DRIVER} otb_add_test(NAME siTvLAIFromNDVIImageTransfromExampleTest COMMAND ${OTB_TEST_DRIVER} - --compare-image ${TOL_8} + --compare-image ${EPSILON_8} ${BASELINE_IMAGES_OTB}/raRAndNIRVegetationIndex_LAIFromNDVIFormosat2_verySmallFSATSWcRcNir.tif ${TEMP}/siTvLAIFromNDVIImageTransfromExampleTest_verySmallFSATSW.tif Execute $<TARGET_FILE:LAIFromNDVIImageTransform> @@ -40,7 +40,7 @@ otb_add_test(NAME siTvLAIFromNDVIImageTransfromExampleTest COMMAND ${OTB_TEST_D ) otb_add_test(NAME siTvLAIAndPROSAILToSensorResponseExampleTest COMMAND ${OTB_TEST_DRIVER} ---compare-image ${TOL_8} +--compare-image ${EPSILON_8} ${BASELINE_IMAGES_APPLI}/siTvLAIAndPROSAILToSensorResponseSmall.tif ${TEMP}/siTvLAIAndPROSAILToSensorResponseSmall.tif Execute $<TARGET_FILE:LAIAndPROSAILToSensorResponse> -- GitLab