diff options
Diffstat (limited to 'tests/pkg-verify.testscript')
-rw-r--r-- | tests/pkg-verify.testscript | 61 |
1 files changed, 59 insertions, 2 deletions
diff --git a/tests/pkg-verify.testscript b/tests/pkg-verify.testscript index 81821cb..8057aab 100644 --- a/tests/pkg-verify.testscript +++ b/tests/pkg-verify.testscript @@ -8,6 +8,7 @@ # pkg-verify # |-- foo-1.tar.gz # |-- foo-2.tar.gz (manifest with unknown name) +# |-- libbaz-1.0.0.tar.gz (manifest with unsatisfiable toolchain constraint) # `-- not-a-package.tar.gz : valid-package @@ -77,20 +78,25 @@ $* --deep --ignore-unknown --manifest $src/foo-2.tar.gz >>EOO version: 2 summary: The "Foo" utility license: MIT - description: \ + description:\ This package contains the foo utility. \ description-type: text/plain - changes: \ + changes:\ Version 2 * First public release. \ + changes-type: text/plain url: http://www.example.org/foo email: foo-users@example.org depends: bar == 2 + bootstrap-build:\ + project = foo + + \ EOO : incomplete-dependency @@ -107,3 +113,54 @@ $* --ignore-unknown --manifest $src/foo-2.tar.gz >>EOO email: foo-users@example.org depends: bar == $ EOO + +: no-bootstrap-build +: +{ + : no-deep + : + $* --manifest $src/foo-3.tar.gz >>EOO + : 1 + name: foo + version: 3 + summary: The "Foo" utility + license: MIT + description-file: README + changes-file: NEWS + url: http://www.example.org/foo + email: foo-users@example.org + depends: bar == $ + EOO + + : deep + : + $* --deep --manifest $src/foo-3.tar.gz 2>>/~%EOE% != 0 + %error: unable to find bootstrap.build file in package archive .+/foo-3.tar.gz% + EOE +} + +: compatibility +: +{ + : fail + : + $* --manifest $src/libbaz-1.0.0.tar.gz 2>>/~%EOE% != 0 + %error: unable to satisfy constraint \(build2 >= 65536.0.0\) for package .+/libbaz-1.0.0.tar.gz% + % info: available build2 version is .+% + EOE + + : success + : + $* --manifest --ignore-unknown $src/libbaz-1.0.0.tar.gz >>EOO + : 1 + name: libbaz + version: 1.0.0 + summary: libbaz + license: MIT + description: libbaz library + url: http://example.org + email: pkg@example.org + depends: * build2 >= 65536.0.0 + depends: * bpkg >= 65536.0.0 + EOO +} |