[Cmake-commits] [cmake-commits] david.cole committed CheckSourceTreeTest.cmake.in 1.5 1.6

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Dec 7 11:54:25 EST 2009


Update of /cvsroot/CMake/CMake/Tests/CMakeTests
In directory public:/mounts/ram/cvs-serv699/Tests/CMakeTests

Modified Files:
	CheckSourceTreeTest.cmake.in 
Log Message:
Force CheckSourceTree test to pass if the source tree is not a CVS checkout. The test can only do its checking if cvs is available and the source tree is a cvs checkout. Also, allow for the possibility that backslash characters exist in the HOME environment variable, because they may when built in a cygwin environment on Windows.


Index: CheckSourceTreeTest.cmake.in
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CMakeTests/CheckSourceTreeTest.cmake.in,v
retrieving revision 1.5
retrieving revision 1.6
diff -C 2 -d -r1.5 -r1.6
*** CheckSourceTreeTest.cmake.in	4 Dec 2009 19:50:37 -0000	1.5
--- CheckSourceTreeTest.cmake.in	7 Dec 2009 16:54:23 -0000	1.6
***************
*** 10,13 ****
--- 10,14 ----
  message("ENV{DASHBOARD_TEST_FROM_CTEST}='$ENV{DASHBOARD_TEST_FROM_CTEST}'")
  message("")
+ string(REPLACE "\\" "\\\\" HOME "${HOME}")
  
  
***************
*** 42,45 ****
--- 43,56 ----
  
  
+ # If this does not appear to be a CVS checkout, just pass the test here and now.
+ # (Do not let the test fail if it is run in a tree *exported* from CVS or
+ # unpacked from a .zip file source installer...)
+ #
+ if(NOT EXISTS "${CMake_SOURCE_DIR}/CVS/Root")
+   message("source tree is not a CVS checkout... test passes by early return...")
+   return()
+ endif()
+ 
+ 
  # Check with "cvs -q -n up -dP" if there are any local modifications to the
  # CMake source tree:



More information about the Cmake-commits mailing list