mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-15 10:28:34 +05:00
9 lines
570 B
CMake
9 lines
570 B
CMake
if(USE_PYTHON)
|
|
add_test(NAME pytest COMMAND ${Python3_EXECUTABLE} -m pytest WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
|
add_custom_target(pytest ${Python3_EXECUTABLE} -m pytest WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
|
set_tests_properties ( pytest PROPERTIES TIMEOUT 1800 )
|
|
if(USE_MPI AND USE_MPI4PY)
|
|
add_test(NAME pytest-mpi COMMAND ${MPIEXEC_EXECUTABLE} --allow-run-as-root -np 4 ${Python3_EXECUTABLE} -m pytest --with-mpi test_mpi4py.py WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
|
endif(USE_MPI AND USE_MPI4PY)
|
|
endif(USE_PYTHON)
|