summaryrefslogtreecommitdiff
path: root/curl/tests/https.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-01-11 23:51:49 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-01-22 18:04:37 +0300
commit23b1a0ab70f190dbbb33dabb18ec039c7d85d6b3 (patch)
treec86693607a9be05c53a44ce311d8f83638cbda03 /curl/tests/https.testscript
parented9a6438ec4b50ee897ac01296034de84167f2fe (diff)
Add implementation
Diffstat (limited to 'curl/tests/https.testscript')
-rw-r--r--curl/tests/https.testscript22
1 files changed, 22 insertions, 0 deletions
diff --git a/curl/tests/https.testscript b/curl/tests/https.testscript
new file mode 100644
index 0000000..ae621ac
--- /dev/null
+++ b/curl/tests/https.testscript
@@ -0,0 +1,22 @@
+# file : tests/https.testscript
+# copyright : Copyright (c) 2016-2019 Code Synthesis Ltd
+# license : cURL License; see accompanying COPYING file
+
+: default
+:
+{
+ test.options += -sS
+
+ $* 'http://www.example.com' | set s;
+ $* 'https://www.example.com' >"$s"
+}
+
+: override
+:
+: Specify the empty CA certificates bundle on the command line and make sure
+: curl exits with the 'peer certificate cannot be authenticated with known CA
+: certificates' exit code.
+:
+{
+ $* -s 'https://www.example.com' --capath "$src_base/empty.pem" == 60
+}