From 9cffef104ff6087e507850732aacf800f211ff1f Mon Sep 17 00:00:00 2001
From: Jonathan Guinet <jonathan.guinet@c-s.fr>
Date: Mon, 7 Nov 2011 19:09:38 +0100
Subject: [PATCH] TEST: --testenv option addition OTBWrapperMacro.

---
 CMake/OTBWrapperMacros.cmake | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/CMake/OTBWrapperMacros.cmake b/CMake/OTBWrapperMacros.cmake
index 62c105ecbe..f18e6745a1 100644
--- a/CMake/OTBWrapperMacros.cmake
+++ b/CMake/OTBWrapperMacros.cmake
@@ -75,10 +75,11 @@ macro(OTB_TEST_APPLICATION)
 
    add_test(NAME ${TESTAPPLICATION_NAME}
             COMMAND otbTestDriver
-                    ${TESTAPPLICATION_VALIDATION}
+                    ${TESTAPPLICATION_VALID}
                     Execute $<TARGET_FILE:otbApplicationLauncherCommandLine>
                     ${TESTAPPLICATION_APP}
                     $<TARGET_FILE_DIR:otbapp_${TESTAPPLICATION_APP}>
-                    ${TESTAPPLICATION_OPTIONS})
+                    ${TESTAPPLICATION_OPTIONS}
+--testenv)
    
 endmacro(OTB_TEST_APPLICATION)
-- 
GitLab