summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/package.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/package.py b/meta/lib/oeqa/selftest/cases/package.py
index 6a8bc9283f..5b9a6d1585 100644
--- a/meta/lib/oeqa/selftest/cases/package.py
+++ b/meta/lib/oeqa/selftest/cases/package.py
@@ -1,4 +1,5 @@
1from oeqa.selftest.case import OESelftestTestCase 1from oeqa.selftest.case import OESelftestTestCase
2from oeqa.core.decorator.oeid import OETestID
2from oeqa.utils.commands import bitbake, get_bb_vars 3from oeqa.utils.commands import bitbake, get_bb_vars
3import subprocess, os 4import subprocess, os
4import oe.path 5import oe.path
@@ -32,6 +33,7 @@ class VersionOrdering(OESelftestTestCase):
32 self.bindir = type(self).bindir 33 self.bindir = type(self).bindir
33 self.libdir = type(self).libdir 34 self.libdir = type(self).libdir
34 35
36 @OETestID(1880)
35 def test_dpkg(self): 37 def test_dpkg(self):
36 for ver1, ver2, sort in self.tests: 38 for ver1, ver2, sort in self.tests:
37 op = { -1: "<<", 0: "=", 1: ">>" }[sort] 39 op = { -1: "<<", 0: "=", 1: ">>" }[sort]
@@ -48,6 +50,7 @@ class VersionOrdering(OESelftestTestCase):
48 status = subprocess.call((oe.path.join(self.bindir, "dpkg"), "--compare-versions", ver1, op, ver2)) 50 status = subprocess.call((oe.path.join(self.bindir, "dpkg"), "--compare-versions", ver1, op, ver2))
49 self.assertNotEqual(status, 0, "%s %s %s failed" % (ver1, op, ver2)) 51 self.assertNotEqual(status, 0, "%s %s %s failed" % (ver1, op, ver2))
50 52
53 @OETestID(1881)
51 def test_opkg(self): 54 def test_opkg(self):
52 for ver1, ver2, sort in self.tests: 55 for ver1, ver2, sort in self.tests:
53 op = { -1: "<<", 0: "=", 1: ">>" }[sort] 56 op = { -1: "<<", 0: "=", 1: ">>" }[sort]
@@ -64,6 +67,7 @@ class VersionOrdering(OESelftestTestCase):
64 status = subprocess.call((oe.path.join(self.bindir, "opkg"), "compare-versions", ver1, op, ver2)) 67 status = subprocess.call((oe.path.join(self.bindir, "opkg"), "compare-versions", ver1, op, ver2))
65 self.assertNotEqual(status, 0, "%s %s %s failed" % (ver1, op, ver2)) 68 self.assertNotEqual(status, 0, "%s %s %s failed" % (ver1, op, ver2))
66 69
70 @OETestID(1882)
67 def test_rpm(self): 71 def test_rpm(self):
68 # Need to tell the Python bindings where to find its configuration 72 # Need to tell the Python bindings where to find its configuration
69 env = os.environ.copy() 73 env = os.environ.copy()