diff options
author | Harry Mallon <hjmallon@gmail.com> | 2020-04-07 17:03:07 (GMT) |
---|---|---|
committer | Harry Mallon <hjmallon@gmail.com> | 2020-04-08 14:15:49 (GMT) |
commit | bf94dcba7606a7ac0c44d9071636bdfb50c2cabf (patch) | |
tree | ad8a3fd470474cc873e8dfd7332ca95f1a22c838 /Tests/RunCMake/file | |
parent | 37fa5122c2c1e2138b9e01191dc3cc1800f6ba40 (diff) | |
download | CMake-bf94dcba7606a7ac0c44d9071636bdfb50c2cabf.zip CMake-bf94dcba7606a7ac0c44d9071636bdfb50c2cabf.tar.gz CMake-bf94dcba7606a7ac0c44d9071636bdfb50c2cabf.tar.bz2 |
file(UPLOAD): Add support for TLS_VERIFY and TLS_CAINFO
* Improve and test err messages when TLS_VERIFY and TLS_CAINFO
are not set in file(DOWNLOAD) and file(UPLOAD).
Diffstat (limited to 'Tests/RunCMake/file')
13 files changed, 28 insertions, 0 deletions
diff --git a/Tests/RunCMake/file/DOWNLOAD-tls-cainfo-not-set-result.txt b/Tests/RunCMake/file/DOWNLOAD-tls-cainfo-not-set-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/file/DOWNLOAD-tls-cainfo-not-set-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/file/DOWNLOAD-tls-cainfo-not-set-stderr.txt b/Tests/RunCMake/file/DOWNLOAD-tls-cainfo-not-set-stderr.txt new file mode 100644 index 0000000..1552baa --- /dev/null +++ b/Tests/RunCMake/file/DOWNLOAD-tls-cainfo-not-set-stderr.txt @@ -0,0 +1,4 @@ +^CMake Error at DOWNLOAD-tls-cainfo-not-set.cmake:[0-9]+ \(file\): + file DOWNLOAD missing file value for TLS_CAINFO. +Call Stack \(most recent call first\): + CMakeLists.txt:[0-9]+ \(include\)$ diff --git a/Tests/RunCMake/file/DOWNLOAD-tls-cainfo-not-set.cmake b/Tests/RunCMake/file/DOWNLOAD-tls-cainfo-not-set.cmake new file mode 100644 index 0000000..b476425 --- /dev/null +++ b/Tests/RunCMake/file/DOWNLOAD-tls-cainfo-not-set.cmake @@ -0,0 +1 @@ +file(DOWNLOAD "" "" TLS_CAINFO) diff --git a/Tests/RunCMake/file/DOWNLOAD-tls-verify-not-set-result.txt b/Tests/RunCMake/file/DOWNLOAD-tls-verify-not-set-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/file/DOWNLOAD-tls-verify-not-set-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/file/DOWNLOAD-tls-verify-not-set-stderr.txt b/Tests/RunCMake/file/DOWNLOAD-tls-verify-not-set-stderr.txt new file mode 100644 index 0000000..2f46c0c --- /dev/null +++ b/Tests/RunCMake/file/DOWNLOAD-tls-verify-not-set-stderr.txt @@ -0,0 +1,4 @@ +^CMake Error at DOWNLOAD-tls-verify-not-set.cmake:[0-9]+ \(file\): + file DOWNLOAD missing bool value for TLS_VERIFY. +Call Stack \(most recent call first\): + CMakeLists.txt:[0-9]+ \(include\)$ diff --git a/Tests/RunCMake/file/DOWNLOAD-tls-verify-not-set.cmake b/Tests/RunCMake/file/DOWNLOAD-tls-verify-not-set.cmake new file mode 100644 index 0000000..919368c --- /dev/null +++ b/Tests/RunCMake/file/DOWNLOAD-tls-verify-not-set.cmake @@ -0,0 +1 @@ +file(DOWNLOAD "" "" TLS_VERIFY) diff --git a/Tests/RunCMake/file/RunCMakeTest.cmake b/Tests/RunCMake/file/RunCMakeTest.cmake index f5461ad..a4de1d3 100644 --- a/Tests/RunCMake/file/RunCMakeTest.cmake +++ b/Tests/RunCMake/file/RunCMakeTest.cmake @@ -8,6 +8,8 @@ run_cmake(DOWNLOAD-hash-mismatch) run_cmake(DOWNLOAD-unused-argument) run_cmake(DOWNLOAD-httpheader-not-set) run_cmake(DOWNLOAD-netrc-bad) +run_cmake(DOWNLOAD-tls-cainfo-not-set) +run_cmake(DOWNLOAD-tls-verify-not-set) run_cmake(DOWNLOAD-pass-not-set) run_cmake(TOUCH) run_cmake(TOUCH-error-in-source-directory) @@ -15,6 +17,8 @@ run_cmake(TOUCH-error-missing-directory) run_cmake(UPLOAD-unused-argument) run_cmake(UPLOAD-httpheader-not-set) run_cmake(UPLOAD-netrc-bad) +run_cmake(UPLOAD-tls-cainfo-not-set) +run_cmake(UPLOAD-tls-verify-not-set) run_cmake(UPLOAD-pass-not-set) run_cmake(INSTALL-DIRECTORY) run_cmake(INSTALL-FILES_FROM_DIR) diff --git a/Tests/RunCMake/file/UPLOAD-tls-cainfo-not-set-result.txt b/Tests/RunCMake/file/UPLOAD-tls-cainfo-not-set-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/file/UPLOAD-tls-cainfo-not-set-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/file/UPLOAD-tls-cainfo-not-set-stderr.txt b/Tests/RunCMake/file/UPLOAD-tls-cainfo-not-set-stderr.txt new file mode 100644 index 0000000..a5fa4e8 --- /dev/null +++ b/Tests/RunCMake/file/UPLOAD-tls-cainfo-not-set-stderr.txt @@ -0,0 +1,4 @@ +^CMake Error at UPLOAD-tls-cainfo-not-set.cmake:[0-9]+ \(file\): + file UPLOAD missing file value for TLS_CAINFO. +Call Stack \(most recent call first\): + CMakeLists.txt:[0-9]+ \(include\)$ diff --git a/Tests/RunCMake/file/UPLOAD-tls-cainfo-not-set.cmake b/Tests/RunCMake/file/UPLOAD-tls-cainfo-not-set.cmake new file mode 100644 index 0000000..8eb7c83 --- /dev/null +++ b/Tests/RunCMake/file/UPLOAD-tls-cainfo-not-set.cmake @@ -0,0 +1 @@ +file(UPLOAD "" "" TLS_CAINFO) diff --git a/Tests/RunCMake/file/UPLOAD-tls-verify-not-set-result.txt b/Tests/RunCMake/file/UPLOAD-tls-verify-not-set-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/file/UPLOAD-tls-verify-not-set-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/file/UPLOAD-tls-verify-not-set-stderr.txt b/Tests/RunCMake/file/UPLOAD-tls-verify-not-set-stderr.txt new file mode 100644 index 0000000..c4dffcd --- /dev/null +++ b/Tests/RunCMake/file/UPLOAD-tls-verify-not-set-stderr.txt @@ -0,0 +1,4 @@ +^CMake Error at UPLOAD-tls-verify-not-set.cmake:[0-9]+ \(file\): + file UPLOAD missing bool value for TLS_VERIFY. +Call Stack \(most recent call first\): + CMakeLists.txt:[0-9]+ \(include\)$ diff --git a/Tests/RunCMake/file/UPLOAD-tls-verify-not-set.cmake b/Tests/RunCMake/file/UPLOAD-tls-verify-not-set.cmake new file mode 100644 index 0000000..8b9d293 --- /dev/null +++ b/Tests/RunCMake/file/UPLOAD-tls-verify-not-set.cmake @@ -0,0 +1 @@ +file(UPLOAD "" "" TLS_VERIFY) |