Commit c058acab authored by Berk Geveci's avatar Berk Geveci

Added CMake support for running tests through ctest (for dashboards)

parent 754c2bfd
cmake_minimum_required(VERSION 2.8)
project (CinemaPython)
enable_testing()
include(CTest)
add_subdirectory(tests)
set(CTEST_PROJECT_NAME "CinemaPython")
set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC")
set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "my.cdash.org")
set(CTEST_DROP_LOCATION "/submit.php?project=CinemaPython")
set(CTEST_DROP_SITE_CDASH TRUE)
file(GLOB my_files *.py)
foreach (test ${my_files})
get_filename_component(name ${test} NAME)
message(STATUS ":: ${name}")
add_test(NAME ${name} COMMAND python ${test})
set_tests_properties(${name} PROPERTIES WORKING_DIRECTORY ${CinemaPython_SOURCE_DIR}/tests/)
endforeach()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment