2015-02-19 19:07:34 +03:00
|
|
|
include(RunCTest)
|
2015-01-15 21:41:39 +03:00
|
|
|
|
|
|
|
# Default case parameters.
|
|
|
|
set(CASE_DROP_METHOD "http")
|
2015-01-20 18:11:39 +03:00
|
|
|
set(CASE_DROP_SITE "-no-site-")
|
2015-01-15 21:41:39 +03:00
|
|
|
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)
|
2015-01-15 23:23:07 +03:00
|
|
|
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)
|
2015-02-17 00:02:14 +03:00
|
|
|
run_ctest_submit(CDashSubmitQuiet QUIET)
|
2015-01-15 23:23:07 +03:00
|
|
|
|
|
|
|
function(run_ctest_CDashUploadFTP)
|
|
|
|
set(CASE_DROP_METHOD ftp)
|
|
|
|
run_ctest_submit(CDashUploadFTP CDASH_UPLOAD ${CMAKE_CURRENT_LIST_FILE})
|
|
|
|
endfunction()
|
|
|
|
run_ctest_CDashUploadFTP()
|
2015-01-15 21:41:39 +03:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Test failed drops by various protocols
|
|
|
|
|
|
|
|
function(run_ctest_submit_FailDrop CASE_DROP_METHOD)
|
|
|
|
run_ctest(FailDrop-${CASE_DROP_METHOD})
|
|
|
|
endfunction()
|
|
|
|
|
2015-01-19 17:55:59 +03:00
|
|
|
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)
|