diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-03-29 00:45:30 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-04 13:35:14 +0300 |
commit | dd973d03bf5f3f439dcdacbb22470105e66e698a (patch) | |
tree | 6856ab313c75f3459df80511c98d3f788bf1c22b /tests/manifest/task-request.test | |
parent | c72bbd5d04084547c53e9593af4d76d9e5135a53 (diff) |
Implement manifests and build_config
Diffstat (limited to 'tests/manifest/task-request.test')
-rw-r--r-- | tests/manifest/task-request.test | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/tests/manifest/task-request.test b/tests/manifest/task-request.test new file mode 100644 index 0000000..2e3fb75 --- /dev/null +++ b/tests/manifest/task-request.test @@ -0,0 +1,96 @@ +# file : tests/manifest/task-request.test +# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +test.options += -tq + +: valid +: +: Roundtrip the task request manifest. +: +$* <<EOF >>EOF +: 1 +agent: upsa +fingerprint: 1105fb394ee870adb154b7abfbbae5755df7dcef6c81db34e8d1b68d2653734e +: +id: a2b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 +name: windows_10-msvc_14 +summary: Windows 10 build 1607 with VC 14 update 3 +EOF + +: redefinition +: +{ + : agent + : + $* <<EOI 2>'stdin:3:1: error: task request agent redefinition' == 1 + : 1 + agent: upsa + agent: upsa + EOI + + : fingerprint + : + $* <<EOI 2>'stdin:3:1: error: task request fingerprint redefinition' == 1 + : 1 + fingerprint: 1105fb394ee870adb154b7abfbbae5755df7dcef6c81db34e8d1b68d2653734e + fingerprint: 1105fb394ee870adb154b7abfbbae5755df7dcef6c81db34e8d1b68d2653734e + EOI +} + +: empty +: +{ + : agent + : + $* <<EOI 2>'stdin:2:7: error: empty task request agent' == 1 + : 1 + agent: + EOI +} + +: invalid-fingerprint +: +$* <<EOI 2>'stdin:2:14: error: invalid task request fingerprint' == 1 +: 1 +fingerprint: 123x +EOI + +: missed +: +{ + : agent + : + $* <<EOI 2>'stdin:3:1: error: no task request agent specified' == 1 + : 1 + fingerprint: 1105fb394ee870adb154b7abfbbae5755df7dcef6c81db34e8d1b68d2653734e + EOI + + : fingerprint + : + $* <<EOI 2>'stdin:3:1: error: no task request fingerprint specified' == 1 + : 1 + agent: upsa + EOI +} + +: no-machines +: +$* <<EOI 2>'stdin:4:1: error: no task request machines specified' == 1 +: 1 +agent: upsa +fingerprint: 1105fb394ee870adb154b7abfbbae5755df7dcef6c81db34e8d1b68d2653734e +EOI + +: type-not-allowed +: +$* <<EOI 2>'stdin:7:1: error: machine type not allowed' == 1 +: 1 +agent: upsa +fingerprint: 1105fb394ee870adb154b7abfbbae5755df7dcef6c81db34e8d1b68d2653734e +: +id: a2b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 +name: windows_10-msvc_14 +type: vm +summary: Windows 10 build 1607 with VC 14 update 3 +EOI |