From 88e094836ddae3d8e22b0b0106c42edd764b29e3 Mon Sep 17 00:00:00 2001 From: Victor Poughon <victor.poughon@cnes.fr> Date: Fri, 21 Dec 2018 09:47:53 +0100 Subject: [PATCH] TEST: remove otbImageFileReaderServerName.cxx --- Modules/IO/ImageIO/test/CMakeLists.txt | 2 - .../test/otbImageFileReaderServerName.cxx | 54 ------------------- .../IO/ImageIO/test/otbImageIOTestDriver.cxx | 1 - 3 files changed, 57 deletions(-) delete mode 100644 Modules/IO/ImageIO/test/otbImageFileReaderServerName.cxx diff --git a/Modules/IO/ImageIO/test/CMakeLists.txt b/Modules/IO/ImageIO/test/CMakeLists.txt index faddedb55c..4e4ce8361b 100644 --- a/Modules/IO/ImageIO/test/CMakeLists.txt +++ b/Modules/IO/ImageIO/test/CMakeLists.txt @@ -77,8 +77,6 @@ otbMultiImageFileWriterTest.cxx otbWriteGeomFile.cxx ) -set(OTBImageIOTests ${OTBImageIOTests} otbImageFileReaderServerName.cxx) - add_executable(otbImageIOTestDriver ${OTBImageIOTests}) target_link_libraries(otbImageIOTestDriver ${OTBImageIO-Test_LIBRARIES}) otb_module_target_label(otbImageIOTestDriver) diff --git a/Modules/IO/ImageIO/test/otbImageFileReaderServerName.cxx b/Modules/IO/ImageIO/test/otbImageFileReaderServerName.cxx deleted file mode 100644 index c7bb4c2b17..0000000000 --- a/Modules/IO/ImageIO/test/otbImageFileReaderServerName.cxx +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 "otbImage.h" -#include "itkMacro.h" -#include <iostream> - -#include "otbImageFileReader.h" - -int otbImageFileReaderServerName(int itkNotUsed(argc), char* argv[]) -{ - // Verify the number of parameters in the command line - const char * inputFilename = argv[1]; - - typedef unsigned char InputPixelType; - const unsigned int Dimension = 2; - - typedef otb::Image<InputPixelType, Dimension> InputImageType; - typedef otb::ImageFileReader<InputImageType> ReaderType; - - ReaderType::Pointer reader = ReaderType::New(); - - reader->SetFileName(inputFilename); - - reader->GenerateOutputInformation(); - - if (reader->GetOutput()->GetImageKeywordlist().GetSize() == 0) - { - std::cerr << "Error: Keyword list is empty " << std::endl; - return EXIT_FAILURE; - } - - return EXIT_SUCCESS; -} diff --git a/Modules/IO/ImageIO/test/otbImageIOTestDriver.cxx b/Modules/IO/ImageIO/test/otbImageIOTestDriver.cxx index 4915a8e535..fc2c0f51e2 100644 --- a/Modules/IO/ImageIO/test/otbImageIOTestDriver.cxx +++ b/Modules/IO/ImageIO/test/otbImageIOTestDriver.cxx @@ -152,5 +152,4 @@ void RegisterTests() REGISTER_TEST(otbImageFileWriterOptBandTest); REGISTER_TEST(otbMultiImageFileWriterTest); REGISTER_TEST(otbWriteGeomFile); - REGISTER_TEST(otbImageFileReaderServerName); } -- GitLab