diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-16 12:50:32 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-16 12:50:32 +0300 |
commit | d544a5a6d05a0fb3494ba063ea685b740825aa86 (patch) | |
tree | b5f4a8e412a15aa6907e889a55ef735fb6c633f3 /tests | |
parent | ea5ab626990bd02001fe527359efbecd6e5a7dc0 (diff) |
Add supoort for task response result url value
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manifest/task-response.test | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/tests/manifest/task-response.test b/tests/manifest/task-response.test index 472cca7..22bdded 100644 --- a/tests/manifest/task-response.test +++ b/tests/manifest/task-response.test @@ -15,6 +15,7 @@ test.options += -ts : 1 session: abcd challenge: xyz + result-url: https://cppget.org/?build-result : name: libfoo version: 1.0 @@ -48,6 +49,14 @@ test.options += -ts challenge: xyz challenge: xyz EOI + + : result-url + : + $* <<EOI 2>'stdin:3:1: error: task response result url redefinition' == 1 + : 1 + result-url: https://cppget.org/?build-result + result-url: https://cppget.org/?build-result + EOI } : invalid @@ -72,6 +81,25 @@ test.options += -ts EOI } + : result-url + : + { + : empty + : + $* <<EOI 2>'stdin:2:12: error: empty task response result url' == 1 + : 1 + result-url: + EOI + + : redundant + : + $* <<EOI 2>'stdin:4:1: error: unexpected task response result url' == 1 + : 1 + session: + result-url: https://cppget.org/?build-result + EOI + } + : task-unexpected : $* <<EOI 2>'stdin:3:1: error: single task response manifest expected' == 1 @@ -104,11 +132,20 @@ EOI session: abc EOI + : result-url + : + $* <<EOI 2>'stdin:4:1: error: no task response result url specified' == 1 + : 1 + session: abc + challenge: xyz + EOI + : task : - $* <<EOI 2>'stdin:4:1: error: task manifest expected' == 1 + $* <<EOI 2>'stdin:5:1: error: task manifest expected' == 1 : 1 session: abcd challenge: xyz + result-url: https://cppget.org/?build-result EOI } |