From 6679ad0de1fddc9f78087aaa67432f3d48ce08b4 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 27 Apr 2023 20:34:44 +0300 Subject: Add support for *-upload-url task response manifest values --- tests/manifest/task-response.testscript | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'tests/manifest') 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 + : + $* <'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 : $* <'stdin:3:1: error: task response agent checksum redefinition' == 1 @@ -127,6 +137,25 @@ test.options += -ts EOI } + : upload-url + : + { + : empty + : + $* <'stdin:2:20: error: empty task response upload url' == 1 + : 1 + bindist-upload-url: + EOI + + : redundant + : + $* <'stdin:4:1: error: unexpected task response upload url' == 1 + : 1 + session: + bindist-upload-url: https://cppget.org/?upload=bindist + EOI + } + : agent-checksum : { -- cgit v1.1