Skip to content
Snippets Groups Projects
Commit 66dec358 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH : add Tu test for otbGISTableSource

parent 6e584cc7
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ protected:
/** Constructor */
GISConnectionImplementation(){};
/** Destructor */
virtual ~GISConnectionImplementation(){}
virtual ~GISConnectionImplementation(){};
private:
GISConnectionImplementation(const Self &); //purposely not implemented
......
......@@ -35,6 +35,7 @@ SET(COMMON_TESTS11 ${CXX_TEST_PATH}/otbCommonTests11)
IF(OTB_COMPILE_MUPARSER)
SET(COMMON_TESTS12 ${CXX_TEST_PATH}/otbCommonTests12)
ENDIF(OTB_COMPILE_MUPARSER)
SET(COMMON_TESTS8 ${CXX_TEST_PATH}/otbCommonTests13)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ otbCommonTests1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......@@ -910,6 +911,12 @@ Bidfeud0
)
# ---------------- otbGISTableSource ---------------------#
ADD_TEST(coTuLabelMapSourceNew ${COMMON_TESTS10}
otbGISTableSourceNew
)
ENDIF(OTB_USE_PQXX)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......@@ -1003,6 +1010,14 @@ IF(OTB_COMPILE_MUPARSER)
ENDIF(OTB_COMPILE_MUPARSER)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ otbCommonTests13 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ------- Fichiers sources CXX -----------------------------------
SET(BasicCommon_SRCS1
otbCommonTests1.cxx
......@@ -1143,6 +1158,7 @@ otbGISTableToLabelMapFilterNew.cxx
otbGISTableToVectorDataFilterNew.cxx
otbLabelMapToGISTableFilter.cxx
otbGISTableToVectorDataFilter.cxx
otbGISTableSourceNew.cxx
)
ENDIF(OTB_USE_PQXX)
......@@ -1172,6 +1188,11 @@ otbParserTest.cxx
)
ENDIF(OTB_COMPILE_MUPARSER)
SET(BasicCommon_SRCS13
otbCommonTests13.cxx
)
OTB_ADD_EXECUTABLE(otbCommonTests1 "${BasicCommon_SRCS1}" "OTBIO;OTBTesting")
OTB_ADD_EXECUTABLE(otbCommonTests2 "${BasicCommon_SRCS2}" "OTBIO;OTBTesting")
OTB_ADD_EXECUTABLE(otbCommonTests3 "${BasicCommon_SRCS3}" "OTBIO;OTBTesting")
......@@ -1194,4 +1215,6 @@ IF(OTB_COMPILE_MUPARSER)
OTB_ADD_EXECUTABLE(otbCommonTests12 "${BasicCommon_SRCS12}" "OTBIO;OTBTesting")
ENDIF(OTB_COMPILE_MUPARSER)
OTB_ADD_EXECUTABLE(otbCommonTests13 "${BasicCommon_SRCS13}" "OTBIO;OTBTesting")
ENDIF( NOT OTB_DISABLE_CXX_TESTING AND BUILD_TESTING )
......@@ -39,4 +39,5 @@ void RegisterTests()
REGISTER_TEST(otbGISTableToLabelMapFilterNew);
REGISTER_TEST(otbLabelMapToGISTableFilter);
REGISTER_TEST(otbGISTableToVectorDataFilter);
REGISTER_TEST(otbGISTableSourceNew);
}
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
// this file defines the otbCommonTest for the test driver
// and all it expects is that you have a function called RegisterTests
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
#include "otbTestMain.h"
void RegisterTests()
{
// REGISTER_TEST(otbGISTableSourceNew);
}
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#include "itkExceptionObject.h"
#include "otbMacro.h"
#include "otbGISTableSource.h"
#include "otbGISTable.h"
#include "otbPostGISConnectionImplementation.h"
int otbGISTableSourceNew(int argc, char * argv[])
{
typedef otb::PostGISConnectionImplementation GISConnectionType;
typedef otb::GISTable<GISConnectionType, double, 2> GISTableType;
typedef otb::GISTableSource<GISTableType> GISTableSourceType;
//Instantiation
GISTableSourceType::Pointer object = GISTableSourceType::New();
return EXIT_SUCCESS;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment