[Cmake-commits] [cmake-commits] david.cole committed CMakeLists.txt 1.124 1.125

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Oct 14 13:32:48 EDT 2009


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

Modified Files:
	CMakeLists.txt 
Log Message:
Increase ctest coverage. Add tests that intentionally call ctest_submit without any drop location so that the submits fail. Call for each possible type of submit. Also use the launchers from these scripts.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CMakeLists.txt,v
retrieving revision 1.124
retrieving revision 1.125
diff -C 2 -d -r1.124 -r1.125
*** CMakeLists.txt	8 Oct 2009 15:56:07 -0000	1.124
--- CMakeLists.txt	14 Oct 2009 17:32:46 -0000	1.125
***************
*** 1112,1116 ****
    
    ADD_TEST(CTestTestShowOnly ${CMAKE_CTEST_COMMAND} -N)
!   
    IF (CTEST_TEST_CTEST AND CMAKE_RUN_LONG_TESTS)
      CONFIGURE_FILE("${CMake_SOURCE_DIR}/Tests/CTestTest/test.cmake.in"
--- 1112,1141 ----
    
    ADD_TEST(CTestTestShowOnly ${CMAKE_CTEST_COMMAND} -N)
! 
! 
!   function(add_failed_submit_test name source build in out log regex)
!     configure_file("${in}" "${out}" @ONLY)
!     add_test(${name} ${CMAKE_CTEST_COMMAND} -S "${out}" -V --output-log "${log}")
!     set_tests_properties(${name} PROPERTIES PASS_REGULAR_EXPRESSION "${regex}")
!   endfunction()
! 
!   set(regex "(Problems when submitting via S*CP")
!   set(regex "${regex}|Error message was: ")
!   set(regex "${regex}(Couldn.t resolve host ")
!   set(regex "${regex}|libcurl was built with SSL disabled. https: not supported)")
!   set(regex "${regex}|Submission method .xmlrpc. not compiled into CTest)")
! 
!   foreach(drop_method cp ftp http https scp xmlrpc)
!     add_failed_submit_test(CTestTestFailedSubmit-${drop_method}
!       "${CMake_SOURCE_DIR}/Tests/CTestTest/SmallAndFast"
!       "${CMake_BINARY_DIR}/Tests/CTestTestFailedSubmits/${drop_method}"
!       "${CMake_SOURCE_DIR}/Tests/CTestTestFailedSubmits/test.cmake.in"
!       "${CMake_BINARY_DIR}/Tests/CTestTestFailedSubmits/test-${drop_method}.cmake"
!       "${CMake_BINARY_DIR}/Tests/CTestTestFailedSubmits/test-${drop_method}.log"
!       "${regex}"
!       )
!   endforeach()
! 
! 
    IF (CTEST_TEST_CTEST AND CMAKE_RUN_LONG_TESTS)
      CONFIGURE_FILE("${CMake_SOURCE_DIR}/Tests/CTestTest/test.cmake.in"



More information about the Cmake-commits mailing list