2015-12-09 15:35:51 +01:00
|
|
|
# Copy h5 files to binary dir
|
|
|
|
FILE(GLOB all_h5_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.h5)
|
|
|
|
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/${all_h5_files} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
# Copy other files
|
2018-02-27 19:55:06 +01:00
|
|
|
FILE(COPY SrVO3.pmat SrVO3.struct SrVO3.outputs SrVO3.oubwin SrVO3.ctqmcout SrVO3.symqmc SrVO3.sympar SrVO3.parproj SrIrO3_rot.h5 hk_convert_hamiltonian.hk LaVO3-Pnma_hr.dat LaVO3-Pnma.inp DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
2015-12-09 15:35:51 +01:00
|
|
|
|
2017-12-07 15:56:05 +01:00
|
|
|
# List all tests
|
2018-07-09 16:50:36 +02:00
|
|
|
set(all_tests wien2k_convert hk_convert w90_convert sumkdft_basic srvo3_Gloc srvo3_transp sigma_from_file blockstructure analyse_block_structure_from_gf analyse_block_structure_from_gf2)
|
2017-12-07 15:56:05 +01:00
|
|
|
|
2018-09-06 15:09:30 +02:00
|
|
|
set(python_executable python)
|
|
|
|
|
|
|
|
if(${TEST_COVERAGE})
|
|
|
|
set(python_executable ${PYTHON_COVERAGE} run --append --source "${CMAKE_BINARY_DIR}/python" )
|
|
|
|
endif()
|
|
|
|
|
2017-12-07 15:56:05 +01:00
|
|
|
foreach(t ${all_tests})
|
2018-09-06 15:09:30 +02:00
|
|
|
add_test(NAME ${t} COMMAND ${python_executable} ${CMAKE_CURRENT_SOURCE_DIR}/${t}.py)
|
2017-12-07 15:56:05 +01:00
|
|
|
endforeach()
|
|
|
|
|
|
|
|
# Set the PythonPath : put the build dir first (in case there is an installed version).
|
|
|
|
set_property(TEST ${all_tests} PROPERTY ENVIRONMENT PYTHONPATH=${CMAKE_BINARY_DIR}/python:$ENV{PYTHONPATH} )
|
|
|
|
|
2016-03-10 11:45:53 +01:00
|
|
|
|
2017-01-27 12:19:03 +01:00
|
|
|
# VASP converter tests
|
2016-03-10 11:45:53 +01:00
|
|
|
add_subdirectory(plovasp)
|