summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file/DOWNLOAD-netrc-bad.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-10-19 13:27:22 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-10-19 13:27:43 (GMT)
commit358ceee5d84723f60c2db5cdff52445d478d6a42 (patch)
treedd5348a6b863c3ad92577376b4d9969d27eb5d30 /Tests/RunCMake/file/DOWNLOAD-netrc-bad.cmake
parentd20927533014312ae4b6ef6c1a3da5daf4e60618 (diff)
parentd45aa38a068ef38331b5dab195c42502e3829eb0 (diff)
downloadCMake-358ceee5d84723f60c2db5cdff52445d478d6a42.zip
CMake-358ceee5d84723f60c2db5cdff52445d478d6a42.tar.gz
CMake-358ceee5d84723f60c2db5cdff52445d478d6a42.tar.bz2
Merge topic 'curl_netrc_options'
d45aa38a Add dev notes for topic 'curl_netrc_options' 60c272b6 ExternalProject: Add support for NETRC and NETRC_FILE suboption 754e39dd Add testcases for file(DOWNLOAD|UPLOAD) netrc options 5d67e902 file(DOWNLOAD|UPLOAD): Add 'NETRC' and 'NETRC_FILE' suboption Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ruslan Baratov <ruslan_baratov@yahoo.com> Merge-request: !1376
Diffstat (limited to 'Tests/RunCMake/file/DOWNLOAD-netrc-bad.cmake')
-rw-r--r--Tests/RunCMake/file/DOWNLOAD-netrc-bad.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/RunCMake/file/DOWNLOAD-netrc-bad.cmake b/Tests/RunCMake/file/DOWNLOAD-netrc-bad.cmake
new file mode 100644
index 0000000..6a62df9
--- /dev/null
+++ b/Tests/RunCMake/file/DOWNLOAD-netrc-bad.cmake
@@ -0,0 +1,15 @@
+if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" MATCHES "^/")
+ set(slash /)
+endif()
+file(DOWNLOAD "" "" NETRC)
+file(DOWNLOAD "" "" NETRC_FILE)
+set(CMAKE_NETRC FALSE)
+file(DOWNLOAD
+ "file://${slash}${CMAKE_CURRENT_SOURCE_DIR}/DOWNLOAD-netrc-bad.txt"
+ "${CMAKE_CURRENT_BINARY_DIR}/netrc-bad.txt"
+ NETRC INVALID
+ )
+file(DOWNLOAD
+ "file://${slash}${CMAKE_CURRENT_SOURCE_DIR}/DOWNLOAD-netrc-bad.txt"
+ "${CMAKE_CURRENT_BINARY_DIR}/netrc-bad.txt"
+ )