From 895424ee8c74cef0d59176115f9ccc4229dea79f Mon Sep 17 00:00:00 2001 From: Julien Malik <julien.malik@c-s.fr> Date: Tue, 13 Sep 2011 16:07:34 +0200 Subject: [PATCH] ENH: remove Testing/Common (not used for now) --- Testing/Common/CMakeLists.txt | 38 -------------- Testing/Common/otbWrapperCommonTests.cxx | 33 ------------ .../Common/otbWrapperEventClassesTests.cxx | 51 ------------------- 3 files changed, 122 deletions(-) delete mode 100644 Testing/Common/CMakeLists.txt delete mode 100644 Testing/Common/otbWrapperCommonTests.cxx delete mode 100644 Testing/Common/otbWrapperEventClassesTests.cxx diff --git a/Testing/Common/CMakeLists.txt b/Testing/Common/CMakeLists.txt deleted file mode 100644 index fcf9b22a8b..0000000000 --- a/Testing/Common/CMakeLists.txt +++ /dev/null @@ -1,38 +0,0 @@ -set(CXX_TEST_PATH ${EXECUTABLE_OUTPUT_PATH}) - -set(INPUTDATA ${OTB_DATA_ROOT}/Input) -set(TEMP ${OTB-Wrapper_BINARY_DIR}/Testing/Temporary) - -if(WIN32) - add_definitions(-DWIN32) -endif(WIN32) - -set(OTB_WRAPPER_COMMON_TESTS ${CXX_TEST_PATH}/otbWrapperCommonTests) - - -add_test(coTuWrapperEventsSenderNew ${OTB_WRAPPER_COMMON_TESTS} - otbWrapperEventsSenderNew - ) - -add_test(coTuWrapperEventsListenerNew ${OTB_WRAPPER_COMMON_TESTS} - otbWrapperEventsListenerNew - ) - -add_test(coTuWrapperEventNew ${OTB_WRAPPER_COMMON_TESTS} - otbWrapperEventNew - ) - - - -# ----------------Source files CXX ----------------------------------- - -set(Wrapper_Common_SRCS -otbWrapperCommonTests.cxx - -otbWrapperEventClassesTests.cxx - -) - -include_directories(${CMAKE_SOURCE_DIR}/Code/Common) -add_executable(otbWrapperCommonTests ${Wrapper_Common_SRCS}) -target_link_libraries(otbWrapperCommonTests OTBIO OTBCommon ITKIO ITKCommon OTBTesting OTBWrapperCommon) diff --git a/Testing/Common/otbWrapperCommonTests.cxx b/Testing/Common/otbWrapperCommonTests.cxx deleted file mode 100644 index 9e2cd32e80..0000000000 --- a/Testing/Common/otbWrapperCommonTests.cxx +++ /dev/null @@ -1,33 +0,0 @@ -/*========================================================================= - - Program: ORFEO Toolbox - Language: C++ - Date: $Date$ - Version: $Revision$ - -numP - 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 otbProjectionsTest 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(otbWrapperEventsSenderNew); - REGISTER_TEST(otbWrapperEventsListenerNew); - REGISTER_TEST(otbWrapperEventNew); -} - diff --git a/Testing/Common/otbWrapperEventClassesTests.cxx b/Testing/Common/otbWrapperEventClassesTests.cxx deleted file mode 100644 index 510622b428..0000000000 --- a/Testing/Common/otbWrapperEventClassesTests.cxx +++ /dev/null @@ -1,51 +0,0 @@ -/*========================================================================= - - 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. - -=========================================================================*/ -#if defined(_MSC_VER) -#pragma warning ( disable : 4786 ) -#endif - -#include "otbWrapperEventsSender.h" -#include "otbWrapperEventsListener.h" -#include "otbWrapperEvent.h" - - -int otbWrapperEventNew(int argc, char* argv[]) -{ - typedef otb::Wrapper::Event EmptyParameterType; - EmptyParameterType event(); - - return EXIT_SUCCESS; -} - -int otbWrapperEventsSenderNew(int argc, char* argv[]) -{ - typedef otb::Wrapper::EventsSender< otb::Wrapper::Event > EmptyParameterType; - EmptyParameterType eventSender(); - - return EXIT_SUCCESS; -} - -int otbWrapperEventsListenerNew(int argc, char* argv[]) -{ - typedef otb::Wrapper::EventsListener< otb::Wrapper::Event > EmptyParameterType; - EmptyParameterType eventListener(); - - return EXIT_SUCCESS; -} - - -- GitLab