|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53035 - in branches/release/tools/build/CMake: . slaves
From: troy_at_[hidden]
Date: 2009-05-15 17:35:49
Author: troy
Date: 2009-05-15 17:35:48 EDT (Fri, 15 May 2009)
New Revision: 53035
URL: http://svn.boost.org/trac/boost/changeset/53035
Log:
A little bit of setup automation (using SLAVE_DIR) for those running
build slaves..
Added:
branches/release/tools/build/CMake/slaves/ (props changed)
branches/release/tools/build/CMake/slaves/Continuous.cmake.in (contents, props changed)
branches/release/tools/build/CMake/slaves/Experimental.cmake.in (contents, props changed)
branches/release/tools/build/CMake/slaves/Nightly.cmake.in (contents, props changed)
Properties modified:
branches/release/tools/build/CMake/BoostTesting.cmake (contents, props changed)
Text files modified:
branches/release/tools/build/CMake/BoostTesting.cmake | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
Modified: branches/release/tools/build/CMake/BoostTesting.cmake
==============================================================================
--- branches/release/tools/build/CMake/BoostTesting.cmake (original)
+++ branches/release/tools/build/CMake/BoostTesting.cmake 2009-05-15 17:35:48 EDT (Fri, 15 May 2009)
@@ -434,3 +434,20 @@
endif(BOOST_TEST_OKAY)
endmacro(boost_test_link)
+if(SLAVE_DIR)
+ message(STATUS "")
+ message(STATUS "Configuring slave scripts")
+ message(STATUS "To SLAVE_DIR = ${SLAVE_DIR}")
+ message(STATUS "")
+
+ foreach(slavefile
+ Experimental
+ Continuous
+ Nightly
+ )
+ configure_file(tools/build/CMake/slaves/${slavefile}.cmake.in
+ ${SLAVE_DIR}/${slavefile}.cmake
+ ESCAPE_QUOTES
+ @ONLY)
+ endforeach()
+endif()
\ No newline at end of file
Added: branches/release/tools/build/CMake/slaves/Continuous.cmake.in
==============================================================================
--- (empty file)
+++ branches/release/tools/build/CMake/slaves/Continuous.cmake.in 2009-05-15 17:35:48 EDT (Fri, 15 May 2009)
@@ -0,0 +1,38 @@
+#
+# These guys should already be set correctly by the initial
+# 'cmake' step
+#
+set(CTEST_SOURCE_DIRECTORY "@CMAKE_SOURCE_DIR@")
+set(CTEST_BINARY_DIRECTORY "@CMAKE_BINARY_DIR@")
+set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
+
+#
+# Run the tests.
+#
+while(TRUE)
+
+ ctest_start(Continuous
+ TRACK ThisIsTheTrack
+ @CMAKE_SOURCE_DIR@
+ @CMAKE_BINARY_DIR@)
+
+ ctest_update()
+ ctest_submit(Update)
+
+ ctest_configure(
+ BUILD @CMAKE_BINARY_DIR@
+ SOURCE @CMAKE_SOURCE_DIR@
+ OPTIONS
+ -DBUILD_REGRESSION_TESTS=ON
+ )
+ ctest_submit(Configure)
+
+ ctest_build()
+ ctest_submit(Build)
+
+ ctest_test()
+ ctest_submit(Test)
+
+endwhile()
+
+
\ No newline at end of file
Added: branches/release/tools/build/CMake/slaves/Experimental.cmake.in
==============================================================================
--- (empty file)
+++ branches/release/tools/build/CMake/slaves/Experimental.cmake.in 2009-05-15 17:35:48 EDT (Fri, 15 May 2009)
@@ -0,0 +1,38 @@
+
+#
+# These guys should already be set correctly by the initial
+# 'cmake' step
+#
+set(CTEST_SOURCE_DIRECTORY "@CMAKE_SOURCE_DIR@")
+set(CTEST_BINARY_DIRECTORY "@CMAKE_BINARY_DIR@")
+set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
+
+#
+# Run the tests.
+#
+ctest_start(Experimental
+ TRACK ThisIsTheTrack
+ @CMAKE_SOURCE_DIR@
+ @CMAKE_BINARY_DIR@)
+
+ctest_empty_binary_directory(@CMAKE_BINARY_DIR@)
+
+ctest_update()
+ctest_submit(Update)
+
+ctest_configure(
+ BUILD @CMAKE_BINARY_DIR@
+ SOURCE @CMAKE_SOURCE_DIR@
+ OPTIONS
+ -DBUILD_REGRESSION_TESTS=ON
+ )
+ctest_submit(Configure)
+
+ctest_build()
+ctest_submit(Build)
+
+ctest_test()
+ctest_submit(Test)
+
+
+
\ No newline at end of file
Added: branches/release/tools/build/CMake/slaves/Nightly.cmake.in
==============================================================================
--- (empty file)
+++ branches/release/tools/build/CMake/slaves/Nightly.cmake.in 2009-05-15 17:35:48 EDT (Fri, 15 May 2009)
@@ -0,0 +1,38 @@
+
+#
+# These guys should already be set correctly by the initial
+# 'cmake' step
+#
+set(CTEST_SOURCE_DIRECTORY "@CMAKE_SOURCE_DIR@")
+set(CTEST_BINARY_DIRECTORY "@CMAKE_BINARY_DIR@")
+set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
+
+#
+# Run the tests.
+#
+ctest_start(Nightly
+ TRACK ThisIsTheTrack
+ @CMAKE_SOURCE_DIR@
+ @CMAKE_BINARY_DIR@)
+
+ctest_empty_binary_directory(@CMAKE_BINARY_DIR@)
+
+ctest_update()
+ctest_submit(Update)
+
+ctest_configure(
+ BUILD @CMAKE_BINARY_DIR@
+ SOURCE @CMAKE_SOURCE_DIR@
+ OPTIONS
+ -DBUILD_REGRESSION_TESTS=ON
+ )
+ctest_submit(Configure)
+
+ctest_build()
+ctest_submit(Build)
+
+ctest_test()
+ctest_submit(Test)
+
+
+
\ No newline at end of file
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk