mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-24 14:47:44 -05:00
move HybridNewton to a python integration test
This commit is contained in:
1 parent
3c365a428a
commit
dc0cf95893
2 files changed
+24
No files matched your search
@@ -525,6 +525,10 @@ if(MPI_FOUND)
|
||||
include (${CMAKE_CURRENT_SOURCE_DIR}/parallelUnitTests.cmake)
|
||||
endif()
|
||||
|
||||
if(OPM_ENABLE_PYTHON)
|
||||
include (${CMAKE_CURRENT_SOURCE_DIR}/pythonIntegrationTests.cmake)
|
||||
endif()
|
||||
|
||||
include(OpmBashCompletion)
|
||||
|
||||
if (NOT BUILD_FLOW)
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
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()
|
||||
Reference in new issue
Block a user