diff options
author | David Cole <david.cole@kitware.com> | 2011-02-23 18:53:53 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2011-02-25 22:26:34 (GMT) |
commit | 963bebcc174411e1087af31cc5054422b0080e76 (patch) | |
tree | ea03e151378a797ccb757674ac6625782a83234c /Tests/CMakeTests/FileTestScript.cmake | |
parent | 62f816adde5312eb97724796efa8e4dff9534f54 (diff) | |
download | CMake-963bebcc174411e1087af31cc5054422b0080e76.zip CMake-963bebcc174411e1087af31cc5054422b0080e76.tar.gz CMake-963bebcc174411e1087af31cc5054422b0080e76.tar.bz2 |
Implement file(UPLOAD (#11286)
Including documentation and testing, of course.
Diffstat (limited to 'Tests/CMakeTests/FileTestScript.cmake')
-rw-r--r-- | Tests/CMakeTests/FileTestScript.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Tests/CMakeTests/FileTestScript.cmake b/Tests/CMakeTests/FileTestScript.cmake index c4e27bd..9a43569 100644 --- a/Tests/CMakeTests/FileTestScript.cmake +++ b/Tests/CMakeTests/FileTestScript.cmake @@ -201,6 +201,26 @@ elseif(testname STREQUAL download_with_bogus_protocol) # pass message("l='${l}'") message("s='${s}'") +elseif(testname STREQUAL upload_wrong_number_of_args) # fail + file(UPLOAD ./ffff) + +elseif(testname STREQUAL upload_missing_time) # fail + file(UPLOAD ./ffff zzzz://bogus/ffff TIMEOUT) + +elseif(testname STREQUAL upload_missing_log_var) # fail + file(UPLOAD ./ffff zzzz://bogus/ffff TIMEOUT 2 LOG) + +elseif(testname STREQUAL upload_missing_status_var) # fail + file(UPLOAD ./ffff zzzz://bogus/ffff TIMEOUT 2 LOG l STATUS) + +elseif(testname STREQUAL upload_file_that_doesnt_exist) # fail + file(UPLOAD ./ffff zzzz://bogus/ffff) + +elseif(testname STREQUAL upload_with_bogus_protocol) # pass + file(UPLOAD ${CMAKE_CURRENT_LIST_FILE} zzzz://bogus/ffff TIMEOUT 2 LOG l STATUS s) + message("l='${l}'") + message("s='${s}'") + else() # fail message(FATAL_ERROR "testname='${testname}' - error: no such test in '${CMAKE_CURRENT_LIST_FILE}'") |