3
0
mirror of https://github.com/triqs/dft_tools synced 2024-06-25 22:52:20 +02:00
dft_tools/test/plovasp/CMakeLists.txt
Oleg E. Peil 457df5d9b3 Improved the way test suites are executed
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.
2016-03-10 17:14:15 +01:00

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})