diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-05-08 16:56:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-05-20 14:38:16 +0100 |
commit | 10e1b48a9e2d726229a0245339bf7be21ad9ca53 (patch) | |
tree | fc1e31a00d193490e4b5b65f9af04372a6e57693 /meta/lib/oeqa/selftest/cases/pkgdata.py | |
parent | 64fa42868df98dd87fb1f5ad74977ac833936cb5 (diff) | |
download | poky-10e1b48a9e2d726229a0245339bf7be21ad9ca53.tar.gz |
oeqa: Drop OETestID
These IDs refer to testopia which we're no longer using. We would now use the test
names to definitively reference tests and the IDs can be dropped, along with their
supporting code.
(From OE-Core rev: 551153b0bd1ebbc05582f6014e3d88b9ce4a46d0)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Backported to keep in-sync with future qa changes]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/pkgdata.py')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/pkgdata.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/meta/lib/oeqa/selftest/cases/pkgdata.py b/meta/lib/oeqa/selftest/cases/pkgdata.py index aa05f40d6a..58ec6e0ebc 100644 --- a/meta/lib/oeqa/selftest/cases/pkgdata.py +++ b/meta/lib/oeqa/selftest/cases/pkgdata.py | |||
@@ -4,7 +4,6 @@ import fnmatch | |||
4 | 4 | ||
5 | from oeqa.selftest.case import OESelftestTestCase | 5 | from oeqa.selftest.case import OESelftestTestCase |
6 | from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars | 6 | from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars |
7 | from oeqa.core.decorator.oeid import OETestID | ||
8 | 7 | ||
9 | class OePkgdataUtilTests(OESelftestTestCase): | 8 | class OePkgdataUtilTests(OESelftestTestCase): |
10 | 9 | ||
@@ -16,7 +15,6 @@ class OePkgdataUtilTests(OESelftestTestCase): | |||
16 | bitbake('target-sdk-provides-dummy -c clean') | 15 | bitbake('target-sdk-provides-dummy -c clean') |
17 | bitbake('busybox zlib m4') | 16 | bitbake('busybox zlib m4') |
18 | 17 | ||
19 | @OETestID(1203) | ||
20 | def test_lookup_pkg(self): | 18 | def test_lookup_pkg(self): |
21 | # Forward tests | 19 | # Forward tests |
22 | result = runCmd('oe-pkgdata-util lookup-pkg "zlib busybox"') | 20 | result = runCmd('oe-pkgdata-util lookup-pkg "zlib busybox"') |
@@ -35,7 +33,6 @@ class OePkgdataUtilTests(OESelftestTestCase): | |||
35 | self.assertEqual(result.status, 1, "Status different than 1. output: %s" % result.output) | 33 | self.assertEqual(result.status, 1, "Status different than 1. output: %s" % result.output) |
36 | self.assertEqual(result.output, 'ERROR: The following packages could not be found: nonexistentpkg') | 34 | self.assertEqual(result.output, 'ERROR: The following packages could not be found: nonexistentpkg') |
37 | 35 | ||
38 | @OETestID(1205) | ||
39 | def test_read_value(self): | 36 | def test_read_value(self): |
40 | result = runCmd('oe-pkgdata-util read-value PN libz1') | 37 | result = runCmd('oe-pkgdata-util read-value PN libz1') |
41 | self.assertEqual(result.output, 'zlib') | 38 | self.assertEqual(result.output, 'zlib') |
@@ -45,7 +42,6 @@ class OePkgdataUtilTests(OESelftestTestCase): | |||
45 | pkgsize = int(result.output.strip()) | 42 | pkgsize = int(result.output.strip()) |
46 | self.assertGreater(pkgsize, 1, "Size should be greater than 1. %s" % result.output) | 43 | self.assertGreater(pkgsize, 1, "Size should be greater than 1. %s" % result.output) |
47 | 44 | ||
48 | @OETestID(1198) | ||
49 | def test_find_path(self): | 45 | def test_find_path(self): |
50 | result = runCmd('oe-pkgdata-util find-path /lib/libz.so.1') | 46 | result = runCmd('oe-pkgdata-util find-path /lib/libz.so.1') |
51 | self.assertEqual(result.output, 'zlib: /lib/libz.so.1') | 47 | self.assertEqual(result.output, 'zlib: /lib/libz.so.1') |
@@ -55,7 +51,6 @@ class OePkgdataUtilTests(OESelftestTestCase): | |||
55 | self.assertEqual(result.status, 1, "Status different than 1. output: %s" % result.output) | 51 | self.assertEqual(result.status, 1, "Status different than 1. output: %s" % result.output) |
56 | self.assertEqual(result.output, 'ERROR: Unable to find any package producing path /not/exist') | 52 | self.assertEqual(result.output, 'ERROR: Unable to find any package producing path /not/exist') |
57 | 53 | ||
58 | @OETestID(1204) | ||
59 | def test_lookup_recipe(self): | 54 | def test_lookup_recipe(self): |
60 | result = runCmd('oe-pkgdata-util lookup-recipe "libz-staticdev busybox"') | 55 | result = runCmd('oe-pkgdata-util lookup-recipe "libz-staticdev busybox"') |
61 | self.assertEqual(result.output, 'zlib\nbusybox') | 56 | self.assertEqual(result.output, 'zlib\nbusybox') |
@@ -65,7 +60,6 @@ class OePkgdataUtilTests(OESelftestTestCase): | |||
65 | self.assertEqual(result.status, 1, "Status different than 1. output: %s" % result.output) | 60 | self.assertEqual(result.status, 1, "Status different than 1. output: %s" % result.output) |
66 | self.assertEqual(result.output, 'ERROR: The following packages could not be found: nonexistentpkg') | 61 | self.assertEqual(result.output, 'ERROR: The following packages could not be found: nonexistentpkg') |
67 | 62 | ||
68 | @OETestID(1202) | ||
69 | def test_list_pkgs(self): | 63 | def test_list_pkgs(self): |
70 | # No arguments | 64 | # No arguments |
71 | result = runCmd('oe-pkgdata-util list-pkgs') | 65 | result = runCmd('oe-pkgdata-util list-pkgs') |
@@ -109,7 +103,6 @@ class OePkgdataUtilTests(OESelftestTestCase): | |||
109 | pkglist = sorted(result.output.split()) | 103 | pkglist = sorted(result.output.split()) |
110 | self.assertEqual(pkglist, ['libz-dbg', 'libz-dev', 'libz-doc'], "Packages listed: %s" % result.output) | 104 | self.assertEqual(pkglist, ['libz-dbg', 'libz-dev', 'libz-doc'], "Packages listed: %s" % result.output) |
111 | 105 | ||
112 | @OETestID(1201) | ||
113 | def test_list_pkg_files(self): | 106 | def test_list_pkg_files(self): |
114 | def splitoutput(output): | 107 | def splitoutput(output): |
115 | files = {} | 108 | files = {} |
@@ -199,7 +192,6 @@ class OePkgdataUtilTests(OESelftestTestCase): | |||
199 | self.assertIn(os.path.join(mandir, 'man3/zlib.3'), files['libz-doc']) | 192 | self.assertIn(os.path.join(mandir, 'man3/zlib.3'), files['libz-doc']) |
200 | self.assertIn(os.path.join(libdir, 'libz.a'), files['libz-staticdev']) | 193 | self.assertIn(os.path.join(libdir, 'libz.a'), files['libz-staticdev']) |
201 | 194 | ||
202 | @OETestID(1200) | ||
203 | def test_glob(self): | 195 | def test_glob(self): |
204 | tempdir = tempfile.mkdtemp(prefix='pkgdataqa') | 196 | tempdir = tempfile.mkdtemp(prefix='pkgdataqa') |
205 | self.track_for_cleanup(tempdir) | 197 | self.track_for_cleanup(tempdir) |
@@ -219,7 +211,6 @@ class OePkgdataUtilTests(OESelftestTestCase): | |||
219 | self.assertNotIn('libz-dev', resultlist) | 211 | self.assertNotIn('libz-dev', resultlist) |
220 | self.assertNotIn('libz-dbg', resultlist) | 212 | self.assertNotIn('libz-dbg', resultlist) |
221 | 213 | ||
222 | @OETestID(1206) | ||
223 | def test_specify_pkgdatadir(self): | 214 | def test_specify_pkgdatadir(self): |
224 | result = runCmd('oe-pkgdata-util -p %s lookup-pkg zlib' % get_bb_var('PKGDATA_DIR')) | 215 | result = runCmd('oe-pkgdata-util -p %s lookup-pkg zlib' % get_bb_var('PKGDATA_DIR')) |
225 | self.assertEqual(result.output, 'libz1') | 216 | self.assertEqual(result.output, 'libz1') |