Skip to content
Snippets Groups Projects
Commit 1025559c authored by stefan's avatar stefan
Browse files

Added ctest, cdash support

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2273 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 56e1e572
Branches
Tags
No related merge requests found
...@@ -6,10 +6,10 @@ cmake_minimum_required(VERSION 2.6.4 FATAL_ERROR) ...@@ -6,10 +6,10 @@ cmake_minimum_required(VERSION 2.6.4 FATAL_ERROR)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake_support) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake_support)
include(OST) include(OST)
project(OpenStructure CXX C) project(OpenStructure CXX C)
INCLUDE(CTest)
ENABLE_TESTING()
option(USE_SHADER "whether to compile with shader support" option(USE_SHADER "whether to compile with shader support"
OFF) OFF)
......
## This file should be placed in the root directory of your project.
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
## # The following are required to uses Dart and the Cdash dashboard
## ENABLE_TESTING()
## INCLUDE(CTest)
set(CTEST_PROJECT_NAME "OpenStructure")
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")
set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "localhost")
set(CTEST_DROP_LOCATION "/cdash/submit.php?project=OpenStructure")
set(CTEST_DROP_SITE_CDASH TRUE)
...@@ -501,6 +501,8 @@ macro(ost_unittest MODULE SOURCE_FILES) ...@@ -501,6 +501,8 @@ macro(ost_unittest MODULE SOURCE_FILES)
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "running checks for module ${MODULE}" COMMENT "running checks for module ${MODULE}"
DEPENDS ${_test_name}) DEPENDS ${_test_name})
add_test("${_test_name}" ${CMAKE_CURRENT_BINARY_DIR}/${_test_name} )
endif() endif()
add_dependencies(check "${_test_name}_run") add_dependencies(check "${_test_name}_run")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment