Commit 7b781640 authored by Julien Michel's avatar Julien Michel

TEST: Restoring tests in foreach loop

parent f804900b
......@@ -1281,3 +1281,51 @@ foreach( file ${GenericConversionChecking_INPUTS} )
1 # Verbose
)
endforeach()
set(VectorDataIntoImage_FILES
LARGEINPUT{QB_EXTRACT/qb_extract_00_withgeom.tif}
LARGEINPUT{QB_EXTRACT/qb_extract_00_withgeom_ENVI.hdr}
LARGEINPUT{QB_EXTRACT/qb_extract_11_withgeom.tif}
LARGEINPUT{QB_EXTRACT/qb_extract_11_withgeom_ENVI.hdr}
LARGEINPUT{QB_EXTRACT/qb_utm.tif}
LARGEINPUT{QB_EXTRACT/qb_utm_withgeom.tif}
LARGEINPUT{QB_EXTRACT/qb_wgs84.tif}
LARGEINPUT{QB_EXTRACT/qb_wgs84_withgeom.tif}
LARGEINPUT{QB_EXTRACT/qb_wgs84_worldfile.tif}
)
set( VectorDataIntoImage_TESTNB 0)
foreach( file ${VectorDataIntoImage_FILES} )
math(EXPR VectorDataIntoImage_TESTNB "${VectorDataIntoImage_TESTNB} + 1")
otb_add_test(NAME prTvVectorDataIntoImageProjectionFilter_${VectorDataIntoImage_TESTNB} COMMAND otbProjectionTestDriver
otbVectorDataIntoImageProjectionFilterTest
${file}
${OTB_DATA_LARGEINPUT_ROOT}/VECTOR/MidiPyrenees/natural.shp
${INPUTDATA}/DEM/srtm_directory
3 )
endforeach()
set(SENSOR_TYPES
"QUICKBIRD/TOULOUSE/000000128955_01_P001_PAN/02APR01105228-P1BS-000000128955_01_P001.TIF"
"GEOEYE/LES_ROCHES/po_350134_bgrn_0000000.tif"
"WORLDVIEW2/ROME/WV-2_standard_8band_bundle_16bit/052298844010_01_P001_MUL/09DEC10103019-M2AS-052298844010_01_P001.TIF"
)
foreach( file ${SENSOR_TYPES})
# Get the sensor name
set(sharp_regexp "([0-9A-Za-z_]*)[ ]*/[ ]*(.*)")
string(REGEX REPLACE "${sharp_regexp}" "\\1" sensor_name "${file}")
# Tests
otb_add_test(NAME prTvotbGenericRSResampleImageFilterFromMap_${sensor_name} COMMAND otbProjectionTestDriver
--compare-image ${EPSILON_4}
${BASELINE}/prTvotbGenericRSResampleImageFilterOutputFromMap_${sensor_name}.tif
${TEMP}/prTvotbGenericRSResampleImageFilterOutputFromMap_${sensor_name}.tif
otbGenericRSResampleImageFilterFromMap
LARGEINPUT{${file}}
15
0
${TEMP}/prTvotbGenericRSResampleImageFilterOutputFromMap_${sensor_name}.tif
)
endforeach()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment