mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 12:40:06 +00:00
Merge topic 'test-ctest_submit-fail-with-RunCMake'
ef97cd85
Tests: Fix obscure RunCMake.CTestSubmit 'drop' case failures76f7eb2e
Tests: Extend RunCMake.CTestSubmit test to cover 'drop' failures
This commit is contained in:
commit
afd998373d
@ -3,3 +3,4 @@ set(CTEST_PROJECT_NAME "CTestSubmit@CASE_NAME@")
|
||||
# Intentionally leave out other upload-related CTestConfig.cmake settings
|
||||
# so that any ctest_submit calls fail with an error message.
|
||||
set(CTEST_DROP_METHOD "@CASE_DROP_METHOD@")
|
||||
set(CTEST_DROP_SITE "@CASE_DROP_SITE@")
|
||||
|
1
Tests/RunCMake/CTestSubmit/FailDrop-cp-result.txt
Normal file
1
Tests/RunCMake/CTestSubmit/FailDrop-cp-result.txt
Normal file
@ -0,0 +1 @@
|
||||
(-1|255)
|
4
Tests/RunCMake/CTestSubmit/FailDrop-cp-stderr.txt
Normal file
4
Tests/RunCMake/CTestSubmit/FailDrop-cp-stderr.txt
Normal file
@ -0,0 +1,4 @@
|
||||
Missing arguments for submit via cp:
|
||||
.*
|
||||
Problems when submitting via CP
|
||||
Error in read script: .*/Tests/RunCMake/CTestSubmit/FailDrop-cp/test.cmake
|
1
Tests/RunCMake/CTestSubmit/FailDrop-cp-stdout.txt
Normal file
1
Tests/RunCMake/CTestSubmit/FailDrop-cp-stdout.txt
Normal file
@ -0,0 +1 @@
|
||||
Submit files \(using cp\)
|
1
Tests/RunCMake/CTestSubmit/FailDrop-ftp-result.txt
Normal file
1
Tests/RunCMake/CTestSubmit/FailDrop-ftp-result.txt
Normal file
@ -0,0 +1 @@
|
||||
(-1|255)
|
3
Tests/RunCMake/CTestSubmit/FailDrop-ftp-stderr.txt
Normal file
3
Tests/RunCMake/CTestSubmit/FailDrop-ftp-stderr.txt
Normal file
@ -0,0 +1,3 @@
|
||||
Error message was: .*
|
||||
Problems when submitting via FTP
|
||||
Error in read script: .*/Tests/RunCMake/CTestSubmit/FailDrop-ftp/test.cmake
|
3
Tests/RunCMake/CTestSubmit/FailDrop-ftp-stdout.txt
Normal file
3
Tests/RunCMake/CTestSubmit/FailDrop-ftp-stdout.txt
Normal file
@ -0,0 +1,3 @@
|
||||
Submit files \(using ftp\)
|
||||
Using FTP submit method
|
||||
Drop site: ftp://
|
1
Tests/RunCMake/CTestSubmit/FailDrop-http-result.txt
Normal file
1
Tests/RunCMake/CTestSubmit/FailDrop-http-result.txt
Normal file
@ -0,0 +1 @@
|
||||
(-1|255)
|
3
Tests/RunCMake/CTestSubmit/FailDrop-http-stderr.txt
Normal file
3
Tests/RunCMake/CTestSubmit/FailDrop-http-stderr.txt
Normal file
@ -0,0 +1,3 @@
|
||||
Error message was: .*
|
||||
Problems when submitting via HTTP
|
||||
Error in read script: .*/Tests/RunCMake/CTestSubmit/FailDrop-http/test.cmake
|
3
Tests/RunCMake/CTestSubmit/FailDrop-http-stdout.txt
Normal file
3
Tests/RunCMake/CTestSubmit/FailDrop-http-stdout.txt
Normal file
@ -0,0 +1,3 @@
|
||||
Submit files \(using http\)
|
||||
Using HTTP submit method
|
||||
Drop site:http://
|
1
Tests/RunCMake/CTestSubmit/FailDrop-https-result.txt
Normal file
1
Tests/RunCMake/CTestSubmit/FailDrop-https-result.txt
Normal file
@ -0,0 +1 @@
|
||||
(-1|255)
|
3
Tests/RunCMake/CTestSubmit/FailDrop-https-stderr.txt
Normal file
3
Tests/RunCMake/CTestSubmit/FailDrop-https-stderr.txt
Normal file
@ -0,0 +1,3 @@
|
||||
Error message was: .*
|
||||
Problems when submitting via HTTP
|
||||
Error in read script: .*/Tests/RunCMake/CTestSubmit/FailDrop-https/test.cmake
|
3
Tests/RunCMake/CTestSubmit/FailDrop-https-stdout.txt
Normal file
3
Tests/RunCMake/CTestSubmit/FailDrop-https-stdout.txt
Normal file
@ -0,0 +1,3 @@
|
||||
Submit files \(using https\)
|
||||
Using HTTP submit method
|
||||
Drop site:https://
|
1
Tests/RunCMake/CTestSubmit/FailDrop-scp-result.txt
Normal file
1
Tests/RunCMake/CTestSubmit/FailDrop-scp-result.txt
Normal file
@ -0,0 +1 @@
|
||||
(-1|255)
|
2
Tests/RunCMake/CTestSubmit/FailDrop-scp-stderr.txt
Normal file
2
Tests/RunCMake/CTestSubmit/FailDrop-scp-stderr.txt
Normal file
@ -0,0 +1,2 @@
|
||||
Problems when submitting via SCP
|
||||
Error in read script: .*/Tests/RunCMake/CTestSubmit/FailDrop-scp/test.cmake
|
1
Tests/RunCMake/CTestSubmit/FailDrop-scp-stdout.txt
Normal file
1
Tests/RunCMake/CTestSubmit/FailDrop-scp-stdout.txt
Normal file
@ -0,0 +1 @@
|
||||
Submit files \(using scp\)
|
1
Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-result.txt
Normal file
1
Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-result.txt
Normal file
@ -0,0 +1 @@
|
||||
(-1|255)
|
2
Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stderr.txt
Normal file
2
Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stderr.txt
Normal file
@ -0,0 +1,2 @@
|
||||
(Problems when submitting via XML-RPC|Submission method "xmlrpc" not compiled into CTest!)
|
||||
Error in read script: .*/Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc/test.cmake
|
1
Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stdout.txt
Normal file
1
Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stdout.txt
Normal file
@ -0,0 +1 @@
|
||||
Submit files \(using xmlrpc\)
|
@ -2,6 +2,7 @@ include(RunCMake)
|
||||
|
||||
# Default case parameters.
|
||||
set(CASE_DROP_METHOD "http")
|
||||
set(CASE_DROP_SITE "-no-site-")
|
||||
set(CASE_CTEST_SUBMIT_ARGS "")
|
||||
|
||||
function(run_ctest CASE_NAME)
|
||||
@ -40,4 +41,9 @@ function(run_ctest_submit_FailDrop CASE_DROP_METHOD)
|
||||
run_ctest(FailDrop-${CASE_DROP_METHOD})
|
||||
endfunction()
|
||||
|
||||
# TODO: call run_ctest_submit_FailDrop() for each submission protocol
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user