Skip to content

Commit

Permalink
Add environment variable to those tests that depend on python
Browse files Browse the repository at this point in the history
  • Loading branch information
lisajulia committed Apr 25, 2024
1 parent ea1d058 commit 70e0b9b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Expand Up @@ -293,6 +293,8 @@ if (ENABLE_MOCKSIM AND ENABLE_ECL_INPUT)
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/tests
CONDITION ${HAVE_ECL_INPUT})
endforeach()
set_tests_properties(msim_ACTIONX PROPERTIES
ENVIRONMENT "PYTHONPATH=${PROJECT_BINARY_DIR}/python:$ENV{PYTHONPATH}")
endif()
endif()

Expand Down Expand Up @@ -371,6 +373,10 @@ if(Boost_UNIT_TEST_FRAMEWORK_FOUND)
get_filename_component(tgt ${src} NAME_WE)
target_link_libraries(${tgt} dunecommon)
endforeach()
foreach(test ACTIONX EmbeddedPython PYACTION)
set_tests_properties(${test} PROPERTIES
ENVIRONMENT "PYTHONPATH=${PROJECT_BINARY_DIR}/python:$ENV{PYTHONPATH}")
endforeach()
endif()
if(BUILD_EXAMPLES)
target_link_libraries(co2brinepvt dunecommon)
Expand Down

0 comments on commit 70e0b9b

Please sign in to comment.