diff options
Diffstat (limited to 'bbot/bootstrap-manifest.test.testscript')
-rw-r--r-- | bbot/bootstrap-manifest.test.testscript | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/bbot/bootstrap-manifest.test.testscript b/bbot/bootstrap-manifest.test.testscript new file mode 100644 index 0000000..626497c --- /dev/null +++ b/bbot/bootstrap-manifest.test.testscript @@ -0,0 +1,43 @@ +# file : bbot/bootstrap-manifest.test.testscript +# copyright : Copyright (c) 2014-2019 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 +} |