Commit f806a5d2 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: modify PATH for all tests in ci.cmake

parent 1d73fb80
......@@ -98,6 +98,12 @@ set(CTEST_GIT_UPDATE_CUSTOM "${CMAKE_COMMAND}" "-E" "echo" "No update")
# Look for a GIT command-line client.
find_program(CTEST_GIT_COMMAND NAMES git git.cmd)
# Add bin dir to PATH for testing on Windows
if(WIN32)
file(TO_NATIVE_PATH "${CTEST_BINARY_DIRECTORY}/bin" RM_BUILD_BIN_DIR_NATIVE)
set(ENV{PATH} "$ENV{PATH};${RM_BUILD_BIN_DIR_NATIVE}" )
endif()
# End of configuration
ctest_start (Experimental)
......
......@@ -23,10 +23,6 @@ otb_test_application(NAME otbEmptyAppTest
# Test a Python script using OTB Applications
set(TEST_DRIVER otbTestDriver
--add-before-env OTB_APPLICATION_PATH $<TARGET_FILE_DIR:otbapp_EmptyApp> )
if(WIN32)
set(TEST_DRIVER ${TEST_DRIVER}
--add-before-env PATH $<TARGET_FILE_DIR:${otb-module}>)
endif()
otb_add_test(NAME otbEmptyScriptTest
COMMAND ${TEST_DRIVER} Execute ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/EmptyScript.py)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment