aboutsummaryrefslogtreecommitdiff
path: root/tests/pkg-build.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-06-06 23:37:23 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-06-07 13:59:01 +0300
commitefece35aa05ef7f89e3deb0c0017687ddd960af0 (patch)
treee5c0412cf3ed9b9eeaf014c1bd0e8234bb6076b6 /tests/pkg-build.testscript
parentf03160395525ac7e56be5de25544de6032910819 (diff)
Fix uncaught invalid_argument thrown by pkg-build for package like 'foo/1.0.0-'
Diffstat (limited to 'tests/pkg-build.testscript')
-rw-r--r--tests/pkg-build.testscript25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/pkg-build.testscript b/tests/pkg-build.testscript
index 7ef78ff..17fa313 100644
--- a/tests/pkg-build.testscript
+++ b/tests/pkg-build.testscript
@@ -172,6 +172,31 @@ test.options += --no-progress
info: run 'bpkg help pkg-build' for more information
EOE
+ : version
+ :
+ {
+ : empty
+ :
+ $clone_root_cfg;
+ $* libfoo/ 2>>EOE != 0
+ error: empty package version in 'libfoo/'
+ EOE
+
+ : earliest
+ :
+ $clone_root_cfg;
+ $* libfoo/1.0.0- 2>>EOE != 0
+ error: invalid package version '1.0.0-' in 'libfoo/1.0.0-': earliest version
+ EOE
+
+ : stub
+ :
+ $clone_root_cfg;
+ $* libfoo/0+1 2>>EOE != 0
+ error: invalid package version '0+1' in 'libfoo/0+1': stub version
+ EOE
+ }
+
: unknown-package
:
$clone_root_cfg;