mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-24 22:57:42 -05:00
21 lines
699 B
CMake
21 lines
699 B
CMake
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/tests/integration/HybridNewton)
|
|
|
|
add_test(NAME
|
|
HybridNewton
|
|
COMMAND
|
|
pytest ${PROJECT_SOURCE_DIR}/python/integration_tests/ml/hybrid_newton
|
|
WORKING_DIRECTORY
|
|
${PROJECT_BINARY_DIR}/tests/integration/HybridNewton
|
|
)
|
|
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.22)
|
|
set(modifications
|
|
"PYTHONPATH=path_list_append:${opm-common_DIR}/python"
|
|
"PYTHONPATH=path_list_append:${CMAKE_CURRENT_BINARY_DIR}/python"
|
|
"FLOW_BINARY=set:$<TARGET_FILE:flow>"
|
|
)
|
|
set_tests_properties(HybridNewton PROPERTIES
|
|
ENVIRONMENT_MODIFICATION
|
|
"${modifications}"
|
|
)
|
|
endif()
|