From 1025559c81bc2af1672cefe8ab7378d4f0023089 Mon Sep 17 00:00:00 2001 From: stefan <stefan@5a81b35b-ba03-0410-adc8-b2c5c5119f08> Date: Fri, 21 May 2010 08:00:48 +0000 Subject: [PATCH] Added ctest, cdash support git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2273 5a81b35b-ba03-0410-adc8-b2c5c5119f08 --- CMakeLists.txt | 4 ++-- CTestConfig.cmake | 13 +++++++++++++ cmake_support/OST.cmake | 2 ++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 CTestConfig.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 8cc4a7c40..af9d0819f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) include(OST) - - project(OpenStructure CXX C) +INCLUDE(CTest) +ENABLE_TESTING() option(USE_SHADER "whether to compile with shader support" OFF) diff --git a/CTestConfig.cmake b/CTestConfig.cmake new file mode 100644 index 000000000..bff3a3591 --- /dev/null +++ b/CTestConfig.cmake @@ -0,0 +1,13 @@ +## 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) diff --git a/cmake_support/OST.cmake b/cmake_support/OST.cmake index fb46f78f9..5538e8057 100644 --- a/cmake_support/OST.cmake +++ b/cmake_support/OST.cmake @@ -501,6 +501,8 @@ macro(ost_unittest MODULE SOURCE_FILES) WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "running checks for module ${MODULE}" DEPENDS ${_test_name}) + add_test("${_test_name}" ${CMAKE_CURRENT_BINARY_DIR}/${_test_name} ) + endif() add_dependencies(check "${_test_name}_run") -- GitLab