Skip to content
Snippets Groups Projects
Commit 8303c36f authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

TEST: adding example test

parent e248a4b3
No related branches found
No related tags found
No related merge requests found
......@@ -109,6 +109,7 @@ IF( NOT OTB_DISABLE_CXX_TESTING AND BUILD_TESTING )
SET(BASELINE ${OTB_DATA_ROOT}/Baseline/Examples/IO)
SET(DATA ${OTB_DATA_ROOT}/Input)
SET(INPUTDATA ${OTB_SOURCE_DIR}/Examples/Data)
SET(TEMP ${OTB_BINARY_DIR}/Testing/Temporary)
......@@ -147,7 +148,20 @@ ADD_TEST(DEMToImageGeneratorTest ${EXE_TESTS}
-0.002
${INPUTDATA}/DEM_srtm
)
IF(ITK_USE_REVIEW)
ADD_TEST(LidarToImageExampleTest ${EXE_TESTS}
--compare-image ${TOL} ${BASELINE}/lidar-image-4.hdr
${TEMP}/lidar-image-4.hdr
LidarToImageExampleTest
${DATA}/TO_core_last_zoom.las
${TEMP}/lidar-image-4.hdr
${TEMP}/lidar-image-4.png
1.0
5
4
)
ENDIF(ITK_USE_REVIEW)
ADD_EXECUTABLE(otbIOExamplesTests otbIOExamplesTests.cxx)
TARGET_LINK_LIBRARIES(otbIOExamplesTests otbossim OTBBasicFilters OTBCommon OTBDisparityMap OTBIO OTBSpatialReasoning OTBChangeDetection OTBFeatureExtraction OTBLearning OTBMultiScale OTBProjections ITKIO ITKAlgorithms ITKStatistics ITKCommon ${OTB_IO_UTILITIES_DEPENDENT_LIBRARIES})
......
......@@ -22,13 +22,13 @@
// Software Guide : BeginCommandLineArgs
// INPUTS: {TO_core_last_zoom.las}
// OUTPUTS: {lidar-image-4.hdr}, {lidar-image-4.png}
// 10.0 5 4
// 1.0 5 4
// Software Guide : EndCommandLineArgs
// Software Guide : BeginCommandLineArgs
// INPUTS: {TO_core_last_zoom.las}
// OUTPUTS: {lidar-image-8.hdr}, {lidar-image-8.png}
// 10.0 5 8
// 1.0 5 8
// Software Guide : EndCommandLineArgs
......
......@@ -27,6 +27,7 @@ void RegisterTests()
{
REGISTER_TEST(ExtractROITest);
REGISTER_TEST(DEMToImageGeneratorTest);
REGISTER_TEST(LidarToImageExampleTest);
}
#undef main
......@@ -37,3 +38,6 @@ REGISTER_TEST(DEMToImageGeneratorTest);
#define main DEMToImageGeneratorTest
#include "DEMToImageGenerator.cxx"
#undef main
#define main LidarToImageExampleTest
#include "LidarToImageExample.cxx"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment