2023-04-15 00:43:23 +02:00
|
|
|
# load triqs helper to set up tests (removed bandcharacter test for now)
|
2022-11-10 17:11:28 +01:00
|
|
|
set(all_tests
|
|
|
|
elk_convert
|
|
|
|
elk_equiv_convert
|
|
|
|
elk_bands_convert
|
2023-04-15 00:43:23 +02:00
|
|
|
# elk_bandcharacter_convert
|
|
|
|
occ_test
|
2023-01-04 23:16:57 +01:00
|
|
|
elk_transport_convert
|
2023-04-15 00:43:23 +02:00
|
|
|
elk_spectralcontours_convert
|
2022-11-10 17:11:28 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
file(GLOB all_test_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.py)
|
|
|
|
FILE(COPY ${all_test_files} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
FILE(COPY ${all_tests} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
|
|
foreach(test_name ${all_tests})
|
|
|
|
add_test(NAME Py_${test_name} COMMAND ${TRIQS_PYTHON_EXECUTABLE} ${test_name}.py)
|
|
|
|
set_property(TEST Py_${test_name} APPEND PROPERTY ENVIRONMENT PYTHONPATH=${PROJECT_BINARY_DIR}/python:$ENV{PYTHONPATH} ${SANITIZER_RT_PRELOAD})
|
|
|
|
endforeach()
|