aboutsummaryrefslogtreecommitdiff
path: root/tests/release.testscript
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-01-25 11:54:14 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2019-01-26 15:38:54 +0300
commit670a3115c1dd5a285d273d39bd38f466f06dde7c (patch)
treecb8994b3d13ea04c7a3a2a50a4fad6666fe4d45f /tests/release.testscript
parent698bbc675764f3aec648aa242a99e89859065454 (diff)
Add --open-base option to bdep-release
Diffstat (limited to 'tests/release.testscript')
-rw-r--r--tests/release.testscript38
1 files changed, 37 insertions, 1 deletions
diff --git a/tests/release.testscript b/tests/release.testscript
index fe32b85..1e6d5f3 100644
--- a/tests/release.testscript
+++ b/tests/release.testscript
@@ -290,6 +290,40 @@ log2 = $gp2 log '--pretty=format:"%d %s"'
Create
EOO
}
+
+ : base
+ :
+ {
+ $clone_root_repos;
+
+ $* --open-base 1.0 2>>EOE != 0;
+ error: invalid base version '1.0': '.' expected after minor version
+ EOE
+
+ $* --open-base 1.0.0-a.1 2>>EOE != 0;
+ error: invalid base version '1.0.0-a.1': pre-release
+ EOE
+
+ $* --open-base 1.2.3 2>>~%EOE%;
+ %.+
+ pushing branch master, tag v0.1.0
+ EOE
+
+ $clone2;
+ $log2 >>:~%EOO%;
+ % \(HEAD -> master, \.*\) Change version to 1.2.3-a.0.z%d
+ (tag: v0.1.0) Release version 0.1.0
+ Create
+ EOO
+
+ $* --open-base 1.2.2 2>>EOE != 0;
+ error: base version 1.2.2 is less than or equal to current version 1.2.3
+ EOE
+
+ $* --open-base 1.2.3 2>>EOE != 0
+ error: base version 1.2.3 is less than or equal to current version 1.2.3
+ EOE
+ }
}
: no
@@ -974,5 +1008,7 @@ log2 = $gp2 log '--pretty=format:"%d %s"'
$* --open --no-tag 2>'error: both --open and --no-tag specified' != 0;
$* --tag --no-commit 2>'error: both --tag and --no-commit specified' != 0;
$* --push --no-commit 2>'error: both --push and --no-commit specified' != 0;
- $* --push --show-push 2>'error: both --push and --show-push specified' != 0
+ $* --push --show-push 2>'error: both --push and --show-push specified' != 0;
+
+ $* --open-base 1.2.3 --open-beta 2>'error: both --open-beta and --open-base specified' != 0
}