diff options
Diffstat (limited to 'tests/pkg-verify.testscript')
-rw-r--r-- | tests/pkg-verify.testscript | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/pkg-verify.testscript b/tests/pkg-verify.testscript index 7e7b5f3..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 @@ -137,3 +138,29 @@ $* --ignore-unknown --manifest $src/foo-2.tar.gz >>EOO %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 +} |