diff options
author | Brad King <brad.king@kitware.com> | 2015-02-19 16:33:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-02-19 16:33:32 (GMT) |
commit | d7662141a771f105e64b56543d99ee43e7d00849 (patch) | |
tree | b9177928aa60dae86ceef5bef8a2ee18af58d87f /Tests/RunCMake/ctest_submit/RunCMakeTest.cmake | |
parent | 9b50388b0989fab1d77fbb3d48e648c86427d808 (diff) | |
download | CMake-d7662141a771f105e64b56543d99ee43e7d00849.zip CMake-d7662141a771f105e64b56543d99ee43e7d00849.tar.gz CMake-d7662141a771f105e64b56543d99ee43e7d00849.tar.bz2 |
Tests: Rename RunCMake.{CTestSubmit => ctest_submit}
Follow the convention of naming tests after the command they test.
Diffstat (limited to 'Tests/RunCMake/ctest_submit/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/ctest_submit/RunCMakeTest.cmake | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Tests/RunCMake/ctest_submit/RunCMakeTest.cmake b/Tests/RunCMake/ctest_submit/RunCMakeTest.cmake new file mode 100644 index 0000000..c004e97 --- /dev/null +++ b/Tests/RunCMake/ctest_submit/RunCMakeTest.cmake @@ -0,0 +1,46 @@ +include(RunCTest) + +# Default case parameters. +set(CASE_DROP_METHOD "http") +set(CASE_DROP_SITE "-no-site-") +set(CASE_CTEST_SUBMIT_ARGS "") + +#----------------------------------------------------------------------------- +# Test bad argument combinations. + +function(run_ctest_submit CASE_NAME) + set(CASE_CTEST_SUBMIT_ARGS "${ARGN}") + run_ctest(${CASE_NAME}) +endfunction() + +run_ctest_submit(BadArg bad-arg) +run_ctest_submit(BadPARTS PARTS bad-part) +run_ctest_submit(BadFILES FILES bad-file) +run_ctest_submit(RepeatRETURN_VALUE RETURN_VALUE res RETURN_VALUE res) +run_ctest_submit(PARTSCDashUpload PARTS Configure CDASH_UPLOAD) +run_ctest_submit(PARTSCDashUploadType PARTS Configure CDASH_UPLOAD_TYPE) +run_ctest_submit(CDashUploadPARTS CDASH_UPLOAD bad-upload PARTS) +run_ctest_submit(CDashUploadFILES CDASH_UPLOAD bad-upload FILES) +run_ctest_submit(CDashUploadRETRY_COUNT CDASH_UPLOAD bad-upload RETRY_COUNT) +run_ctest_submit(CDashUploadRETRY_DELAY CDASH_UPLOAD bad-upload RETRY_DELAY) +run_ctest_submit(CDashUploadNone CDASH_UPLOAD) + +function(run_ctest_CDashUploadFTP) + set(CASE_DROP_METHOD ftp) + run_ctest_submit(CDashUploadFTP CDASH_UPLOAD ${CMAKE_CURRENT_LIST_FILE}) +endfunction() +run_ctest_CDashUploadFTP() + +#----------------------------------------------------------------------------- +# Test failed drops by various protocols + +function(run_ctest_submit_FailDrop CASE_DROP_METHOD) + run_ctest(FailDrop-${CASE_DROP_METHOD}) +endfunction() + +run_ctest_submit_FailDrop(cp) +run_ctest_submit_FailDrop(ftp) +run_ctest_submit_FailDrop(http) +run_ctest_submit_FailDrop(https) +run_ctest_submit_FailDrop(scp) +run_ctest_submit_FailDrop(xmlrpc) |