From 76f7eb2e4a359a7c978efa19fdf71fe1ea46b971 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 19 Jan 2015 09:55:59 -0500 Subject: [PATCH] Tests: Extend RunCMake.CTestSubmit test to cover 'drop' failures Replace the TODO comment with calls to run_ctest_submit_FailDrop. For now leave curl errors out of expected stderr. They can be ported over from CTestTestFailedSubmit-* tests later. --- Tests/RunCMake/CTestSubmit/FailDrop-cp-result.txt | 1 + Tests/RunCMake/CTestSubmit/FailDrop-cp-stderr.txt | 4 ++++ Tests/RunCMake/CTestSubmit/FailDrop-cp-stdout.txt | 1 + Tests/RunCMake/CTestSubmit/FailDrop-ftp-result.txt | 1 + Tests/RunCMake/CTestSubmit/FailDrop-ftp-stderr.txt | 3 +++ Tests/RunCMake/CTestSubmit/FailDrop-ftp-stdout.txt | 3 +++ Tests/RunCMake/CTestSubmit/FailDrop-http-result.txt | 1 + Tests/RunCMake/CTestSubmit/FailDrop-http-stderr.txt | 3 +++ Tests/RunCMake/CTestSubmit/FailDrop-http-stdout.txt | 3 +++ Tests/RunCMake/CTestSubmit/FailDrop-https-result.txt | 1 + Tests/RunCMake/CTestSubmit/FailDrop-https-stderr.txt | 3 +++ Tests/RunCMake/CTestSubmit/FailDrop-https-stdout.txt | 3 +++ Tests/RunCMake/CTestSubmit/FailDrop-scp-result.txt | 1 + Tests/RunCMake/CTestSubmit/FailDrop-scp-stderr.txt | 2 ++ Tests/RunCMake/CTestSubmit/FailDrop-scp-stdout.txt | 1 + Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-result.txt | 1 + Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stderr.txt | 2 ++ Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stdout.txt | 1 + Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake | 7 ++++++- 19 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-cp-result.txt create mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-cp-stderr.txt create mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-cp-stdout.txt create mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-ftp-result.txt create mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-ftp-stderr.txt create mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-ftp-stdout.txt create mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-http-result.txt create mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-http-stderr.txt create mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-http-stdout.txt create mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-https-result.txt create mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-https-stderr.txt create mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-https-stdout.txt create mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-scp-result.txt create mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-scp-stderr.txt create mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-scp-stdout.txt create mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-result.txt create mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stderr.txt create mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stdout.txt diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-cp-result.txt b/Tests/RunCMake/CTestSubmit/FailDrop-cp-result.txt new file mode 100644 index 0000000000..b57e2deb77 --- /dev/null +++ b/Tests/RunCMake/CTestSubmit/FailDrop-cp-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-cp-stderr.txt b/Tests/RunCMake/CTestSubmit/FailDrop-cp-stderr.txt new file mode 100644 index 0000000000..b451315d0b --- /dev/null +++ b/Tests/RunCMake/CTestSubmit/FailDrop-cp-stderr.txt @@ -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 diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-cp-stdout.txt b/Tests/RunCMake/CTestSubmit/FailDrop-cp-stdout.txt new file mode 100644 index 0000000000..fa6e0042c9 --- /dev/null +++ b/Tests/RunCMake/CTestSubmit/FailDrop-cp-stdout.txt @@ -0,0 +1 @@ +Submit files \(using cp\) diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-ftp-result.txt b/Tests/RunCMake/CTestSubmit/FailDrop-ftp-result.txt new file mode 100644 index 0000000000..b57e2deb77 --- /dev/null +++ b/Tests/RunCMake/CTestSubmit/FailDrop-ftp-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-ftp-stderr.txt b/Tests/RunCMake/CTestSubmit/FailDrop-ftp-stderr.txt new file mode 100644 index 0000000000..a622fac085 --- /dev/null +++ b/Tests/RunCMake/CTestSubmit/FailDrop-ftp-stderr.txt @@ -0,0 +1,3 @@ +Error message was: .* + Problems when submitting via FTP +Error in read script: .*/Tests/RunCMake/CTestSubmit/FailDrop-ftp/test.cmake diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-ftp-stdout.txt b/Tests/RunCMake/CTestSubmit/FailDrop-ftp-stdout.txt new file mode 100644 index 0000000000..345bb62b15 --- /dev/null +++ b/Tests/RunCMake/CTestSubmit/FailDrop-ftp-stdout.txt @@ -0,0 +1,3 @@ +Submit files \(using ftp\) + Using FTP submit method + Drop site: ftp:// diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-http-result.txt b/Tests/RunCMake/CTestSubmit/FailDrop-http-result.txt new file mode 100644 index 0000000000..b57e2deb77 --- /dev/null +++ b/Tests/RunCMake/CTestSubmit/FailDrop-http-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-http-stderr.txt b/Tests/RunCMake/CTestSubmit/FailDrop-http-stderr.txt new file mode 100644 index 0000000000..6870d2ebe9 --- /dev/null +++ b/Tests/RunCMake/CTestSubmit/FailDrop-http-stderr.txt @@ -0,0 +1,3 @@ +Error message was: .* + Problems when submitting via HTTP +Error in read script: .*/Tests/RunCMake/CTestSubmit/FailDrop-http/test.cmake diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-http-stdout.txt b/Tests/RunCMake/CTestSubmit/FailDrop-http-stdout.txt new file mode 100644 index 0000000000..c7f35c5ffe --- /dev/null +++ b/Tests/RunCMake/CTestSubmit/FailDrop-http-stdout.txt @@ -0,0 +1,3 @@ +Submit files \(using http\) + Using HTTP submit method + Drop site:http:// diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-https-result.txt b/Tests/RunCMake/CTestSubmit/FailDrop-https-result.txt new file mode 100644 index 0000000000..b57e2deb77 --- /dev/null +++ b/Tests/RunCMake/CTestSubmit/FailDrop-https-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-https-stderr.txt b/Tests/RunCMake/CTestSubmit/FailDrop-https-stderr.txt new file mode 100644 index 0000000000..a3c0cd5811 --- /dev/null +++ b/Tests/RunCMake/CTestSubmit/FailDrop-https-stderr.txt @@ -0,0 +1,3 @@ +Error message was: .* + Problems when submitting via HTTP +Error in read script: .*/Tests/RunCMake/CTestSubmit/FailDrop-https/test.cmake diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-https-stdout.txt b/Tests/RunCMake/CTestSubmit/FailDrop-https-stdout.txt new file mode 100644 index 0000000000..19f82347b3 --- /dev/null +++ b/Tests/RunCMake/CTestSubmit/FailDrop-https-stdout.txt @@ -0,0 +1,3 @@ +Submit files \(using https\) + Using HTTP submit method + Drop site:https:// diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-scp-result.txt b/Tests/RunCMake/CTestSubmit/FailDrop-scp-result.txt new file mode 100644 index 0000000000..b57e2deb77 --- /dev/null +++ b/Tests/RunCMake/CTestSubmit/FailDrop-scp-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-scp-stderr.txt b/Tests/RunCMake/CTestSubmit/FailDrop-scp-stderr.txt new file mode 100644 index 0000000000..42b8f5070c --- /dev/null +++ b/Tests/RunCMake/CTestSubmit/FailDrop-scp-stderr.txt @@ -0,0 +1,2 @@ + Problems when submitting via SCP +Error in read script: .*/Tests/RunCMake/CTestSubmit/FailDrop-scp/test.cmake diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-scp-stdout.txt b/Tests/RunCMake/CTestSubmit/FailDrop-scp-stdout.txt new file mode 100644 index 0000000000..ec2ce92be6 --- /dev/null +++ b/Tests/RunCMake/CTestSubmit/FailDrop-scp-stdout.txt @@ -0,0 +1 @@ +Submit files \(using scp\) diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-result.txt b/Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-result.txt new file mode 100644 index 0000000000..b57e2deb77 --- /dev/null +++ b/Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stderr.txt b/Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stderr.txt new file mode 100644 index 0000000000..020b615ac0 --- /dev/null +++ b/Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stderr.txt @@ -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 diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stdout.txt b/Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stdout.txt new file mode 100644 index 0000000000..ed2acb53cb --- /dev/null +++ b/Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stdout.txt @@ -0,0 +1 @@ +Submit files \(using xmlrpc\) diff --git a/Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake b/Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake index 6f185633a2..7cab3f32b3 100644 --- a/Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake +++ b/Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake @@ -40,4 +40,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)