Closed amontoison closed 2 years ago
There is a relative link to nomad executable in the script (runScript.sh) that manages the test ExampleAdvancedBatchFixedVariable.
I suggest to replace the content of $NOMAD_HOME/examples/advanced/batch/FixedVariable/CMakeLists.txt by
`set(CMAKE_EXECUTABLE_SUFFIX .exe) add_executable(uu.exe uu.cpp ) set_target_properties(uu.exe PROPERTIES SUFFIX "")
install(TARGETS uu.exe RUNTIME DESTINATION ${CMAKE_CURRENT_SOURCE_DIR} )
if(BUILD_TESTS MATCHES ON)
if (WIN32)
#add_test(NAME ExampleAdvancedBatchFixedVariables
#COMMAND
# WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
else()
message(STATUS " Add example batch fixed variables")
add_test(NAME ExampleAdvancedBatchFixedVariables
COMMAND bash -c "pwd; rm -f cache.txt ; ${CMAKE_INSTALL_PREFIX}/bin/nomad param1.txt ; ${CMAKE_INSTALL_PREFIX}/bin/nomad param2.txt ; ${CMAKE_INSTALL_PREFIX}/bin/nomad param3.txt ; ${CMAKE_INSTALL_PREFIX}/bin/nomad param10.txt"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
endif()
endif() `
Thanks @ctribes! All tests passed now.
ExampleAdvancedBatchFixedVariables
fails for all platforms.