[Liblas-commits] hg: Added CTestConfig.cmake generated by cdash.org for libLAS. A...

liblas-commits at liblas.org liblas-commits at liblas.org
Sat Oct 24 18:46:08 EDT 2009


changeset 92b44e5e0f7b in /home/www/liblas.org/hg
details: http://hg.liblas.org/main/hg?cmd=changeset;node=92b44e5e0f7b
summary: Added CTestConfig.cmake generated by cdash.org for libLAS. Added ENABLE_CTEST option - configures support of CTest and allows users to submit test results to dashboard at cdash.org.

diffstat:

 CMakeLists.txt    |  32 +++++++++++++++++++++++---------
 CTestConfig.cmake |  13 +++++++++++++
 2 files changed, 36 insertions(+), 9 deletions(-)

diffs (76 lines):

diff -r 5e54e79a89a7 -r 92b44e5e0f7b CMakeLists.txt
--- a/CMakeLists.txt	Fri Oct 23 21:29:54 2009 -0500
+++ b/CMakeLists.txt	Sat Oct 24 23:45:55 2009 +0100
@@ -1,4 +1,4 @@
-###############################################################################
+##############################################################################
 # Main CMake configuration file for libLAS
 #
 # Author: Mateusz Loskot <mateusz at loskot.net>
@@ -25,6 +25,11 @@
 SET(WITH_UTILITIES TRUE CACHE BOOL "Choose if libLAS utilities should be built")
 SET(WITH_TESTS FALSE CACHE BOOL "Choose if libLAS unit tests should be built")
 
+# Enable CTest and submissions to libLAS dashboard at CDash
+# http://my.cdash.org/index.php?project=libLAS
+SET(ENABLE_CTEST FALSE CACHE BOOL
+    "Enable CTest to support submissions of results to CDash at http://cdash.org")
+
 ###############################################################################
 # CMake settings
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
@@ -244,20 +249,29 @@
 ADD_SUBDIRECTORY(src)
 
 IF(WITH_UTILITIES)
-    MESSAGE(STATUS "Adding libLAS utilities to build - done")
+    MESSAGE(STATUS "Enable libLAS utilities to build - done")
     ADD_SUBDIRECTORY(apps)
 ENDIF()
 
 IF(WITH_TESTS)
-    # TODO:
-    # Waiting for Mercurial support at cdash.org --mloskot
-    # Dashboard has been prepared for experiments
-    # http://my.cdash.org/index.php?project=libLAS
-    #INCLUDE(CTest)
+    MESSAGE(STATUS "Enable libLAS unit tests to build - done")
+    ENABLE_TESTING()
 
-    MESSAGE(STATUS "Adding libLAS unit test suite to build - done")
-    ENABLE_TESTING()
+
+    IF(ENABLE_CTEST)
+        MESSAGE(STATUS "Enable CTest to support submissions of results to CDash at http://cdash.org")
+        CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0)
+        # Dashboard has been prepared for experiments
+        # http://my.cdash.org/index.php?project=libLAS
+        INCLUDE(CTest)
+        MESSAGE(STATUS "Enable CTest to support submissions of results to CDash at http://cdash.org - done")
+    ENDIF()
+
     ADD_SUBDIRECTORY(test)
+ELSE()
+    IF(ENABLE_CTEST)
+        MESSAGE(WARNING "CTest support requested but WITH_TESTS option not specified to build of libLAS unit tests")
+    ENDIF()
 ENDIF()
 
 # EOF
diff -r 5e54e79a89a7 -r 92b44e5e0f7b CTestConfig.cmake
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CTestConfig.cmake	Sat Oct 24 23:45:55 2009 +0100
@@ -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 "libLAS")
+set(CTEST_NIGHTLY_START_TIME "01:30:00 BST")
+
+set(CTEST_DROP_METHOD "http")
+set(CTEST_DROP_SITE "my.cdash.org")
+set(CTEST_DROP_LOCATION "/submit.php?project=libLAS")
+set(CTEST_DROP_SITE_CDASH TRUE)


More information about the Liblas-commits mailing list