summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ctest_submit/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorZack Galbreath <zack.galbreath@kitware.com>2017-05-03 14:50:04 (GMT)
committerZack Galbreath <zack.galbreath@kitware.com>2017-05-04 16:21:21 (GMT)
commit1a7d00bd12f261428edb8fef09461bee8067ceee (patch)
tree7d998892f75ff11470ff6c884d4e168bdddd6c63 /Tests/RunCMake/ctest_submit/RunCMakeTest.cmake
parent294cf948dc37799e1980685afbf1fa585ad5b0fb (diff)
downloadCMake-1a7d00bd12f261428edb8fef09461bee8067ceee.zip
CMake-1a7d00bd12f261428edb8fef09461bee8067ceee.tar.gz
CMake-1a7d00bd12f261428edb8fef09461bee8067ceee.tar.bz2
ctest_submit: Add HTTPHEADER option
Allow CTest script writers to specify additional HTTP headers to be sent to CDash during submission. The motivating case for this feature is a corresponding change in CDash. This will allow projects to refuse submissions from any site not bearing a valid authentication token.
Diffstat (limited to 'Tests/RunCMake/ctest_submit/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/ctest_submit/RunCMakeTest.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/ctest_submit/RunCMakeTest.cmake b/Tests/RunCMake/ctest_submit/RunCMakeTest.cmake
index e104f8a..b5d90d2 100644
--- a/Tests/RunCMake/ctest_submit/RunCMakeTest.cmake
+++ b/Tests/RunCMake/ctest_submit/RunCMakeTest.cmake
@@ -25,6 +25,8 @@ run_ctest_submit(CDashUploadNone CDASH_UPLOAD)
run_ctest_submit(CDashUploadMissingFile CDASH_UPLOAD bad-upload)
run_ctest_submit(CDashUploadRetry CDASH_UPLOAD ${CMAKE_CURRENT_LIST_FILE} CDASH_UPLOAD_TYPE foo RETRY_COUNT 2 RETRY_DELAY 1 INTERNAL_TEST_CHECKSUM)
run_ctest_submit(CDashSubmitQuiet QUIET)
+run_ctest_submit(CDashSubmitHeaders HTTPHEADER "Authorization: Bearer asdf")
+run_ctest_submit(CDashUploadHeaders CDASH_UPLOAD ${CMAKE_CURRENT_LIST_FILE} CDASH_UPLOAD_TYPE foo HTTPHEADER "Authorization: Bearer asdf")
function(run_ctest_CDashUploadFTP)
set(CASE_DROP_METHOD ftp)