summaryrefslogtreecommitdiffstats
path: root/lib/bb/tests
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-02-10 18:13:24 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-16 09:10:30 +0000
commit3a9eefe27f29a4593d6298f0427ac5f3e9183377 (patch)
tree5eaed6492eda7c2ea73b3d2d9435d493eafb71e0 /lib/bb/tests
parentb6dc946f477adc40d68da16e2f2580cb3b4a10db (diff)
downloadbitbake-contrib-3a9eefe27f29a4593d6298f0427ac5f3e9183377.tar.gz
tests: add tests for OE pre-release version formatting
This scheme is used for versioning recipes that are pre-release (alpha, beta, etc.) within OpenEmbedded, so add some tests to ensure the appropriate comparison results still hold true. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/tests')
-rw-r--r--lib/bb/tests/utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bb/tests/utils.py b/lib/bb/tests/utils.py
index 7c50b1d78..cf145f0d7 100644
--- a/lib/bb/tests/utils.py
+++ b/lib/bb/tests/utils.py
@@ -35,6 +35,10 @@ class VerCmpString(unittest.TestCase):
self.assertTrue(result < 0)
result = bb.utils.vercmp_string('1.1', '1_p2')
self.assertTrue(result < 0)
+ result = bb.utils.vercmp_string('1.0', '1.0+1.1-beta1')
+ self.assertTrue(result < 0)
+ result = bb.utils.vercmp_string('1.1', '1.0+1.1-beta1')
+ self.assertTrue(result > 0)
def test_explode_dep_versions(self):
correctresult = {"foo" : ["= 1.10"]}