2016-03-10 11:45:53 +01:00
|
|
|
# load triqs helper to set up tests
|
2018-01-22 23:49:04 +01:00
|
|
|
set(all_tests
|
2020-08-03 12:17:16 +02:00
|
|
|
atm
|
|
|
|
converter
|
2016-03-10 17:14:15 +01:00
|
|
|
inpconf
|
2020-08-03 12:17:16 +02:00
|
|
|
plotools
|
2016-03-10 17:14:15 +01:00
|
|
|
proj_group
|
|
|
|
proj_shell
|
2016-03-10 18:43:49 +01:00
|
|
|
vaspio
|
2018-05-04 16:26:47 +02:00
|
|
|
)
|
2016-03-10 17:14:15 +01:00
|
|
|
|
2018-01-22 23:49:04 +01:00
|
|
|
FILE(COPY ${all_tests} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
2016-03-10 17:14:15 +01:00
|
|
|
FILE(COPY run_suite.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
2016-03-10 11:45:53 +01:00
|
|
|
|
2020-06-10 17:45:53 +02:00
|
|
|
foreach(test_name ${all_tests})
|
2020-08-03 12:17:16 +02:00
|
|
|
add_test(NAME Py_vasp_${test_name} COMMAND ${TRIQS_PYTHON_EXECUTABLE} run_suite.py ${test_name})
|
2020-08-03 12:25:08 +02:00
|
|
|
set_property(TEST Py_vasp_${test_name} APPEND PROPERTY ENVIRONMENT PYTHONPATH=${PROJECT_BINARY_DIR}/python:$ENV{PYTHONPATH} ${SANITIZER_RT_PRELOAD})
|
2018-01-22 23:49:04 +01:00
|
|
|
endforeach()
|
|
|
|
|
2020-06-10 17:45:53 +02:00
|
|
|
|