mirror of
https://github.com/triqs/dft_tools
synced 2024-11-13 01:23:50 +01:00
21 lines
571 B
CMake
21 lines
571 B
CMake
# load triqs helper to set up tests
|
|
set(all_tests
|
|
atm
|
|
converter
|
|
inpconf
|
|
plotools
|
|
proj_group
|
|
proj_shell
|
|
vaspio
|
|
)
|
|
|
|
FILE(COPY ${all_tests} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
|
FILE(COPY run_suite.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
foreach(test_name ${all_tests})
|
|
add_test(NAME Py_vasp_${test_name} COMMAND ${TRIQS_PYTHON_EXECUTABLE} run_suite.py ${test_name})
|
|
set_property(TEST Py_vasp_${test_name} APPEND PROPERTY ENVIRONMENT PYTHONPATH=${PROJECT_BINARY_DIR}/python:$ENV{PYTHONPATH} ${SANITIZER_RT_PRELOAD})
|
|
endforeach()
|
|
|
|
|