Commit f966e9ed authored by Manuel Grizonnet's avatar Manuel Grizonnet

Merge branch '1649-remove-New-tests' into 'develop'

Remove  all *New tests

See merge request !173
parents cb168a3c 2c8a813e
......@@ -16,16 +16,6 @@ A simple example is given below:
#include "otbBandMathImageFilterX.h"
#include "otbVectorImage.h"
int otbBandMathImageFilterXNew( int itkNotUsed(argc), char* itkNotUsed(argv) [])
{
typedef double PixelType;
typedef otb::VectorImage<PixelType, 2> ImageType;
typedef otb::BandMathImageFilterX<ImageType> FilterType;
FilterType::Pointer filter = FilterType::New();
return EXIT_SUCCESS;
}
As we can see, the new band math filter works with the class
otb::VectorImage.
......
......@@ -193,12 +193,6 @@ otb_add_test(NAME prTvossimElevManagerTest4 COMMAND otbOSSIMAdaptersTestDriver
# LARGEINPUT{TERRASARX/2008-03-10_GrandCanyon_SSC//TSX1_SAR__SSC______SM_S_SRA_20080310T133220_20080310T133228/TSX1_SAR__SSC______SM_S_SRA_20080310T133220_20080310T133228.xml}
# ${TEMP}/uaTvPlatformPositionComputeBaselineTest.txt)
otb_add_test(NAME uaTvGeometricSarSensorModelAdapterNew COMMAND otbOSSIMAdaptersTestDriver
otbGeometricSarSensorModelAdapterNewTest)
otb_add_test(NAME uaTvPlatformPositionComputeBaselineNew COMMAND otbOSSIMAdaptersTestDriver
otbPlatformPositionComputeBaselineNewTest)
otb_add_test(NAME uaTvDEMHandler_AboveEllipsoid_NoSRTM_NoGeoid_NoData COMMAND otbOSSIMAdaptersTestDriver
otbDEMHandlerTest
no
......
......@@ -25,13 +25,6 @@
#include "otbImageFileReader.h"
#include "otbGeometricSarSensorModelAdapter.h"
int otbGeometricSarSensorModelAdapterNewTest(int itkNotUsed(argc), char* itkNotUsed(argv)[])
{
typedef otb::GeometricSarSensorModelAdapter SarSensorModelType;
SarSensorModelType::Pointer masterPlatform = SarSensorModelType::New();
return EXIT_SUCCESS;
}
int otbGeometricSarSensorModelAdapterTest(int argc, char* argv[])
{
if (argc != 3)
......
......@@ -27,9 +27,7 @@ void RegisterTests()
REGISTER_TEST(otbMapProjectionAdapterTest);
REGISTER_TEST(otbOssimElevManagerTest2);
REGISTER_TEST(otbOssimElevManagerTest4);
REGISTER_TEST(otbGeometricSarSensorModelAdapterNewTest);
REGISTER_TEST(otbGeometricSarSensorModelAdapterTest);
REGISTER_TEST(otbPlatformPositionComputeBaselineNewTest);
REGISTER_TEST(otbPlatformPositionComputeBaselineTest);
REGISTER_TEST(otbDEMHandlerTest);
REGISTER_TEST(otbRPCSolverAdapterTest);
......
......@@ -22,13 +22,6 @@
#include "otbImageFileReader.h"
#include "otbPlatformPositionAdapter.h"
int otbPlatformPositionComputeBaselineNewTest(int itkNotUsed(argc), char* itkNotUsed(argv)[])
{
typedef otb::PlatformPositionAdapter PlatformType;
PlatformType::Pointer masterPlatform = PlatformType::New();
return EXIT_SUCCESS;
}
int otbPlatformPositionComputeBaselineTest(int argc, char* argv[])
{
if (argc != 3)
......
......@@ -22,17 +22,13 @@ otb_module_test()
set(OTBCommonTests
otbCommonTestDriver.cxx
otbVariableLengthVectorConverter.cxx
otbImageRegionTileMapSplitter.cxx
otbImageRegionAdaptativeSplitter.cxx
otbRGBAPixelConverter.cxx
otbRectangle.cxx
otbImageRegionNonUniformMultidimensionalSplitterNew.cxx
otbSystemTest.cxx
otbImageRegionSquareTileSplitter.cxx
otbImageRegionTileMapSplitterNew.cxx
otbImageRegionNonUniformMultidimensionalSplitter.cxx
otbRectangleNew.cxx
otbConfigurationManagerTest.cxx
otbStandardFilterWatcherNew.cxx
otbStandardOneLineFilterWatcherTest.cxx
......@@ -47,10 +43,6 @@ otb_module_target_label(otbCommonTestDriver)
# Tests Declaration
otb_add_test(NAME coTuVariableLengthVectorConverter COMMAND otbCommonTestDriver
otbVariableLengthVectorConverterNew
)
otb_add_test(NAME coTvImageRegionTileMapSplitter COMMAND otbCommonTestDriver
--compare-ascii ${NOTOL}
${BASELINE_FILES}/coImageRegionTileMapSplitter.txt
......@@ -59,10 +51,6 @@ otb_add_test(NAME coTvImageRegionTileMapSplitter COMMAND otbCommonTestDriver
${TEMP}/coImageRegionTileMapSplitter.txt
)
otb_add_test(NAME coTuImageRegionAdaptativeSplitterNew COMMAND otbCommonTestDriver
otbImageRegionAdaptativeSplitterNew)
otb_add_test(NAME coTvImageRegionAdaptativeSplitterStripSmallStream COMMAND otbCommonTestDriver
--compare-ascii ${NOTOL}
${BASELINE_FILES}/coTvImageRegionAdaptativeSplitterStripSmallStreamOutput.txt
......@@ -129,10 +117,6 @@ otb_add_test(NAME coTvImageRegionAdaptativeSplitterDivideBlock COMMAND otbCommon
${TEMP}/coTvImageRegionAdaptativeSplitterDivideBlock.txt
)
otb_add_test(NAME coTuRGBAPixelConverter COMMAND otbCommonTestDriver
otbRGBAPixelConverterNew
)
otb_add_test(NAME coTvRGBAPixelConverter COMMAND otbCommonTestDriver
otbRGBAPixelConverter
)
......@@ -146,22 +130,6 @@ otb_add_test(NAME coTvRectangle COMMAND otbCommonTestDriver
2.12 2.35 12.54 2.45 3. 0.15 1. 1.
)
otb_add_test(NAME coTuImageRegionNonUniformMultidimensionalSplitterNew COMMAND otbCommonTestDriver
otbImageRegionNonUniformMultidimensionalSplitterNew
)
otb_add_test(NAME coTuSystemTests_IsA_Methods COMMAND otbCommonTestDriver
otbSystemTest
${OTB_DATA_ROOT}/README-OTB-Data
......@@ -177,10 +145,6 @@ otb_add_test(NAME coTvParseHdfSubsetName COMMAND otbCommonTestDriver
otb_add_test(NAME coTvParseHdfFileName COMMAND otbCommonTestDriver
otbParseHdfFileName)
otb_add_test(NAME coTuImageRegionSquareTileSplitterNew COMMAND otbCommonTestDriver
otbImageRegionSquareTileSplitterNew
)
otb_add_test(NAME coTvImageRegionSquareTileSplitter COMMAND otbCommonTestDriver
--compare-ascii ${NOTOL}
${BASELINE_FILES}/coImageRegionSquareTileSplitter.txt
......@@ -189,18 +153,6 @@ otb_add_test(NAME coTvImageRegionSquareTileSplitter COMMAND otbCommonTestDriver
${TEMP}/coImageRegionSquareTileSplitter.txt
)
otb_add_test(NAME coTuImageRegionTileMapSplitterNew COMMAND otbCommonTestDriver
otbImageRegionTileMapSplitterNew
)
otb_add_test(NAME coTvImageRegionNonUniformMultidimensionalSplitter COMMAND otbCommonTestDriver
--compare-ascii ${NOTOL}
${BASELINE_FILES}/coImageRegionNonUniformMultidimensionalSplitter.txt
......@@ -213,10 +165,6 @@ otb_add_test(NAME coTvImageRegionNonUniformMultidimensionalSplitter COMMAND otbC
${TEMP}/coImageRegionNonUniformMultidimensionalSplitter.txt
)
otb_add_test(NAME coTuRectangleNew COMMAND otbCommonTestDriver
otbRectangleNew)
otb_add_test(NAME coTvConfigurationManagerDefault COMMAND otbCommonTestDriver
otbConfigurationManagerTest
128)
......
......@@ -22,23 +22,16 @@
void RegisterTests()
{
REGISTER_TEST(otbVariableLengthVectorConverterNew);
REGISTER_TEST(otbImageRegionTileMapSplitter);
REGISTER_TEST(otbImageRegionAdaptativeSplitterNew);
REGISTER_TEST(otbImageRegionAdaptativeSplitter);
REGISTER_TEST(otbRGBAPixelConverterNew);
REGISTER_TEST(otbRGBAPixelConverter);
REGISTER_TEST(otbRectangle);
REGISTER_TEST(otbImageRegionNonUniformMultidimensionalSplitterNew);
REGISTER_TEST(otbSystemTest);
REGISTER_TEST(otbStopwatchTest);
REGISTER_TEST(otbParseHdfSubsetName);
REGISTER_TEST(otbParseHdfFileName);
REGISTER_TEST(otbImageRegionSquareTileSplitterNew);
REGISTER_TEST(otbImageRegionSquareTileSplitter);
REGISTER_TEST(otbImageRegionTileMapSplitterNew);
REGISTER_TEST(otbImageRegionNonUniformMultidimensionalSplitter);
REGISTER_TEST(otbRectangleNew);
REGISTER_TEST(otbConfigurationManagerTest);
REGISTER_TEST(otbStandardFilterWatcherNew);
REGISTER_TEST(otbStandardOneLineFilterWatcherTest);
......
......@@ -27,14 +27,6 @@ typedef SplitterType::RegionType RegionType;
typedef RegionType::SizeType SizeType;
typedef RegionType::IndexType IndexType;
int otbImageRegionAdaptativeSplitterNew(int itkNotUsed(argc), char * itkNotUsed(argv) [])
{
SplitterType::Pointer splitter = SplitterType::New();
std::cout<<splitter<<std::endl;
return EXIT_SUCCESS;
}
int otbImageRegionAdaptativeSplitter(int itkNotUsed(argc), char * argv[])
{
......
/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "otbImageRegionNonUniformMultidimensionalSplitter.h"
int otbImageRegionNonUniformMultidimensionalSplitterNew(int itkNotUsed(argc), char * itkNotUsed(argv) [])
{
const int Dimension = 2;
typedef otb::ImageRegionNonUniformMultidimensionalSplitter<Dimension> FilterType;
FilterType::Pointer filter = FilterType::New();
std::cout << filter << std::endl;
return EXIT_SUCCESS;
}
......@@ -28,14 +28,6 @@ typedef SquareTileSplitterType::SizeType SizeType;
typedef SquareTileSplitterType::RegionType RegionType;
int otbImageRegionSquareTileSplitterNew(int itkNotUsed(argc), char * itkNotUsed(argv) [])
{
SquareTileSplitterType::Pointer splitter = SquareTileSplitterType::New();
std::cout << splitter << std::endl;
return EXIT_SUCCESS;
}
int TestSplitter(const RegionType& region, unsigned int PixelSize, unsigned int MaxTileSize, std::ostream& os)
{
......
/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "otbImageRegionTileMapSplitter.h"
int otbImageRegionTileMapSplitterNew(int itkNotUsed(argc), char * itkNotUsed(argv) [])
{
const int Dimension = 2;
typedef otb::ImageRegionTileMapSplitter<Dimension> FilterType;
FilterType::Pointer filter = FilterType::New();
std::cout << filter << std::endl;
return EXIT_SUCCESS;
}
......@@ -24,31 +24,6 @@
#include "otbRGBAPixelConverter.h"
int otbRGBAPixelConverterNew(int itkNotUsed(argc), char * itkNotUsed(argv) [])
{
typedef unsigned char PixelType0;
typedef double PixelType1;
typedef itk::RGBAPixel<unsigned char> PixelType2;
typedef itk::RGBPixel<double> PixelType3;
typedef otb::RGBAPixelConverter<PixelType0, PixelType0> ConverterType0;
typedef otb::RGBAPixelConverter<PixelType1, PixelType1> ConverterType1;
typedef otb::RGBAPixelConverter<PixelType0, PixelType2> ConverterType2;
typedef otb::RGBAPixelConverter<PixelType0, PixelType3> ConverterType3;
// Instantiating object
ConverterType0::Pointer converter0 = ConverterType0::New();
ConverterType1::Pointer converter1 = ConverterType1::New();
ConverterType2::Pointer converter2 = ConverterType2::New();
ConverterType3::Pointer converter3 = ConverterType3::New();
std::cout << converter0 << std::endl;
std::cout << converter1 << std::endl;
std::cout << converter2 << std::endl;
std::cout << converter3 << std::endl;
return EXIT_SUCCESS;
}
int otbRGBAPixelConverter(int itkNotUsed(argc), char * itkNotUsed(argv) [])
{
......
/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "otbRectangle.h"
int otbRectangleNew(int itkNotUsed(argc), char * itkNotUsed(argv) [])
{
typedef otb::Rectangle<> RectangleType;
//Instantiating object
RectangleType::Pointer polygon = RectangleType::New();
std::cout << polygon << std::endl;
return EXIT_SUCCESS;
}