From 98868b4a6f45408c57c47d7b6f0205376973eb0d Mon Sep 17 00:00:00 2001
From: Cyrille Valladeau <cyrille.valladeau@c-s.fr>
Date: Wed, 21 Sep 2011 14:34:02 +0200
Subject: [PATCH] ENH: remove removed application tests

---
 Testing/Code/Wrappers/Python/CMakeLists.txt   | 26 -------------------
 .../Wrappers/Python/PythonAdditionTest.py     | 19 --------------
 .../Python/PythonAllocateOutputTest.py        | 17 ------------
 .../Wrappers/Python/PythonCopyInputTest.py    | 18 -------------
 .../Python/PythonInternalReaderTest.py        | 18 -------------
 5 files changed, 98 deletions(-)
 delete mode 100644 Testing/Code/Wrappers/Python/PythonAdditionTest.py
 delete mode 100644 Testing/Code/Wrappers/Python/PythonAllocateOutputTest.py
 delete mode 100644 Testing/Code/Wrappers/Python/PythonCopyInputTest.py
 delete mode 100644 Testing/Code/Wrappers/Python/PythonInternalReaderTest.py

diff --git a/Testing/Code/Wrappers/Python/CMakeLists.txt b/Testing/Code/Wrappers/Python/CMakeLists.txt
index fae774fcc9..7712470a3d 100644
--- a/Testing/Code/Wrappers/Python/CMakeLists.txt
+++ b/Testing/Code/Wrappers/Python/CMakeLists.txt
@@ -22,32 +22,6 @@ add_test( NAME pyTvRescale
                   ${OTB_DATA_ROOT}/Input/ToulouseExtract_WithGeom.tif
                   ${TEMP}/pyTvRescale)
                   
-add_test( NAME pyTvAddition
-          COMMAND ${TEST_DRIVER} Execute
-                  ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/PythonAdditionTest.py
-                  89
-                  57
-                  )
-
-add_test( NAME pyTvCopyInput
-          COMMAND ${TEST_DRIVER} Execute
-                  ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/PythonCopyInputTest.py
-                  ${OTB_DATA_ROOT}/Input/ToulouseExtract_WithGeom.tif
-                  ${TEMP}/pyTvCopyInputTest.tif
-                  )
-
-add_test( NAME pyTvAllocateOutput
-          COMMAND ${TEST_DRIVER} Execute
-                  ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/PythonAllocateOutputTest.py
-                  ${TEMP}/pyTvAllocateOutputTest.tif
-                  )
-
-add_test( NAME pyTvInternalReader
-          COMMAND ${TEST_DRIVER} Execute
-                  ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/PythonInternalReaderTest.py
-                  ${OTB_DATA_ROOT}/Input/ToulouseExtract_WithGeom.tif
-                  ${TEMP}/pyTvInternalReader.tif
-                  )
 
 add_test( NAME pyTvHyperspectralUnmixingUCLS
           COMMAND ${TEST_DRIVER} Execute
diff --git a/Testing/Code/Wrappers/Python/PythonAdditionTest.py b/Testing/Code/Wrappers/Python/PythonAdditionTest.py
deleted file mode 100644
index 3271bcf476..0000000000
--- a/Testing/Code/Wrappers/Python/PythonAdditionTest.py
+++ /dev/null
@@ -1,19 +0,0 @@
-# -*- coding: utf-8 -*-
-
-#
-#  Example on the use of the Smoothing 
-#
-from sys import argv
-import otbApplication as otb
-
-print "Available applications : " + str(otb.Registry.GetAvailableApplications())
-
-app = otb.Registry.CreateApplication("Addition")
-print app.GetParametersKeys()
-
-app.SetParameterFloat("a", float(argv[1]))
-app.SetParameterFloat("b", float(argv[2]))
-
-app.Execute()
-  
-print dir(app)
diff --git a/Testing/Code/Wrappers/Python/PythonAllocateOutputTest.py b/Testing/Code/Wrappers/Python/PythonAllocateOutputTest.py
deleted file mode 100644
index ba9b941ebf..0000000000
--- a/Testing/Code/Wrappers/Python/PythonAllocateOutputTest.py
+++ /dev/null
@@ -1,17 +0,0 @@
-# -*- coding: utf-8 -*-
-
-#
-#  Example on the use of the Rescale 
-#
-from sys import argv
-import otbApplication as otb
-
-print "Available applications : " + str(otb.Registry.GetAvailableApplications())
-
-app = otb.Registry.CreateApplication("AllocateOutput")
-print app.GetParametersKeys()
-
-app.SetParameterString("out", argv[1])
-app.ExecuteAndWriteOutput()
-  
-print dir(app)
diff --git a/Testing/Code/Wrappers/Python/PythonCopyInputTest.py b/Testing/Code/Wrappers/Python/PythonCopyInputTest.py
deleted file mode 100644
index 45da080aba..0000000000
--- a/Testing/Code/Wrappers/Python/PythonCopyInputTest.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# -*- coding: utf-8 -*-
-
-#
-#  Example on the use of the Rescale 
-#
-from sys import argv
-import otbApplication as otb
-
-print "Available applications : " + str(otb.Registry.GetAvailableApplications())
-
-app = otb.Registry.CreateApplication("CopyInput")
-print app.GetParametersKeys()
-
-app.SetParameterString("in", argv[1])
-app.SetParameterString("out", argv[2])
-app.ExecuteAndWriteOutput()
-  
-print dir(app)
diff --git a/Testing/Code/Wrappers/Python/PythonInternalReaderTest.py b/Testing/Code/Wrappers/Python/PythonInternalReaderTest.py
deleted file mode 100644
index 1abe99c1ac..0000000000
--- a/Testing/Code/Wrappers/Python/PythonInternalReaderTest.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# -*- coding: utf-8 -*-
-
-#
-#  Example on the use of the Rescale 
-#
-from sys import argv
-import otbApplication as otb
-
-print "Available applications : " + str(otb.Registry.GetAvailableApplications())
-
-app = otb.Registry.CreateApplication("InternalReader")
-print app.GetParametersKeys()
-
-app.SetParameterString("inname", argv[1])
-app.SetParameterString("out", argv[2])
-app.ExecuteAndWriteOutput()
-  
-print dir(app)
-- 
GitLab