summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file/UPLOAD-netrc-bad.cmake
diff options
context:
space:
mode:
authorShane Parris <shane.lee.parris@gmail.com>2017-10-18 14:27:55 (GMT)
committerBrad King <brad.king@kitware.com>2017-10-18 19:21:42 (GMT)
commit754e39dd36cdeea4a15fca9ef9fa29f0fa8006d4 (patch)
tree099f5e13097e5396eed8a7a55a46026a255d0833 /Tests/RunCMake/file/UPLOAD-netrc-bad.cmake
parent5d67e9025d1c7f1259477450831135667b6f1eeb (diff)
downloadCMake-754e39dd36cdeea4a15fca9ef9fa29f0fa8006d4.zip
CMake-754e39dd36cdeea4a15fca9ef9fa29f0fa8006d4.tar.gz
CMake-754e39dd36cdeea4a15fca9ef9fa29f0fa8006d4.tar.bz2
Add testcases for file(DOWNLOAD|UPLOAD) netrc options
Diffstat (limited to 'Tests/RunCMake/file/UPLOAD-netrc-bad.cmake')
-rw-r--r--Tests/RunCMake/file/UPLOAD-netrc-bad.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/RunCMake/file/UPLOAD-netrc-bad.cmake b/Tests/RunCMake/file/UPLOAD-netrc-bad.cmake
new file mode 100644
index 0000000..e59a2c4
--- /dev/null
+++ b/Tests/RunCMake/file/UPLOAD-netrc-bad.cmake
@@ -0,0 +1,15 @@
+if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" MATCHES "^/")
+ set(slash /)
+endif()
+file(UPLOAD "" "" NETRC)
+file(UPLOAD "" "" NETRC_FILE)
+set(CMAKE_NETRC FALSE)
+file(UPLOAD
+ "${CMAKE_CURRENT_SOURCE_DIR}/UPLOAD-netrc-bad.txt"
+ "file://${slash}${CMAKE_CURRENT_BINARY_DIR}/netrc-bad.txt"
+ NETRC INVALID
+ )
+file(UPLOAD
+ "${CMAKE_CURRENT_SOURCE_DIR}/UPLOAD-netrc-bad.txt"
+ "file://${slash}${CMAKE_CURRENT_BINARY_DIR}/netrc-bad.txt"
+ )