From 258f38cbdfb6fd391bfe509e936fdcc01227b22a Mon Sep 17 00:00:00 2001
From: Thomas Feuvrier <thomas.feuvrier@c-s.fr>
Date: Tue, 21 Mar 2006 08:49:01 +0000
Subject: [PATCH] nomsg

---
 Testing/Code/BasicFilters/CMakeLists.txt      | 51 +++++++++++++++++++
 .../BasicFilters/otbBasicFiltersTests.cxx     | 14 +++++
 2 files changed, 65 insertions(+)
 create mode 100755 Testing/Code/BasicFilters/CMakeLists.txt
 create mode 100755 Testing/Code/BasicFilters/otbBasicFiltersTests.cxx

diff --git a/Testing/Code/BasicFilters/CMakeLists.txt b/Testing/Code/BasicFilters/CMakeLists.txt
new file mode 100755
index 0000000000..611cc08e77
--- /dev/null
+++ b/Testing/Code/BasicFilters/CMakeLists.txt
@@ -0,0 +1,51 @@
+
+IF( NOT OTB_DISABLE_CXX_TESTING )
+
+SET(BASELINE ${OTB_DATA_ROOT}/Baseline/Images)
+SET(INPUTDATA ${OTB_DATA_ROOT}/Input)
+SET(TEMP ${OTBTesting_BINARY_DIR}/Temporary)
+
+
+#Tolerance sur diff pixel image
+SET(TOL 0.0)
+
+SET(BASICFILTERS_TESTS ${CXX_TEST_PATH}/otbBasicFiltersTests)
+
+
+ADD_TEST(bfTuFiltreLee1CanalPoupees ${BASICFILTERS_TESTS}  
+        otbLeeFilter
+	${INPUTDATA}/poupees_1canal.hd
+	${TEMP}/bfFiltreLee_05_05_04.png
+	05 05 4.0)
+
+ADD_TEST(bfTuFiltreLee ${BASICFILTERS_TESTS}  
+        otbLeeFilter
+	${INPUTDATA}/poupees.hd
+	${TEMP}/bfFiltreLee_05_05_12.png
+	05 05 12.0)
+	
+ADD_TEST(bfTuFiltreFrost ${BASICFILTERS_TESTS}  
+        otbFrostFilter
+	${INPUTDATA}/poupees.hd
+	${TEMP}/bfFiltreFrost_poupees_05_05_01.png
+	05 05 0.1)
+
+
+# A enrichir
+SET(BasicFilters_SRCS
+otbLeeFilter.cxx
+otbFrostFilter.cxx
+)
+
+
+INCLUDE_DIRECTORIES("${OTBTesting_BINARY_DIR}")
+
+ADD_EXECUTABLE(otbBasicFiltersTests otbBasicFiltersTests.cxx ${BasicFilters_SRCS})
+TARGET_LINK_LIBRARIES(otbBasicFiltersTests ${CAI_LIBRARY} ${GDAL_LIBRARY} OTBBasicFilters OTBCommon OTBIO ${CAI_LIBRARY} ITKIO ITKCommon)
+
+
+ENDIF( NOT OTB_DISABLE_CXX_TESTING )
+
+
+
+
diff --git a/Testing/Code/BasicFilters/otbBasicFiltersTests.cxx b/Testing/Code/BasicFilters/otbBasicFiltersTests.cxx
new file mode 100755
index 0000000000..e118bc5eec
--- /dev/null
+++ b/Testing/Code/BasicFilters/otbBasicFiltersTests.cxx
@@ -0,0 +1,14 @@
+// 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 <iostream>
+#include "otbTestMain.h" 
+
+void RegisterTests()
+{
+REGISTER_TEST(otbLeeFilter);
+REGISTER_TEST(otbFrostFilter);
+}
-- 
GitLab