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)
downloadpoky-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 7c50b1d786..cf145f0d7a 100644
--- a/bitbake/lib/bb/tests/utils.py
+++ b/bitbake/lib/bb/tests/utils.py
@@ -35,6 +35,10 @@ class VerCmpString(unittest.TestCase):
35 self.assertTrue(result < 0) 35 self.assertTrue(result < 0)
36 result = bb.utils.vercmp_string('1.1', '1_p2') 36 result = bb.utils.vercmp_string('1.1', '1_p2')
37 self.assertTrue(result < 0) 37 self.assertTrue(result < 0)
38 result = bb.utils.vercmp_string('1.0', '1.0+1.1-beta1')
39 self.assertTrue(result < 0)
40 result = bb.utils.vercmp_string('1.1', '1.0+1.1-beta1')
41 self.assertTrue(result > 0)
38 42
39 def test_explode_dep_versions(self): 43 def test_explode_dep_versions(self):
40 correctresult = {"foo" : ["= 1.10"]} 44 correctresult = {"foo" : ["= 1.10"]}