diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-03-06 16:30:31 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-03-08 17:04:08 +0300 |
commit | d3a0e798e5af401b78ecbfb550cb6eabc825df44 (patch) | |
tree | 6c5fb15591a46664dd6df769e10060de49477147 /bbot/bootstrap-manifest.test.testscript | |
parent | 77c639f4db23b554c7d453dcfd012e7dfbc3dea6 (diff) |
Use new setup for unit tests
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 +} |