[Cmake-commits] CMake branch, next, updated. v2.8.5-1427-g5b33b48

David Cole david.cole at kitware.com
Wed Aug 3 21:43:40 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  5b33b48429b24279150e35e6ce2a632616b46ad8 (commit)
       via  91704ef2dee3ad606a6cc0f1e03e6f254d211b8f (commit)
      from  37f733655d38bae199003a9b7f7d70d5ea69162b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5b33b48429b24279150e35e6ce2a632616b46ad8
commit 5b33b48429b24279150e35e6ce2a632616b46ad8
Merge: 37f7336 91704ef
Author:     David Cole <david.cole at kitware.com>
AuthorDate: Wed Aug 3 21:43:20 2011 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Wed Aug 3 21:43:20 2011 -0400

    Merge topic 'add-kwstyle-test' into next
    
    91704ef Tests: Add a KWStyle test, equivalent to the make StyleCheck target


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=91704ef2dee3ad606a6cc0f1e03e6f254d211b8f
commit 91704ef2dee3ad606a6cc0f1e03e6f254d211b8f
Author:     David Cole <david.cole at kitware.com>
AuthorDate: Wed Aug 3 21:37:01 2011 -0400
Commit:     David Cole <david.cole at kitware.com>
CommitDate: Wed Aug 3 21:37:01 2011 -0400

    Tests: Add a KWStyle test, equivalent to the make StyleCheck target

diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 4bf83b7..ee38fd0 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -2073,6 +2073,19 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
     --test-command IncludeDirectories)
   LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/IncludeDirectories")
 
+  IF(CMAKE_USE_KWSTYLE AND KWSTYLE_EXECUTABLE)
+    # The "make StyleCheck" command line as a test. If the test fails, look
+    # for lines like "Error #0 (624) Line length exceed 88 (max=79)" in the
+    # output to find where the style errors are...
+    ADD_TEST(KWStyle ${KWSTYLE_EXECUTABLE}
+      -xml ${CMake_BINARY_DIR}/CMake.kws.xml
+      -o ${CMake_SOURCE_DIR}/Utilities/KWStyle/CMakeOverwrite.txt
+      -v
+      -D ${CMake_BINARY_DIR}/CMakeKWSFiles.txt
+      )
+    SET_TESTS_PROPERTIES(KWStyle PROPERTIES
+      WORKING_DIRECTORY ${CMake_BINARY_DIR}/Utilities/KWStyle)
+  ENDIF()
 ENDIF(BUILD_TESTING)
 
 SUBDIRS(CMakeTests)

-----------------------------------------------------------------------

Summary of changes:
 Tests/CMakeLists.txt |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list