From d7662141a771f105e64b56543d99ee43e7d00849 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 19 Feb 2015 11:33:32 -0500 Subject: Tests: Rename RunCMake.{CTestSubmit => ctest_submit} Follow the convention of naming tests after the command they test. --- Tests/RunCMake/CMakeLists.txt | 2 +- Tests/RunCMake/CTestSubmit/BadArg-result.txt | 1 - Tests/RunCMake/CTestSubmit/BadArg-stderr.txt | 2 - Tests/RunCMake/CTestSubmit/BadFILES-result.txt | 1 - Tests/RunCMake/CTestSubmit/BadFILES-stderr.txt | 2 - Tests/RunCMake/CTestSubmit/BadPARTS-result.txt | 1 - Tests/RunCMake/CTestSubmit/BadPARTS-stderr.txt | 2 - .../CTestSubmit/CDashUploadFILES-result.txt | 1 - .../CTestSubmit/CDashUploadFILES-stderr.txt | 2 - .../RunCMake/CTestSubmit/CDashUploadFTP-result.txt | 1 - .../RunCMake/CTestSubmit/CDashUploadFTP-stderr.txt | 1 - .../CTestSubmit/CDashUploadNone-result.txt | 1 - .../CTestSubmit/CDashUploadNone-stderr.txt | 1 - .../CTestSubmit/CDashUploadPARTS-result.txt | 1 - .../CTestSubmit/CDashUploadPARTS-stderr.txt | 2 - .../CTestSubmit/CDashUploadRETRY_COUNT-result.txt | 1 - .../CTestSubmit/CDashUploadRETRY_COUNT-stderr.txt | 2 - .../CTestSubmit/CDashUploadRETRY_DELAY-result.txt | 1 - .../CTestSubmit/CDashUploadRETRY_DELAY-stderr.txt | 2 - Tests/RunCMake/CTestSubmit/CMakeLists.txt.in | 4 -- Tests/RunCMake/CTestSubmit/CTestConfig.cmake.in | 6 --- 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 -- .../RunCMake/CTestSubmit/FailDrop-http-result.txt | 1 - .../RunCMake/CTestSubmit/FailDrop-http-stderr.txt | 3 -- .../RunCMake/CTestSubmit/FailDrop-http-stdout.txt | 3 -- .../RunCMake/CTestSubmit/FailDrop-https-result.txt | 1 - .../RunCMake/CTestSubmit/FailDrop-https-stderr.txt | 3 -- .../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 - .../CTestSubmit/FailDrop-xmlrpc-result.txt | 1 - .../CTestSubmit/FailDrop-xmlrpc-stderr.txt | 2 - .../CTestSubmit/FailDrop-xmlrpc-stdout.txt | 1 - .../CTestSubmit/PARTSCDashUpload-result.txt | 1 - .../CTestSubmit/PARTSCDashUpload-stderr.txt | 2 - .../CTestSubmit/PARTSCDashUploadType-result.txt | 1 - .../CTestSubmit/PARTSCDashUploadType-stderr.txt | 2 - .../CTestSubmit/RepeatRETURN_VALUE-result.txt | 1 - .../CTestSubmit/RepeatRETURN_VALUE-stderr.txt | 2 - Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake | 46 ---------------------- Tests/RunCMake/CTestSubmit/test.cmake.in | 16 -------- Tests/RunCMake/ctest_submit/BadArg-result.txt | 1 + Tests/RunCMake/ctest_submit/BadArg-stderr.txt | 2 + Tests/RunCMake/ctest_submit/BadFILES-result.txt | 1 + Tests/RunCMake/ctest_submit/BadFILES-stderr.txt | 2 + Tests/RunCMake/ctest_submit/BadPARTS-result.txt | 1 + Tests/RunCMake/ctest_submit/BadPARTS-stderr.txt | 2 + .../ctest_submit/CDashUploadFILES-result.txt | 1 + .../ctest_submit/CDashUploadFILES-stderr.txt | 2 + .../ctest_submit/CDashUploadFTP-result.txt | 1 + .../ctest_submit/CDashUploadFTP-stderr.txt | 1 + .../ctest_submit/CDashUploadNone-result.txt | 1 + .../ctest_submit/CDashUploadNone-stderr.txt | 1 + .../ctest_submit/CDashUploadPARTS-result.txt | 1 + .../ctest_submit/CDashUploadPARTS-stderr.txt | 2 + .../ctest_submit/CDashUploadRETRY_COUNT-result.txt | 1 + .../ctest_submit/CDashUploadRETRY_COUNT-stderr.txt | 2 + .../ctest_submit/CDashUploadRETRY_DELAY-result.txt | 1 + .../ctest_submit/CDashUploadRETRY_DELAY-stderr.txt | 2 + Tests/RunCMake/ctest_submit/CMakeLists.txt.in | 4 ++ Tests/RunCMake/ctest_submit/CTestConfig.cmake.in | 6 +++ Tests/RunCMake/ctest_submit/FailDrop-cp-result.txt | 1 + Tests/RunCMake/ctest_submit/FailDrop-cp-stderr.txt | 4 ++ Tests/RunCMake/ctest_submit/FailDrop-cp-stdout.txt | 1 + .../RunCMake/ctest_submit/FailDrop-ftp-result.txt | 1 + .../RunCMake/ctest_submit/FailDrop-ftp-stderr.txt | 3 ++ .../RunCMake/ctest_submit/FailDrop-ftp-stdout.txt | 3 ++ .../RunCMake/ctest_submit/FailDrop-http-result.txt | 1 + .../RunCMake/ctest_submit/FailDrop-http-stderr.txt | 3 ++ .../RunCMake/ctest_submit/FailDrop-http-stdout.txt | 3 ++ .../ctest_submit/FailDrop-https-result.txt | 1 + .../ctest_submit/FailDrop-https-stderr.txt | 3 ++ .../ctest_submit/FailDrop-https-stdout.txt | 3 ++ .../RunCMake/ctest_submit/FailDrop-scp-result.txt | 1 + .../RunCMake/ctest_submit/FailDrop-scp-stderr.txt | 2 + .../RunCMake/ctest_submit/FailDrop-scp-stdout.txt | 1 + .../ctest_submit/FailDrop-xmlrpc-result.txt | 1 + .../ctest_submit/FailDrop-xmlrpc-stderr.txt | 2 + .../ctest_submit/FailDrop-xmlrpc-stdout.txt | 1 + .../ctest_submit/PARTSCDashUpload-result.txt | 1 + .../ctest_submit/PARTSCDashUpload-stderr.txt | 2 + .../ctest_submit/PARTSCDashUploadType-result.txt | 1 + .../ctest_submit/PARTSCDashUploadType-stderr.txt | 2 + .../ctest_submit/RepeatRETURN_VALUE-result.txt | 1 + .../ctest_submit/RepeatRETURN_VALUE-stderr.txt | 2 + Tests/RunCMake/ctest_submit/RunCMakeTest.cmake | 46 ++++++++++++++++++++++ Tests/RunCMake/ctest_submit/test.cmake.in | 16 ++++++++ 93 files changed, 142 insertions(+), 142 deletions(-) delete mode 100644 Tests/RunCMake/CTestSubmit/BadArg-result.txt delete mode 100644 Tests/RunCMake/CTestSubmit/BadArg-stderr.txt delete mode 100644 Tests/RunCMake/CTestSubmit/BadFILES-result.txt delete mode 100644 Tests/RunCMake/CTestSubmit/BadFILES-stderr.txt delete mode 100644 Tests/RunCMake/CTestSubmit/BadPARTS-result.txt delete mode 100644 Tests/RunCMake/CTestSubmit/BadPARTS-stderr.txt delete mode 100644 Tests/RunCMake/CTestSubmit/CDashUploadFILES-result.txt delete mode 100644 Tests/RunCMake/CTestSubmit/CDashUploadFILES-stderr.txt delete mode 100644 Tests/RunCMake/CTestSubmit/CDashUploadFTP-result.txt delete mode 100644 Tests/RunCMake/CTestSubmit/CDashUploadFTP-stderr.txt delete mode 100644 Tests/RunCMake/CTestSubmit/CDashUploadNone-result.txt delete mode 100644 Tests/RunCMake/CTestSubmit/CDashUploadNone-stderr.txt delete mode 100644 Tests/RunCMake/CTestSubmit/CDashUploadPARTS-result.txt delete mode 100644 Tests/RunCMake/CTestSubmit/CDashUploadPARTS-stderr.txt delete mode 100644 Tests/RunCMake/CTestSubmit/CDashUploadRETRY_COUNT-result.txt delete mode 100644 Tests/RunCMake/CTestSubmit/CDashUploadRETRY_COUNT-stderr.txt delete mode 100644 Tests/RunCMake/CTestSubmit/CDashUploadRETRY_DELAY-result.txt delete mode 100644 Tests/RunCMake/CTestSubmit/CDashUploadRETRY_DELAY-stderr.txt delete mode 100644 Tests/RunCMake/CTestSubmit/CMakeLists.txt.in delete mode 100644 Tests/RunCMake/CTestSubmit/CTestConfig.cmake.in delete mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-cp-result.txt delete mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-cp-stderr.txt delete mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-cp-stdout.txt delete mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-ftp-result.txt delete mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-ftp-stderr.txt delete mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-ftp-stdout.txt delete mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-http-result.txt delete mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-http-stderr.txt delete mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-http-stdout.txt delete mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-https-result.txt delete mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-https-stderr.txt delete mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-https-stdout.txt delete mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-scp-result.txt delete mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-scp-stderr.txt delete mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-scp-stdout.txt delete mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-result.txt delete mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stderr.txt delete mode 100644 Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stdout.txt delete mode 100644 Tests/RunCMake/CTestSubmit/PARTSCDashUpload-result.txt delete mode 100644 Tests/RunCMake/CTestSubmit/PARTSCDashUpload-stderr.txt delete mode 100644 Tests/RunCMake/CTestSubmit/PARTSCDashUploadType-result.txt delete mode 100644 Tests/RunCMake/CTestSubmit/PARTSCDashUploadType-stderr.txt delete mode 100644 Tests/RunCMake/CTestSubmit/RepeatRETURN_VALUE-result.txt delete mode 100644 Tests/RunCMake/CTestSubmit/RepeatRETURN_VALUE-stderr.txt delete mode 100644 Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake delete mode 100644 Tests/RunCMake/CTestSubmit/test.cmake.in create mode 100644 Tests/RunCMake/ctest_submit/BadArg-result.txt create mode 100644 Tests/RunCMake/ctest_submit/BadArg-stderr.txt create mode 100644 Tests/RunCMake/ctest_submit/BadFILES-result.txt create mode 100644 Tests/RunCMake/ctest_submit/BadFILES-stderr.txt create mode 100644 Tests/RunCMake/ctest_submit/BadPARTS-result.txt create mode 100644 Tests/RunCMake/ctest_submit/BadPARTS-stderr.txt create mode 100644 Tests/RunCMake/ctest_submit/CDashUploadFILES-result.txt create mode 100644 Tests/RunCMake/ctest_submit/CDashUploadFILES-stderr.txt create mode 100644 Tests/RunCMake/ctest_submit/CDashUploadFTP-result.txt create mode 100644 Tests/RunCMake/ctest_submit/CDashUploadFTP-stderr.txt create mode 100644 Tests/RunCMake/ctest_submit/CDashUploadNone-result.txt create mode 100644 Tests/RunCMake/ctest_submit/CDashUploadNone-stderr.txt create mode 100644 Tests/RunCMake/ctest_submit/CDashUploadPARTS-result.txt create mode 100644 Tests/RunCMake/ctest_submit/CDashUploadPARTS-stderr.txt create mode 100644 Tests/RunCMake/ctest_submit/CDashUploadRETRY_COUNT-result.txt create mode 100644 Tests/RunCMake/ctest_submit/CDashUploadRETRY_COUNT-stderr.txt create mode 100644 Tests/RunCMake/ctest_submit/CDashUploadRETRY_DELAY-result.txt create mode 100644 Tests/RunCMake/ctest_submit/CDashUploadRETRY_DELAY-stderr.txt create mode 100644 Tests/RunCMake/ctest_submit/CMakeLists.txt.in create mode 100644 Tests/RunCMake/ctest_submit/CTestConfig.cmake.in create mode 100644 Tests/RunCMake/ctest_submit/FailDrop-cp-result.txt create mode 100644 Tests/RunCMake/ctest_submit/FailDrop-cp-stderr.txt create mode 100644 Tests/RunCMake/ctest_submit/FailDrop-cp-stdout.txt create mode 100644 Tests/RunCMake/ctest_submit/FailDrop-ftp-result.txt create mode 100644 Tests/RunCMake/ctest_submit/FailDrop-ftp-stderr.txt create mode 100644 Tests/RunCMake/ctest_submit/FailDrop-ftp-stdout.txt create mode 100644 Tests/RunCMake/ctest_submit/FailDrop-http-result.txt create mode 100644 Tests/RunCMake/ctest_submit/FailDrop-http-stderr.txt create mode 100644 Tests/RunCMake/ctest_submit/FailDrop-http-stdout.txt create mode 100644 Tests/RunCMake/ctest_submit/FailDrop-https-result.txt create mode 100644 Tests/RunCMake/ctest_submit/FailDrop-https-stderr.txt create mode 100644 Tests/RunCMake/ctest_submit/FailDrop-https-stdout.txt create mode 100644 Tests/RunCMake/ctest_submit/FailDrop-scp-result.txt create mode 100644 Tests/RunCMake/ctest_submit/FailDrop-scp-stderr.txt create mode 100644 Tests/RunCMake/ctest_submit/FailDrop-scp-stdout.txt create mode 100644 Tests/RunCMake/ctest_submit/FailDrop-xmlrpc-result.txt create mode 100644 Tests/RunCMake/ctest_submit/FailDrop-xmlrpc-stderr.txt create mode 100644 Tests/RunCMake/ctest_submit/FailDrop-xmlrpc-stdout.txt create mode 100644 Tests/RunCMake/ctest_submit/PARTSCDashUpload-result.txt create mode 100644 Tests/RunCMake/ctest_submit/PARTSCDashUpload-stderr.txt create mode 100644 Tests/RunCMake/ctest_submit/PARTSCDashUploadType-result.txt create mode 100644 Tests/RunCMake/ctest_submit/PARTSCDashUploadType-stderr.txt create mode 100644 Tests/RunCMake/ctest_submit/RepeatRETURN_VALUE-result.txt create mode 100644 Tests/RunCMake/ctest_submit/RepeatRETURN_VALUE-stderr.txt create mode 100644 Tests/RunCMake/ctest_submit/RunCMakeTest.cmake create mode 100644 Tests/RunCMake/ctest_submit/test.cmake.in diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt index 2de82a7..44e6ec4 100644 --- a/Tests/RunCMake/CMakeLists.txt +++ b/Tests/RunCMake/CMakeLists.txt @@ -64,7 +64,6 @@ add_RunCMake_test(CMP0053) add_RunCMake_test(CMP0054) add_RunCMake_test(CMP0055) add_RunCMake_test(CTest) -add_RunCMake_test(CTestSubmit) if(NOT CMake_TEST_EXTERNAL_CMAKE) add_RunCMake_test(CTestMemcheck @@ -130,6 +129,7 @@ add_RunCMake_test(build_command) add_RunCMake_test(export) add_RunCMake_test(cmake_minimum_required) add_RunCMake_test(continue) +add_RunCMake_test(ctest_submit) add_RunCMake_test(file) add_RunCMake_test(find_library) add_RunCMake_test(find_package) diff --git a/Tests/RunCMake/CTestSubmit/BadArg-result.txt b/Tests/RunCMake/CTestSubmit/BadArg-result.txt deleted file mode 100644 index b57e2de..0000000 --- a/Tests/RunCMake/CTestSubmit/BadArg-result.txt +++ /dev/null @@ -1 +0,0 @@ -(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/BadArg-stderr.txt b/Tests/RunCMake/CTestSubmit/BadArg-stderr.txt deleted file mode 100644 index 68812ab..0000000 --- a/Tests/RunCMake/CTestSubmit/BadArg-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ -CMake Error at .*/Tests/RunCMake/CTestSubmit/BadArg/test.cmake:[0-9]+ \(ctest_submit\): - ctest_submit called with unknown argument "bad-arg". diff --git a/Tests/RunCMake/CTestSubmit/BadFILES-result.txt b/Tests/RunCMake/CTestSubmit/BadFILES-result.txt deleted file mode 100644 index b57e2de..0000000 --- a/Tests/RunCMake/CTestSubmit/BadFILES-result.txt +++ /dev/null @@ -1 +0,0 @@ -(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/BadFILES-stderr.txt b/Tests/RunCMake/CTestSubmit/BadFILES-stderr.txt deleted file mode 100644 index 703224b..0000000 --- a/Tests/RunCMake/CTestSubmit/BadFILES-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ -CMake Error at .*/Tests/RunCMake/CTestSubmit/BadFILES/test.cmake:[0-9]+ \(ctest_submit\): - File "bad-file" does not exist. Cannot submit a non-existent file. diff --git a/Tests/RunCMake/CTestSubmit/BadPARTS-result.txt b/Tests/RunCMake/CTestSubmit/BadPARTS-result.txt deleted file mode 100644 index b57e2de..0000000 --- a/Tests/RunCMake/CTestSubmit/BadPARTS-result.txt +++ /dev/null @@ -1 +0,0 @@ -(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/BadPARTS-stderr.txt b/Tests/RunCMake/CTestSubmit/BadPARTS-stderr.txt deleted file mode 100644 index 4e491a9..0000000 --- a/Tests/RunCMake/CTestSubmit/BadPARTS-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ -CMake Error at .*/Tests/RunCMake/CTestSubmit/BadPARTS/test.cmake:[0-9]+ \(ctest_submit\): - Part name "bad-part" is invalid. diff --git a/Tests/RunCMake/CTestSubmit/CDashUploadFILES-result.txt b/Tests/RunCMake/CTestSubmit/CDashUploadFILES-result.txt deleted file mode 100644 index b57e2de..0000000 --- a/Tests/RunCMake/CTestSubmit/CDashUploadFILES-result.txt +++ /dev/null @@ -1 +0,0 @@ -(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/CDashUploadFILES-stderr.txt b/Tests/RunCMake/CTestSubmit/CDashUploadFILES-stderr.txt deleted file mode 100644 index 48177e2..0000000 --- a/Tests/RunCMake/CTestSubmit/CDashUploadFILES-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ -CMake Error at .*/Tests/RunCMake/CTestSubmit/CDashUploadFILES/test.cmake:[0-9]+ \(ctest_submit\): - ctest_submit called with unknown argument "FILES". diff --git a/Tests/RunCMake/CTestSubmit/CDashUploadFTP-result.txt b/Tests/RunCMake/CTestSubmit/CDashUploadFTP-result.txt deleted file mode 100644 index b57e2de..0000000 --- a/Tests/RunCMake/CTestSubmit/CDashUploadFTP-result.txt +++ /dev/null @@ -1 +0,0 @@ -(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/CDashUploadFTP-stderr.txt b/Tests/RunCMake/CTestSubmit/CDashUploadFTP-stderr.txt deleted file mode 100644 index 77df44f..0000000 --- a/Tests/RunCMake/CTestSubmit/CDashUploadFTP-stderr.txt +++ /dev/null @@ -1 +0,0 @@ -Only http and https are supported for CDASH_UPLOAD diff --git a/Tests/RunCMake/CTestSubmit/CDashUploadNone-result.txt b/Tests/RunCMake/CTestSubmit/CDashUploadNone-result.txt deleted file mode 100644 index b57e2de..0000000 --- a/Tests/RunCMake/CTestSubmit/CDashUploadNone-result.txt +++ /dev/null @@ -1 +0,0 @@ -(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/CDashUploadNone-stderr.txt b/Tests/RunCMake/CTestSubmit/CDashUploadNone-stderr.txt deleted file mode 100644 index af95b5c..0000000 --- a/Tests/RunCMake/CTestSubmit/CDashUploadNone-stderr.txt +++ /dev/null @@ -1 +0,0 @@ -Upload file not specified diff --git a/Tests/RunCMake/CTestSubmit/CDashUploadPARTS-result.txt b/Tests/RunCMake/CTestSubmit/CDashUploadPARTS-result.txt deleted file mode 100644 index b57e2de..0000000 --- a/Tests/RunCMake/CTestSubmit/CDashUploadPARTS-result.txt +++ /dev/null @@ -1 +0,0 @@ -(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/CDashUploadPARTS-stderr.txt b/Tests/RunCMake/CTestSubmit/CDashUploadPARTS-stderr.txt deleted file mode 100644 index 497ead2..0000000 --- a/Tests/RunCMake/CTestSubmit/CDashUploadPARTS-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ -CMake Error at .*/Tests/RunCMake/CTestSubmit/CDashUploadPARTS/test.cmake:[0-9]+ \(ctest_submit\): - ctest_submit called with unknown argument "PARTS". diff --git a/Tests/RunCMake/CTestSubmit/CDashUploadRETRY_COUNT-result.txt b/Tests/RunCMake/CTestSubmit/CDashUploadRETRY_COUNT-result.txt deleted file mode 100644 index b57e2de..0000000 --- a/Tests/RunCMake/CTestSubmit/CDashUploadRETRY_COUNT-result.txt +++ /dev/null @@ -1 +0,0 @@ -(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/CDashUploadRETRY_COUNT-stderr.txt b/Tests/RunCMake/CTestSubmit/CDashUploadRETRY_COUNT-stderr.txt deleted file mode 100644 index 8c4e6b1..0000000 --- a/Tests/RunCMake/CTestSubmit/CDashUploadRETRY_COUNT-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ -CMake Error at .*/Tests/RunCMake/CTestSubmit/CDashUploadRETRY_COUNT/test.cmake:[0-9]+ \(ctest_submit\): - ctest_submit called with unknown argument "RETRY_COUNT". diff --git a/Tests/RunCMake/CTestSubmit/CDashUploadRETRY_DELAY-result.txt b/Tests/RunCMake/CTestSubmit/CDashUploadRETRY_DELAY-result.txt deleted file mode 100644 index b57e2de..0000000 --- a/Tests/RunCMake/CTestSubmit/CDashUploadRETRY_DELAY-result.txt +++ /dev/null @@ -1 +0,0 @@ -(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/CDashUploadRETRY_DELAY-stderr.txt b/Tests/RunCMake/CTestSubmit/CDashUploadRETRY_DELAY-stderr.txt deleted file mode 100644 index 6c56399..0000000 --- a/Tests/RunCMake/CTestSubmit/CDashUploadRETRY_DELAY-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ -CMake Error at .*/Tests/RunCMake/CTestSubmit/CDashUploadRETRY_DELAY/test.cmake:[0-9]+ \(ctest_submit\): - ctest_submit called with unknown argument "RETRY_DELAY". diff --git a/Tests/RunCMake/CTestSubmit/CMakeLists.txt.in b/Tests/RunCMake/CTestSubmit/CMakeLists.txt.in deleted file mode 100644 index 96e6c13..0000000 --- a/Tests/RunCMake/CTestSubmit/CMakeLists.txt.in +++ /dev/null @@ -1,4 +0,0 @@ -cmake_minimum_required(VERSION 3.1) -project(CTestSubmit@CASE_NAME@ NONE) -include(CTest) -add_test(NAME RunCMakeVersion COMMAND "${CMAKE_COMMAND}" --version) diff --git a/Tests/RunCMake/CTestSubmit/CTestConfig.cmake.in b/Tests/RunCMake/CTestSubmit/CTestConfig.cmake.in deleted file mode 100644 index 378a85a..0000000 --- a/Tests/RunCMake/CTestSubmit/CTestConfig.cmake.in +++ /dev/null @@ -1,6 +0,0 @@ -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@") diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-cp-result.txt b/Tests/RunCMake/CTestSubmit/FailDrop-cp-result.txt deleted file mode 100644 index b57e2de..0000000 --- a/Tests/RunCMake/CTestSubmit/FailDrop-cp-result.txt +++ /dev/null @@ -1 +0,0 @@ -(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-cp-stderr.txt b/Tests/RunCMake/CTestSubmit/FailDrop-cp-stderr.txt deleted file mode 100644 index b451315..0000000 --- a/Tests/RunCMake/CTestSubmit/FailDrop-cp-stderr.txt +++ /dev/null @@ -1,4 +0,0 @@ -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 deleted file mode 100644 index fa6e004..0000000 --- a/Tests/RunCMake/CTestSubmit/FailDrop-cp-stdout.txt +++ /dev/null @@ -1 +0,0 @@ -Submit files \(using cp\) diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-ftp-result.txt b/Tests/RunCMake/CTestSubmit/FailDrop-ftp-result.txt deleted file mode 100644 index b57e2de..0000000 --- a/Tests/RunCMake/CTestSubmit/FailDrop-ftp-result.txt +++ /dev/null @@ -1 +0,0 @@ -(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-ftp-stderr.txt b/Tests/RunCMake/CTestSubmit/FailDrop-ftp-stderr.txt deleted file mode 100644 index a622fac..0000000 --- a/Tests/RunCMake/CTestSubmit/FailDrop-ftp-stderr.txt +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 345bb62..0000000 --- a/Tests/RunCMake/CTestSubmit/FailDrop-ftp-stdout.txt +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index b57e2de..0000000 --- a/Tests/RunCMake/CTestSubmit/FailDrop-http-result.txt +++ /dev/null @@ -1 +0,0 @@ -(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-http-stderr.txt b/Tests/RunCMake/CTestSubmit/FailDrop-http-stderr.txt deleted file mode 100644 index 6870d2e..0000000 --- a/Tests/RunCMake/CTestSubmit/FailDrop-http-stderr.txt +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index c7f35c5..0000000 --- a/Tests/RunCMake/CTestSubmit/FailDrop-http-stdout.txt +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index b57e2de..0000000 --- a/Tests/RunCMake/CTestSubmit/FailDrop-https-result.txt +++ /dev/null @@ -1 +0,0 @@ -(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-https-stderr.txt b/Tests/RunCMake/CTestSubmit/FailDrop-https-stderr.txt deleted file mode 100644 index a3c0cd5..0000000 --- a/Tests/RunCMake/CTestSubmit/FailDrop-https-stderr.txt +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 19f8234..0000000 --- a/Tests/RunCMake/CTestSubmit/FailDrop-https-stdout.txt +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index b57e2de..0000000 --- a/Tests/RunCMake/CTestSubmit/FailDrop-scp-result.txt +++ /dev/null @@ -1 +0,0 @@ -(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-scp-stderr.txt b/Tests/RunCMake/CTestSubmit/FailDrop-scp-stderr.txt deleted file mode 100644 index 42b8f50..0000000 --- a/Tests/RunCMake/CTestSubmit/FailDrop-scp-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ - 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 deleted file mode 100644 index ec2ce92..0000000 --- a/Tests/RunCMake/CTestSubmit/FailDrop-scp-stdout.txt +++ /dev/null @@ -1 +0,0 @@ -Submit files \(using scp\) diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-result.txt b/Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-result.txt deleted file mode 100644 index b57e2de..0000000 --- a/Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-result.txt +++ /dev/null @@ -1 +0,0 @@ -(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stderr.txt b/Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stderr.txt deleted file mode 100644 index 020b615..0000000 --- a/Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ - (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 deleted file mode 100644 index ed2acb5..0000000 --- a/Tests/RunCMake/CTestSubmit/FailDrop-xmlrpc-stdout.txt +++ /dev/null @@ -1 +0,0 @@ -Submit files \(using xmlrpc\) diff --git a/Tests/RunCMake/CTestSubmit/PARTSCDashUpload-result.txt b/Tests/RunCMake/CTestSubmit/PARTSCDashUpload-result.txt deleted file mode 100644 index b57e2de..0000000 --- a/Tests/RunCMake/CTestSubmit/PARTSCDashUpload-result.txt +++ /dev/null @@ -1 +0,0 @@ -(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/PARTSCDashUpload-stderr.txt b/Tests/RunCMake/CTestSubmit/PARTSCDashUpload-stderr.txt deleted file mode 100644 index dfa7e33..0000000 --- a/Tests/RunCMake/CTestSubmit/PARTSCDashUpload-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ -CMake Error at .*/Tests/RunCMake/CTestSubmit/PARTSCDashUpload/test.cmake:[0-9]+ \(ctest_submit\): - Part name "CDASH_UPLOAD" is invalid. diff --git a/Tests/RunCMake/CTestSubmit/PARTSCDashUploadType-result.txt b/Tests/RunCMake/CTestSubmit/PARTSCDashUploadType-result.txt deleted file mode 100644 index b57e2de..0000000 --- a/Tests/RunCMake/CTestSubmit/PARTSCDashUploadType-result.txt +++ /dev/null @@ -1 +0,0 @@ -(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/PARTSCDashUploadType-stderr.txt b/Tests/RunCMake/CTestSubmit/PARTSCDashUploadType-stderr.txt deleted file mode 100644 index 42becaf..0000000 --- a/Tests/RunCMake/CTestSubmit/PARTSCDashUploadType-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ -CMake Error at .*/Tests/RunCMake/CTestSubmit/PARTSCDashUploadType/test.cmake:[0-9]+ \(ctest_submit\): - Part name "CDASH_UPLOAD_TYPE" is invalid. diff --git a/Tests/RunCMake/CTestSubmit/RepeatRETURN_VALUE-result.txt b/Tests/RunCMake/CTestSubmit/RepeatRETURN_VALUE-result.txt deleted file mode 100644 index b57e2de..0000000 --- a/Tests/RunCMake/CTestSubmit/RepeatRETURN_VALUE-result.txt +++ /dev/null @@ -1 +0,0 @@ -(-1|255) diff --git a/Tests/RunCMake/CTestSubmit/RepeatRETURN_VALUE-stderr.txt b/Tests/RunCMake/CTestSubmit/RepeatRETURN_VALUE-stderr.txt deleted file mode 100644 index d56793e..0000000 --- a/Tests/RunCMake/CTestSubmit/RepeatRETURN_VALUE-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ -CMake Error at .*/Tests/RunCMake/CTestSubmit/RepeatRETURN_VALUE/test.cmake:[0-9]+ \(ctest_submit\): - Called with more than one value for RETURN_VALUE diff --git a/Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake b/Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake deleted file mode 100644 index c004e97..0000000 --- a/Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake +++ /dev/null @@ -1,46 +0,0 @@ -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) diff --git a/Tests/RunCMake/CTestSubmit/test.cmake.in b/Tests/RunCMake/CTestSubmit/test.cmake.in deleted file mode 100644 index ba826f1..0000000 --- a/Tests/RunCMake/CTestSubmit/test.cmake.in +++ /dev/null @@ -1,16 +0,0 @@ -cmake_minimum_required(VERSION 3.1) - -set(CTEST_SITE "test-site") -set(CTEST_BUILD_NAME "test-build-name") -set(CTEST_SOURCE_DIRECTORY "@RunCMake_BINARY_DIR@/@CASE_NAME@") -set(CTEST_BINARY_DIRECTORY "@RunCMake_BINARY_DIR@/@CASE_NAME@-build") -set(CTEST_CMAKE_GENERATOR "@RunCMake_GENERATOR@") -set(CTEST_CMAKE_GENERATOR_PLATFORM "@RunCMake_GENERATOR_PLATFORM@") -set(CTEST_CMAKE_GENERATOR_TOOLSET "@RunCMake_GENERATOR_TOOLSET@") -set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}") - -ctest_start(Experimental) -ctest_configure() - -set(ctest_submit_args "@CASE_CTEST_SUBMIT_ARGS@") -ctest_submit(${ctest_submit_args}) diff --git a/Tests/RunCMake/ctest_submit/BadArg-result.txt b/Tests/RunCMake/ctest_submit/BadArg-result.txt new file mode 100644 index 0000000..b57e2de --- /dev/null +++ b/Tests/RunCMake/ctest_submit/BadArg-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/ctest_submit/BadArg-stderr.txt b/Tests/RunCMake/ctest_submit/BadArg-stderr.txt new file mode 100644 index 0000000..7eeef0a --- /dev/null +++ b/Tests/RunCMake/ctest_submit/BadArg-stderr.txt @@ -0,0 +1,2 @@ +CMake Error at .*/Tests/RunCMake/ctest_submit/BadArg/test.cmake:[0-9]+ \(ctest_submit\): + ctest_submit called with unknown argument "bad-arg". diff --git a/Tests/RunCMake/ctest_submit/BadFILES-result.txt b/Tests/RunCMake/ctest_submit/BadFILES-result.txt new file mode 100644 index 0000000..b57e2de --- /dev/null +++ b/Tests/RunCMake/ctest_submit/BadFILES-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/ctest_submit/BadFILES-stderr.txt b/Tests/RunCMake/ctest_submit/BadFILES-stderr.txt new file mode 100644 index 0000000..ab84ab9 --- /dev/null +++ b/Tests/RunCMake/ctest_submit/BadFILES-stderr.txt @@ -0,0 +1,2 @@ +CMake Error at .*/Tests/RunCMake/ctest_submit/BadFILES/test.cmake:[0-9]+ \(ctest_submit\): + File "bad-file" does not exist. Cannot submit a non-existent file. diff --git a/Tests/RunCMake/ctest_submit/BadPARTS-result.txt b/Tests/RunCMake/ctest_submit/BadPARTS-result.txt new file mode 100644 index 0000000..b57e2de --- /dev/null +++ b/Tests/RunCMake/ctest_submit/BadPARTS-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/ctest_submit/BadPARTS-stderr.txt b/Tests/RunCMake/ctest_submit/BadPARTS-stderr.txt new file mode 100644 index 0000000..3db54f3 --- /dev/null +++ b/Tests/RunCMake/ctest_submit/BadPARTS-stderr.txt @@ -0,0 +1,2 @@ +CMake Error at .*/Tests/RunCMake/ctest_submit/BadPARTS/test.cmake:[0-9]+ \(ctest_submit\): + Part name "bad-part" is invalid. diff --git a/Tests/RunCMake/ctest_submit/CDashUploadFILES-result.txt b/Tests/RunCMake/ctest_submit/CDashUploadFILES-result.txt new file mode 100644 index 0000000..b57e2de --- /dev/null +++ b/Tests/RunCMake/ctest_submit/CDashUploadFILES-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/ctest_submit/CDashUploadFILES-stderr.txt b/Tests/RunCMake/ctest_submit/CDashUploadFILES-stderr.txt new file mode 100644 index 0000000..0106fee --- /dev/null +++ b/Tests/RunCMake/ctest_submit/CDashUploadFILES-stderr.txt @@ -0,0 +1,2 @@ +CMake Error at .*/Tests/RunCMake/ctest_submit/CDashUploadFILES/test.cmake:[0-9]+ \(ctest_submit\): + ctest_submit called with unknown argument "FILES". diff --git a/Tests/RunCMake/ctest_submit/CDashUploadFTP-result.txt b/Tests/RunCMake/ctest_submit/CDashUploadFTP-result.txt new file mode 100644 index 0000000..b57e2de --- /dev/null +++ b/Tests/RunCMake/ctest_submit/CDashUploadFTP-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/ctest_submit/CDashUploadFTP-stderr.txt b/Tests/RunCMake/ctest_submit/CDashUploadFTP-stderr.txt new file mode 100644 index 0000000..77df44f --- /dev/null +++ b/Tests/RunCMake/ctest_submit/CDashUploadFTP-stderr.txt @@ -0,0 +1 @@ +Only http and https are supported for CDASH_UPLOAD diff --git a/Tests/RunCMake/ctest_submit/CDashUploadNone-result.txt b/Tests/RunCMake/ctest_submit/CDashUploadNone-result.txt new file mode 100644 index 0000000..b57e2de --- /dev/null +++ b/Tests/RunCMake/ctest_submit/CDashUploadNone-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/ctest_submit/CDashUploadNone-stderr.txt b/Tests/RunCMake/ctest_submit/CDashUploadNone-stderr.txt new file mode 100644 index 0000000..af95b5c --- /dev/null +++ b/Tests/RunCMake/ctest_submit/CDashUploadNone-stderr.txt @@ -0,0 +1 @@ +Upload file not specified diff --git a/Tests/RunCMake/ctest_submit/CDashUploadPARTS-result.txt b/Tests/RunCMake/ctest_submit/CDashUploadPARTS-result.txt new file mode 100644 index 0000000..b57e2de --- /dev/null +++ b/Tests/RunCMake/ctest_submit/CDashUploadPARTS-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/ctest_submit/CDashUploadPARTS-stderr.txt b/Tests/RunCMake/ctest_submit/CDashUploadPARTS-stderr.txt new file mode 100644 index 0000000..fe94cb7 --- /dev/null +++ b/Tests/RunCMake/ctest_submit/CDashUploadPARTS-stderr.txt @@ -0,0 +1,2 @@ +CMake Error at .*/Tests/RunCMake/ctest_submit/CDashUploadPARTS/test.cmake:[0-9]+ \(ctest_submit\): + ctest_submit called with unknown argument "PARTS". diff --git a/Tests/RunCMake/ctest_submit/CDashUploadRETRY_COUNT-result.txt b/Tests/RunCMake/ctest_submit/CDashUploadRETRY_COUNT-result.txt new file mode 100644 index 0000000..b57e2de --- /dev/null +++ b/Tests/RunCMake/ctest_submit/CDashUploadRETRY_COUNT-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/ctest_submit/CDashUploadRETRY_COUNT-stderr.txt b/Tests/RunCMake/ctest_submit/CDashUploadRETRY_COUNT-stderr.txt new file mode 100644 index 0000000..21621d4 --- /dev/null +++ b/Tests/RunCMake/ctest_submit/CDashUploadRETRY_COUNT-stderr.txt @@ -0,0 +1,2 @@ +CMake Error at .*/Tests/RunCMake/ctest_submit/CDashUploadRETRY_COUNT/test.cmake:[0-9]+ \(ctest_submit\): + ctest_submit called with unknown argument "RETRY_COUNT". diff --git a/Tests/RunCMake/ctest_submit/CDashUploadRETRY_DELAY-result.txt b/Tests/RunCMake/ctest_submit/CDashUploadRETRY_DELAY-result.txt new file mode 100644 index 0000000..b57e2de --- /dev/null +++ b/Tests/RunCMake/ctest_submit/CDashUploadRETRY_DELAY-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/ctest_submit/CDashUploadRETRY_DELAY-stderr.txt b/Tests/RunCMake/ctest_submit/CDashUploadRETRY_DELAY-stderr.txt new file mode 100644 index 0000000..f726674 --- /dev/null +++ b/Tests/RunCMake/ctest_submit/CDashUploadRETRY_DELAY-stderr.txt @@ -0,0 +1,2 @@ +CMake Error at .*/Tests/RunCMake/ctest_submit/CDashUploadRETRY_DELAY/test.cmake:[0-9]+ \(ctest_submit\): + ctest_submit called with unknown argument "RETRY_DELAY". diff --git a/Tests/RunCMake/ctest_submit/CMakeLists.txt.in b/Tests/RunCMake/ctest_submit/CMakeLists.txt.in new file mode 100644 index 0000000..96e6c13 --- /dev/null +++ b/Tests/RunCMake/ctest_submit/CMakeLists.txt.in @@ -0,0 +1,4 @@ +cmake_minimum_required(VERSION 3.1) +project(CTestSubmit@CASE_NAME@ NONE) +include(CTest) +add_test(NAME RunCMakeVersion COMMAND "${CMAKE_COMMAND}" --version) diff --git a/Tests/RunCMake/ctest_submit/CTestConfig.cmake.in b/Tests/RunCMake/ctest_submit/CTestConfig.cmake.in new file mode 100644 index 0000000..378a85a --- /dev/null +++ b/Tests/RunCMake/ctest_submit/CTestConfig.cmake.in @@ -0,0 +1,6 @@ +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@") diff --git a/Tests/RunCMake/ctest_submit/FailDrop-cp-result.txt b/Tests/RunCMake/ctest_submit/FailDrop-cp-result.txt new file mode 100644 index 0000000..b57e2de --- /dev/null +++ b/Tests/RunCMake/ctest_submit/FailDrop-cp-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/ctest_submit/FailDrop-cp-stderr.txt b/Tests/RunCMake/ctest_submit/FailDrop-cp-stderr.txt new file mode 100644 index 0000000..c3c084d --- /dev/null +++ b/Tests/RunCMake/ctest_submit/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/ctest_submit/FailDrop-cp/test.cmake diff --git a/Tests/RunCMake/ctest_submit/FailDrop-cp-stdout.txt b/Tests/RunCMake/ctest_submit/FailDrop-cp-stdout.txt new file mode 100644 index 0000000..fa6e004 --- /dev/null +++ b/Tests/RunCMake/ctest_submit/FailDrop-cp-stdout.txt @@ -0,0 +1 @@ +Submit files \(using cp\) diff --git a/Tests/RunCMake/ctest_submit/FailDrop-ftp-result.txt b/Tests/RunCMake/ctest_submit/FailDrop-ftp-result.txt new file mode 100644 index 0000000..b57e2de --- /dev/null +++ b/Tests/RunCMake/ctest_submit/FailDrop-ftp-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/ctest_submit/FailDrop-ftp-stderr.txt b/Tests/RunCMake/ctest_submit/FailDrop-ftp-stderr.txt new file mode 100644 index 0000000..73df5c1 --- /dev/null +++ b/Tests/RunCMake/ctest_submit/FailDrop-ftp-stderr.txt @@ -0,0 +1,3 @@ +Error message was: .* + Problems when submitting via FTP +Error in read script: .*/Tests/RunCMake/ctest_submit/FailDrop-ftp/test.cmake diff --git a/Tests/RunCMake/ctest_submit/FailDrop-ftp-stdout.txt b/Tests/RunCMake/ctest_submit/FailDrop-ftp-stdout.txt new file mode 100644 index 0000000..345bb62 --- /dev/null +++ b/Tests/RunCMake/ctest_submit/FailDrop-ftp-stdout.txt @@ -0,0 +1,3 @@ +Submit files \(using ftp\) + Using FTP submit method + Drop site: ftp:// diff --git a/Tests/RunCMake/ctest_submit/FailDrop-http-result.txt b/Tests/RunCMake/ctest_submit/FailDrop-http-result.txt new file mode 100644 index 0000000..b57e2de --- /dev/null +++ b/Tests/RunCMake/ctest_submit/FailDrop-http-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/ctest_submit/FailDrop-http-stderr.txt b/Tests/RunCMake/ctest_submit/FailDrop-http-stderr.txt new file mode 100644 index 0000000..c1a9126 --- /dev/null +++ b/Tests/RunCMake/ctest_submit/FailDrop-http-stderr.txt @@ -0,0 +1,3 @@ +Error message was: .* + Problems when submitting via HTTP +Error in read script: .*/Tests/RunCMake/ctest_submit/FailDrop-http/test.cmake diff --git a/Tests/RunCMake/ctest_submit/FailDrop-http-stdout.txt b/Tests/RunCMake/ctest_submit/FailDrop-http-stdout.txt new file mode 100644 index 0000000..c7f35c5 --- /dev/null +++ b/Tests/RunCMake/ctest_submit/FailDrop-http-stdout.txt @@ -0,0 +1,3 @@ +Submit files \(using http\) + Using HTTP submit method + Drop site:http:// diff --git a/Tests/RunCMake/ctest_submit/FailDrop-https-result.txt b/Tests/RunCMake/ctest_submit/FailDrop-https-result.txt new file mode 100644 index 0000000..b57e2de --- /dev/null +++ b/Tests/RunCMake/ctest_submit/FailDrop-https-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/ctest_submit/FailDrop-https-stderr.txt b/Tests/RunCMake/ctest_submit/FailDrop-https-stderr.txt new file mode 100644 index 0000000..11db01a --- /dev/null +++ b/Tests/RunCMake/ctest_submit/FailDrop-https-stderr.txt @@ -0,0 +1,3 @@ +Error message was: .* + Problems when submitting via HTTP +Error in read script: .*/Tests/RunCMake/ctest_submit/FailDrop-https/test.cmake diff --git a/Tests/RunCMake/ctest_submit/FailDrop-https-stdout.txt b/Tests/RunCMake/ctest_submit/FailDrop-https-stdout.txt new file mode 100644 index 0000000..19f8234 --- /dev/null +++ b/Tests/RunCMake/ctest_submit/FailDrop-https-stdout.txt @@ -0,0 +1,3 @@ +Submit files \(using https\) + Using HTTP submit method + Drop site:https:// diff --git a/Tests/RunCMake/ctest_submit/FailDrop-scp-result.txt b/Tests/RunCMake/ctest_submit/FailDrop-scp-result.txt new file mode 100644 index 0000000..b57e2de --- /dev/null +++ b/Tests/RunCMake/ctest_submit/FailDrop-scp-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/ctest_submit/FailDrop-scp-stderr.txt b/Tests/RunCMake/ctest_submit/FailDrop-scp-stderr.txt new file mode 100644 index 0000000..0790297 --- /dev/null +++ b/Tests/RunCMake/ctest_submit/FailDrop-scp-stderr.txt @@ -0,0 +1,2 @@ + Problems when submitting via SCP +Error in read script: .*/Tests/RunCMake/ctest_submit/FailDrop-scp/test.cmake diff --git a/Tests/RunCMake/ctest_submit/FailDrop-scp-stdout.txt b/Tests/RunCMake/ctest_submit/FailDrop-scp-stdout.txt new file mode 100644 index 0000000..ec2ce92 --- /dev/null +++ b/Tests/RunCMake/ctest_submit/FailDrop-scp-stdout.txt @@ -0,0 +1 @@ +Submit files \(using scp\) diff --git a/Tests/RunCMake/ctest_submit/FailDrop-xmlrpc-result.txt b/Tests/RunCMake/ctest_submit/FailDrop-xmlrpc-result.txt new file mode 100644 index 0000000..b57e2de --- /dev/null +++ b/Tests/RunCMake/ctest_submit/FailDrop-xmlrpc-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/ctest_submit/FailDrop-xmlrpc-stderr.txt b/Tests/RunCMake/ctest_submit/FailDrop-xmlrpc-stderr.txt new file mode 100644 index 0000000..23ea92c --- /dev/null +++ b/Tests/RunCMake/ctest_submit/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/ctest_submit/FailDrop-xmlrpc/test.cmake diff --git a/Tests/RunCMake/ctest_submit/FailDrop-xmlrpc-stdout.txt b/Tests/RunCMake/ctest_submit/FailDrop-xmlrpc-stdout.txt new file mode 100644 index 0000000..ed2acb5 --- /dev/null +++ b/Tests/RunCMake/ctest_submit/FailDrop-xmlrpc-stdout.txt @@ -0,0 +1 @@ +Submit files \(using xmlrpc\) diff --git a/Tests/RunCMake/ctest_submit/PARTSCDashUpload-result.txt b/Tests/RunCMake/ctest_submit/PARTSCDashUpload-result.txt new file mode 100644 index 0000000..b57e2de --- /dev/null +++ b/Tests/RunCMake/ctest_submit/PARTSCDashUpload-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/ctest_submit/PARTSCDashUpload-stderr.txt b/Tests/RunCMake/ctest_submit/PARTSCDashUpload-stderr.txt new file mode 100644 index 0000000..ad4c8cb --- /dev/null +++ b/Tests/RunCMake/ctest_submit/PARTSCDashUpload-stderr.txt @@ -0,0 +1,2 @@ +CMake Error at .*/Tests/RunCMake/ctest_submit/PARTSCDashUpload/test.cmake:[0-9]+ \(ctest_submit\): + Part name "CDASH_UPLOAD" is invalid. diff --git a/Tests/RunCMake/ctest_submit/PARTSCDashUploadType-result.txt b/Tests/RunCMake/ctest_submit/PARTSCDashUploadType-result.txt new file mode 100644 index 0000000..b57e2de --- /dev/null +++ b/Tests/RunCMake/ctest_submit/PARTSCDashUploadType-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/ctest_submit/PARTSCDashUploadType-stderr.txt b/Tests/RunCMake/ctest_submit/PARTSCDashUploadType-stderr.txt new file mode 100644 index 0000000..8d8a852 --- /dev/null +++ b/Tests/RunCMake/ctest_submit/PARTSCDashUploadType-stderr.txt @@ -0,0 +1,2 @@ +CMake Error at .*/Tests/RunCMake/ctest_submit/PARTSCDashUploadType/test.cmake:[0-9]+ \(ctest_submit\): + Part name "CDASH_UPLOAD_TYPE" is invalid. diff --git a/Tests/RunCMake/ctest_submit/RepeatRETURN_VALUE-result.txt b/Tests/RunCMake/ctest_submit/RepeatRETURN_VALUE-result.txt new file mode 100644 index 0000000..b57e2de --- /dev/null +++ b/Tests/RunCMake/ctest_submit/RepeatRETURN_VALUE-result.txt @@ -0,0 +1 @@ +(-1|255) diff --git a/Tests/RunCMake/ctest_submit/RepeatRETURN_VALUE-stderr.txt b/Tests/RunCMake/ctest_submit/RepeatRETURN_VALUE-stderr.txt new file mode 100644 index 0000000..6e17c75 --- /dev/null +++ b/Tests/RunCMake/ctest_submit/RepeatRETURN_VALUE-stderr.txt @@ -0,0 +1,2 @@ +CMake Error at .*/Tests/RunCMake/ctest_submit/RepeatRETURN_VALUE/test.cmake:[0-9]+ \(ctest_submit\): + Called with more than one value for RETURN_VALUE 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) diff --git a/Tests/RunCMake/ctest_submit/test.cmake.in b/Tests/RunCMake/ctest_submit/test.cmake.in new file mode 100644 index 0000000..ba826f1 --- /dev/null +++ b/Tests/RunCMake/ctest_submit/test.cmake.in @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.1) + +set(CTEST_SITE "test-site") +set(CTEST_BUILD_NAME "test-build-name") +set(CTEST_SOURCE_DIRECTORY "@RunCMake_BINARY_DIR@/@CASE_NAME@") +set(CTEST_BINARY_DIRECTORY "@RunCMake_BINARY_DIR@/@CASE_NAME@-build") +set(CTEST_CMAKE_GENERATOR "@RunCMake_GENERATOR@") +set(CTEST_CMAKE_GENERATOR_PLATFORM "@RunCMake_GENERATOR_PLATFORM@") +set(CTEST_CMAKE_GENERATOR_TOOLSET "@RunCMake_GENERATOR_TOOLSET@") +set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}") + +ctest_start(Experimental) +ctest_configure() + +set(ctest_submit_args "@CASE_CTEST_SUBMIT_ARGS@") +ctest_submit(${ctest_submit_args}) -- cgit v0.12