aboutsummaryrefslogtreecommitdiff
path: root/tests/manifest/task-response.test
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-09-04 15:03:14 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-09-04 15:03:14 +0300
commit1e0c838ededf6d7d213c19f4c5b595e195356329 (patch)
tree142a8e43ec138b5b4a599f46da316fd98d948299 /tests/manifest/task-response.test
parente73b2b4a4ed4c814131782572c007f85fbf442a3 (diff)
Rename .test/test{} to .testscript/testscript{}
Diffstat (limited to 'tests/manifest/task-response.test')
-rw-r--r--tests/manifest/task-response.test165
1 files changed, 0 insertions, 165 deletions
diff --git a/tests/manifest/task-response.test b/tests/manifest/task-response.test
deleted file mode 100644
index c823160..0000000
--- a/tests/manifest/task-response.test
+++ /dev/null
@@ -1,165 +0,0 @@
-# file : tests/manifest/task-response.test
-# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd
-# license : MIT; see accompanying LICENSE file
-
-test.options += -ts
-
-: valid
-:
-: Roundtrip the task response manifest.
-:
-{
- : session-not-empty
- :
- {
- : all-values
- :
- $* <<EOF >>EOF
- : 1
- session: abcd
- challenge: cc6585375ef81898cc60791b11852e3d2ed9ebb82ebb0874010fe0e6f9ebdb73
- result-url: https://cppget.org/?build-result
- :
- name: libfoo
- version: 1.0
- repository-url: http://pkg.example.org/1/math
- repository-type: pkg
- machine: windows_10-msvc_14
- target: x86_64-microsoft-win32-msvc14.0
- EOF
-
- : no-challenge
- :
- $* <<EOF >>EOF
- : 1
- session: abcd
- result-url: https://cppget.org/?build-result
- :
- name: libfoo
- version: 1.0
- repository-url: http://pkg.example.org/1/math
- repository-type: pkg
- machine: windows_10-msvc_14
- target: x86_64-microsoft-win32-msvc14.0
- EOF
- }
-
- : session-empty
- :
- $* <<EOF >>EOF
- : 1
- session:
- EOF
-}
-
-: redefinition
-:
-{
- : session
- :
- $* <<EOI 2>'stdin:3:1: error: task response session redefinition' == 1
- : 1
- session: abcd
- session: abcd
- EOI
-
- : challenge
- :
- $* <<EOI 2>'stdin:3:1: error: task response challenge redefinition' == 1
- : 1
- challenge: cc6585375ef81898cc60791b11852e3d2ed9ebb82ebb0874010fe0e6f9ebdb73
- challenge: cc6585375ef81898cc60791b11852e3d2ed9ebb82ebb0874010fe0e6f9ebdb73
- 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
-:
-{
- : challenge
- :
- {
- : size
- :
- $* <<EOI 2>'stdin:2:12: error: invalid task response challenge' == 1
- : 1
- challenge: abc
- EOI
-
- : redundant
- :
- $* <<EOI 2>'stdin:4:1: error: unexpected task response challenge' == 1
- : 1
- session:
- challenge: cc6585375ef81898cc60791b11852e3d2ed9ebb82ebb0874010fe0e6f9ebdb73
- 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
- : 1
- session:
- :
- EOI
-}
-
-: unknown-name
-:
-$* <<EOI 2>"stdin:2:1: error: unknown name 'x' in task response manifest" == 1
-: 1
-x:
-EOI
-
-: missed
-:
-{
- : session
- :
- $* <<EOI 2>'stdin:2:1: error: no task response session specified' == 1
- : 1
- EOI
-
- : result-url
- :
- $* <<EOI 2>'stdin:4:1: error: no task response result url specified' == 1
- : 1
- session: abc
- challenge: cc6585375ef81898cc60791b11852e3d2ed9ebb82ebb0874010fe0e6f9ebdb73
- EOI
-
- : task
- :
- $* <<EOI 2>'stdin:5:1: error: task manifest expected' == 1
- : 1
- session: abcd
- challenge: cc6585375ef81898cc60791b11852e3d2ed9ebb82ebb0874010fe0e6f9ebdb73
- result-url: https://cppget.org/?build-result
- EOI
-}