aboutsummaryrefslogtreecommitdiff
path: root/tests/standard-version/testscript
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-04-29 08:01:41 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2017-04-29 14:46:13 +0300
commit332c4e09b11b010a6ad50468230758d0874dbd60 (patch)
tree40b4b8a07269a1e4733f7c94242752c8c00a275d /tests/standard-version/testscript
parentdb275fa010229b26086f75f0dd533fdfce8751b4 (diff)
Add support for stub standard version
Diffstat (limited to 'tests/standard-version/testscript')
-rw-r--r--tests/standard-version/testscript24
1 files changed, 22 insertions, 2 deletions
diff --git a/tests/standard-version/testscript b/tests/standard-version/testscript
index b6bc1a0..6a585a5 100644
--- a/tests/standard-version/testscript
+++ b/tests/standard-version/testscript
@@ -53,6 +53,13 @@
$* <<EOF >>EOF
4~1.2.3
EOF
+
+ : stub
+ :
+ $* <<EOF >>EOF
+ 0
+ 0+1
+ EOF
}
: invalid
@@ -74,9 +81,9 @@
:
$* <'1.2' 2>"'.' expected after minor version" == 1
- : bugfix
+ : patch
:
- $* <'1.2.a' 2>'invalid bugfix version' == 1
+ $* <'1.2.a' 2>'invalid patch version' == 1
: zero-version
:
@@ -153,6 +160,8 @@
$* '1.2.3-a.1' >y: final
$* '1.2.3-a.0.1' >y: snapshot
$* '1.2.3-' >y: earliest
+ $* '0' >n: stub
+
}
: beta
@@ -165,6 +174,7 @@
$* '1.2.3-b.1' >y: final
$* '1.2.3-b.0.1' >y: snapshot
$* '1.2.3-' >n: earliest
+ $* '0+1' >n: stub
}
: compare
@@ -201,6 +211,12 @@
$* '1.2.3-a.0.1' '1.2.3-' >'1' : snapshot-gt-earliest
$* '1.2.2-b.499.z' '1.2.3-' >'-1' : prev-max-snapshot-lt-earliest
}
+
+ : stub
+ :
+ {
+ $* '0+1' '0.0.1-' >'-1' : stub-lt-earliest
+ }
}
: constraints
@@ -291,6 +307,10 @@
:
$* <'==1.2.3-' 2>"invalid version: 'a' or 'b' expected in pre-release" == 1
+ : eq-stub
+ :
+ $* <'==0' 2>"invalid version: '.' expected after major version" == 1
+
: junk
:
$* <'>= 1.2.3-a.1.1.ads@' 2>'invalid version: junk after version' == 1