blob: 157b2ea556f313ba880c696ed4fde5a9b57d0504 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# 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.
:
{
: all-values
:
$* <<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
: no-fingerprint
:
$* <<EOF >>EOF
: 1
agent: upsa
:
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
}
: no-machines
:
$* <<EOI 2>'stdin:4:1: error: no task request machines specified' == 1
: 1
agent: upsa
fingerprint: 1105fb394ee870adb154b7abfbbae5755df7dcef6c81db34e8d1b68d2653734e
EOI
|