summaryrefslogtreecommitdiffstats
path: root/bitbake
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:42 +0000
commit758dc92abd8a9af00e3f2b20cba9ca4c7cfca3e0 (patch)
tree70882efbc556ce77d65f269583ef6283c1af5af5 /bitbake
parent93c3f3922c477e8062c09492c94169276168db96 (diff)
downloadast2050-yocto-poky-758dc92abd8a9af00e3f2b20cba9ca4c7cfca3e0.zip
ast2050-yocto-poky-758dc92abd8a9af00e3f2b20cba9ca4c7cfca3e0.tar.gz
bitbake: 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. (Bitbake rev: 3a9eefe27f29a4593d6298f0427ac5f3e9183377) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/tests/utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/utils.py b/bitbake/lib/bb/tests/utils.py
index 7c50b1d..cf145f0 100644
--- a/bitbake/lib/bb/tests/utils.py
+++ b/bitbake/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"]}
OpenPOWER on IntegriCloud