aboutsummaryrefslogtreecommitdiff
path: root/tests/manifest
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-04-27 20:34:44 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2023-05-17 19:04:57 +0300
commit6679ad0de1fddc9f78087aaa67432f3d48ce08b4 (patch)
tree9b7f0a3f4d0d34285870c6d16b6d7db6f8909ecf /tests/manifest
parent29aed111bc9833010993ddc36393a69366936635 (diff)
Add support for *-upload-url task response manifest values
Diffstat (limited to 'tests/manifest')
-rw-r--r--tests/manifest/task-response.testscript29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/manifest/task-response.testscript b/tests/manifest/task-response.testscript
index df63f70..7615127 100644
--- a/tests/manifest/task-response.testscript
+++ b/tests/manifest/task-response.testscript
@@ -18,6 +18,7 @@ test.options += -ts
session: abcd
challenge: cc6585375ef81898cc60791b11852e3d2ed9ebb82ebb0874010fe0e6f9ebdb73
result-url: https://cppget.org/?build-result
+ bindist-upload-url: https://cppget.org/?upload=bindist
agent-checksum: 1
:
name: libfoo
@@ -77,6 +78,15 @@ test.options += -ts
result-url: https://cppget.org/?build-result
EOI
+ : upload-url
+ :
+ $* <<EOI 2>'stdin:4:1: error: task response upload url redefinition' == 1
+ : 1
+ bindist-upload-url: https://cppget.org/?upload=bindist
+ other-upload-url: https://cppget.org/?upload=other
+ bindist-upload-url: https://cppget.org/?upload=bindist
+ EOI
+
: agent-checksum
:
$* <<EOI 2>'stdin:3:1: error: task response agent checksum redefinition' == 1
@@ -127,6 +137,25 @@ test.options += -ts
EOI
}
+ : upload-url
+ :
+ {
+ : empty
+ :
+ $* <<EOI 2>'stdin:2:20: error: empty task response upload url' == 1
+ : 1
+ bindist-upload-url:
+ EOI
+
+ : redundant
+ :
+ $* <<EOI 2>'stdin:4:1: error: unexpected task response upload url' == 1
+ : 1
+ session:
+ bindist-upload-url: https://cppget.org/?upload=bindist
+ EOI
+ }
+
: agent-checksum
:
{