blob: 271741e12ca6648ead375a533956a991ceb33fe4 (
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
|
# file : unit-tests/bootstrap-manifest/testscript
# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd
# license : TBC; see accompanying LICENSE file
: bootstrap-manifest
:
{
: valid
:
$* <<EOF >>EOF
: 1
bbot-version: 1.1.2
libbbot-version: 1.1.1
EOF
: dup
:
$* <<EOI 2>'stdin:3:1: error: bbot-version redefinition' == 1
: 1
bbot-version: 1.1.2
bbot-version: 1.1.3
EOI
: invalid-version
:
$* <<EOI 2>'stdin:2:15: error: invalid package version: invalid major version' == 1
: 1
bbot-version: abc
EOI
: no-versions
:
$* <<EOI 2>'stdin:2:1: error: no package versions specified' == 1
: 1
EOI
: unknown
:
$* <<EOI 2>"stdin:2:1: error: unknown name 'x' in bootstrap manifest" == 1
: 1
x: y
EOI
}
|