mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 12:19:54 -05:00
Merge topic 'ctest-p4'
970c823 ctest_update: Add support for Perforce p4 client
This commit is contained in:
@@ -149,6 +149,7 @@ if(BUILD_TESTING)
|
||||
find_program(BZRCOMMAND bzr)
|
||||
find_program(HGCOMMAND hg)
|
||||
find_program(GITCOMMAND git)
|
||||
find_program(P4COMMAND p4)
|
||||
|
||||
if(NOT UPDATE_TYPE)
|
||||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/CVS")
|
||||
@@ -180,6 +181,9 @@ if(BUILD_TESTING)
|
||||
elseif("${_update_type}" STREQUAL "git")
|
||||
set(UPDATE_COMMAND "${GITCOMMAND}")
|
||||
set(UPDATE_OPTIONS "${GIT_UPDATE_OPTIONS}")
|
||||
elseif("${_update_type}" STREQUAL "p4")
|
||||
set(UPDATE_COMMAND "${P4COMMAND}")
|
||||
set(UPDATE_OPTIONS "${P4_UPDATE_OPTIONS}")
|
||||
endif()
|
||||
|
||||
set(DART_TESTING_TIMEOUT 1500 CACHE STRING
|
||||
@@ -275,6 +279,7 @@ if(BUILD_TESTING)
|
||||
CVS_UPDATE_OPTIONS
|
||||
DART_TESTING_TIMEOUT
|
||||
GITCOMMAND
|
||||
P4COMMAND
|
||||
HGCOMMAND
|
||||
MAKECOMMAND
|
||||
MEMORYCHECK_COMMAND
|
||||
|
||||
@@ -52,6 +52,13 @@ GITCommand: @GITCOMMAND@
|
||||
GITUpdateOptions: @GIT_UPDATE_OPTIONS@
|
||||
GITUpdateCustom: @CTEST_GIT_UPDATE_CUSTOM@
|
||||
|
||||
# Perforce options
|
||||
P4Command: @P4COMMAND@
|
||||
P4Client: @CTEST_P4_CLIENT@
|
||||
P4Options: @CTEST_P4_OPTIONS@
|
||||
P4UpdateOptions: @CTEST_P4_UPDATE_OPTIONS@
|
||||
P4UpdateCustom: @CTEST_P4_UPDATE_CUSTOM@
|
||||
|
||||
# Generic update command
|
||||
UpdateCommand: @UPDATE_COMMAND@
|
||||
UpdateOptions: @UPDATE_OPTIONS@
|
||||
|
||||
Reference in New Issue
Block a user