diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2014-08-13 17:45:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-08-18 15:21:36 (GMT) |
commit | 39b5df2f3714c32d498fcb7c88f5bda456f75cb3 (patch) | |
tree | 837969d25d89a20025ced7cbecbe73236cd7a650 /Tests/CTestUpdateGIT.cmake.in | |
parent | ffc1935a73267cfe74e5d5492c9621ccf6c66112 (diff) | |
download | CMake-39b5df2f3714c32d498fcb7c88f5bda456f75cb3.zip CMake-39b5df2f3714c32d498fcb7c88f5bda456f75cb3.tar.gz CMake-39b5df2f3714c32d498fcb7c88f5bda456f75cb3.tar.bz2 |
ctest_update: Add CTEST_UPDATE_VERSION_ONLY option to only note the version
This allows ctest_update to get the current version without actually
changing the repository. This is useful when using Jenkins or an
external project to update the source to a specific version, but you
still want the current version to show up in CDash.
Diffstat (limited to 'Tests/CTestUpdateGIT.cmake.in')
-rw-r--r-- | Tests/CTestUpdateGIT.cmake.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/CTestUpdateGIT.cmake.in b/Tests/CTestUpdateGIT.cmake.in index f6939de..41b732b 100644 --- a/Tests/CTestUpdateGIT.cmake.in +++ b/Tests/CTestUpdateGIT.cmake.in @@ -317,3 +317,20 @@ set(CTEST_GIT_UPDATE_CUSTOM \${CTEST_GIT_COMMAND} pull origin master) # Run the dashboard script with CTest. run_dashboard_script(dash-binary-custom) + + +rewind_source(dash-source) + +#----------------------------------------------------------------------------- +# Test no update with a dashboard script. +message("Running CTest Dashboard Script (No update)...") + +create_dashboard_script(dash-binary-no-update + "# git command configuration +set(CTEST_GIT_COMMAND \"${GIT}\") +set(CTEST_UPDATE_VERSION_ONLY TRUE) +") + +# Run the dashboard script with CTest. +set(NO_UPDATE 1) +run_dashboard_script(dash-binary-no-update) |