mirror of
https://github.com/triqs/dft_tools
synced 2024-06-25 22:52:20 +02:00
457df5d9b3
The main change is that `test_all.py` is now renamed to `run_suite.py`, with the latter being able to run a selected test suite if a corresponding command line argument (test suite directory name) is provided. CMakeLists are improved to copy each test suite separately to avoid copying unnecessary files. Also each test suite corresponds now to a separate CMake test.
17 lines
424 B
CMake
17 lines
424 B
CMake
# load triqs helper to set up tests
|
|
set(TestSuites
|
|
inpconf
|
|
plocar_io
|
|
plotools
|
|
proj_group
|
|
proj_shell
|
|
vaspio)
|
|
|
|
FILE(COPY ${TestSuites} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
|
FILE(COPY run_suite.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
foreach(test_suite ${TestSuites})
|
|
add_test(${test_suite}
|
|
${PythonBuildExecutable} run_suite.py ${test_suite})
|
|
endforeach(test_suite ${TestSuites})
|