summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/selftest/cases/containerimage.py2
-rw-r--r--meta/lib/oeqa/selftest/cases/devtool.py10
-rw-r--r--meta/lib/oeqa/selftest/cases/image_typedep.py2
-rw-r--r--meta/lib/oeqa/selftest/cases/imagefeatures.py1
-rw-r--r--meta/lib/oeqa/selftest/cases/liboe.py4
-rw-r--r--meta/lib/oeqa/selftest/cases/oelib/buildhistory.py4
-rw-r--r--meta/lib/oeqa/selftest/cases/package.py4
-rw-r--r--meta/lib/oeqa/selftest/cases/recipetool.py4
-rw-r--r--meta/lib/oeqa/selftest/cases/runtime_test.py4
-rw-r--r--meta/lib/oeqa/selftest/cases/sstatetests.py2
-rw-r--r--meta/lib/oeqa/selftest/cases/tinfoil.py1
-rw-r--r--meta/lib/oeqa/selftest/cases/wic.py19
12 files changed, 57 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/containerimage.py b/meta/lib/oeqa/selftest/cases/containerimage.py
index 73162fa600..99a5cc9e57 100644
--- a/meta/lib/oeqa/selftest/cases/containerimage.py
+++ b/meta/lib/oeqa/selftest/cases/containerimage.py
@@ -2,6 +2,7 @@ import os
2 2
3from oeqa.selftest.case import OESelftestTestCase 3from oeqa.selftest.case import OESelftestTestCase
4from oeqa.utils.commands import bitbake, get_bb_vars, runCmd 4from oeqa.utils.commands import bitbake, get_bb_vars, runCmd
5from oeqa.core.decorator.oeid import OETestID
5 6
6# This test builds an image with using the "container" IMAGE_FSTYPE, and 7# This test builds an image with using the "container" IMAGE_FSTYPE, and
7# ensures that then files in the image are only the ones expected. 8# ensures that then files in the image are only the ones expected.
@@ -20,6 +21,7 @@ class ContainerImageTests(OESelftestTestCase):
20 21
21 # Verify that when specifying a IMAGE_TYPEDEP_ of the form "foo.bar" that 22 # Verify that when specifying a IMAGE_TYPEDEP_ of the form "foo.bar" that
22 # the conversion type bar gets added as a dep as well 23 # the conversion type bar gets added as a dep as well
24 @OETestID(1619)
23 def test_expected_files(self): 25 def test_expected_files(self):
24 26
25 def get_each_path_part(path): 27 def get_each_path_part(path):
diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py
index e84202ba76..a7fde201fb 100644
--- a/meta/lib/oeqa/selftest/cases/devtool.py
+++ b/meta/lib/oeqa/selftest/cases/devtool.py
@@ -491,6 +491,7 @@ class DevtoolTests(DevtoolBase):
491 result = runCmd('devtool status') 491 result = runCmd('devtool status')
492 self.assertNotIn('mdadm', result.output) 492 self.assertNotIn('mdadm', result.output)
493 493
494 @OETestID(1620)
494 def test_devtool_buildclean(self): 495 def test_devtool_buildclean(self):
495 def assertFile(path, *paths): 496 def assertFile(path, *paths):
496 f = os.path.join(path, *paths) 497 f = os.path.join(path, *paths)
@@ -1013,6 +1014,7 @@ class DevtoolTests(DevtoolBase):
1013 ('??', '.*/0001-Add-new-file.patch$')] 1014 ('??', '.*/0001-Add-new-file.patch$')]
1014 self._check_repo_status(os.path.dirname(recipefile), expected_status) 1015 self._check_repo_status(os.path.dirname(recipefile), expected_status)
1015 1016
1017 @OETestID(1627)
1016 def test_devtool_update_recipe_local_files_3(self): 1018 def test_devtool_update_recipe_local_files_3(self):
1017 # First, modify the recipe 1019 # First, modify the recipe
1018 testrecipe = 'devtool-test-localonly' 1020 testrecipe = 'devtool-test-localonly'
@@ -1032,6 +1034,7 @@ class DevtoolTests(DevtoolBase):
1032 expected_status = [(' M', '.*/%s/file2$' % testrecipe)] 1034 expected_status = [(' M', '.*/%s/file2$' % testrecipe)]
1033 self._check_repo_status(os.path.dirname(recipefile), expected_status) 1035 self._check_repo_status(os.path.dirname(recipefile), expected_status)
1034 1036
1037 @OETestID(1629)
1035 def test_devtool_update_recipe_local_patch_gz(self): 1038 def test_devtool_update_recipe_local_patch_gz(self):
1036 # First, modify the recipe 1039 # First, modify the recipe
1037 testrecipe = 'devtool-test-patch-gz' 1040 testrecipe = 'devtool-test-patch-gz'
@@ -1059,6 +1062,7 @@ class DevtoolTests(DevtoolBase):
1059 if 'gzip compressed data' not in result.output: 1062 if 'gzip compressed data' not in result.output:
1060 self.fail('New patch file is not gzipped - file reports:\n%s' % result.output) 1063 self.fail('New patch file is not gzipped - file reports:\n%s' % result.output)
1061 1064
1065 @OETestID(1628)
1062 def test_devtool_update_recipe_local_files_subdir(self): 1066 def test_devtool_update_recipe_local_files_subdir(self):
1063 # Try devtool extract on a recipe that has a file with subdir= set in 1067 # Try devtool extract on a recipe that has a file with subdir= set in
1064 # SRC_URI such that it overwrites a file that was in an archive that 1068 # SRC_URI such that it overwrites a file that was in an archive that
@@ -1363,6 +1367,7 @@ class DevtoolTests(DevtoolBase):
1363 shutil.copy(srcfile, dstfile) 1367 shutil.copy(srcfile, dstfile)
1364 self.track_for_cleanup(dstfile) 1368 self.track_for_cleanup(dstfile)
1365 1369
1370 @OETestID(1625)
1366 def test_devtool_load_plugin(self): 1371 def test_devtool_load_plugin(self):
1367 """Test that devtool loads only the first found plugin in BBPATH.""" 1372 """Test that devtool loads only the first found plugin in BBPATH."""
1368 1373
@@ -1430,6 +1435,7 @@ class DevtoolTests(DevtoolBase):
1430 self.assertExists(os.path.join(olddir, patchfn), 'Original patch file does not exist') 1435 self.assertExists(os.path.join(olddir, patchfn), 'Original patch file does not exist')
1431 return recipe, oldrecipefile, recipedir, olddir, newversion, patchfn 1436 return recipe, oldrecipefile, recipedir, olddir, newversion, patchfn
1432 1437
1438 @OETestID(1623)
1433 def test_devtool_finish_upgrade_origlayer(self): 1439 def test_devtool_finish_upgrade_origlayer(self):
1434 recipe, oldrecipefile, recipedir, olddir, newversion, patchfn = self._setup_test_devtool_finish_upgrade() 1440 recipe, oldrecipefile, recipedir, olddir, newversion, patchfn = self._setup_test_devtool_finish_upgrade()
1435 # Ensure the recipe is where we think it should be (so that cleanup doesn't trash things) 1441 # Ensure the recipe is where we think it should be (so that cleanup doesn't trash things)
@@ -1448,6 +1454,7 @@ class DevtoolTests(DevtoolBase):
1448 self.assertExists(os.path.join(newdir, patchfn), 'Patch file should have been copied into new directory but wasn\'t') 1454 self.assertExists(os.path.join(newdir, patchfn), 'Patch file should have been copied into new directory but wasn\'t')
1449 self.assertExists(os.path.join(newdir, '0002-Add-a-comment-to-the-code.patch'), 'New patch file should have been created but wasn\'t') 1455 self.assertExists(os.path.join(newdir, '0002-Add-a-comment-to-the-code.patch'), 'New patch file should have been created but wasn\'t')
1450 1456
1457 @OETestID(1624)
1451 def test_devtool_finish_upgrade_otherlayer(self): 1458 def test_devtool_finish_upgrade_otherlayer(self):
1452 recipe, oldrecipefile, recipedir, olddir, newversion, patchfn = self._setup_test_devtool_finish_upgrade() 1459 recipe, oldrecipefile, recipedir, olddir, newversion, patchfn = self._setup_test_devtool_finish_upgrade()
1453 # Ensure the recipe is where we think it should be (so that cleanup doesn't trash things) 1460 # Ensure the recipe is where we think it should be (so that cleanup doesn't trash things)
@@ -1503,6 +1510,7 @@ class DevtoolTests(DevtoolBase):
1503 self.fail('Unable to find recipe files directory for %s' % recipe) 1510 self.fail('Unable to find recipe files directory for %s' % recipe)
1504 return recipe, oldrecipefile, recipedir, filesdir 1511 return recipe, oldrecipefile, recipedir, filesdir
1505 1512
1513 @OETestID(1621)
1506 def test_devtool_finish_modify_origlayer(self): 1514 def test_devtool_finish_modify_origlayer(self):
1507 recipe, oldrecipefile, recipedir, filesdir = self._setup_test_devtool_finish_modify() 1515 recipe, oldrecipefile, recipedir, filesdir = self._setup_test_devtool_finish_modify()
1508 # Ensure the recipe is where we think it should be (so that cleanup doesn't trash things) 1516 # Ensure the recipe is where we think it should be (so that cleanup doesn't trash things)
@@ -1517,6 +1525,7 @@ class DevtoolTests(DevtoolBase):
1517 ('??', '.*/.*-Add-a-comment-to-the-code.patch$')] 1525 ('??', '.*/.*-Add-a-comment-to-the-code.patch$')]
1518 self._check_repo_status(recipedir, expected_status) 1526 self._check_repo_status(recipedir, expected_status)
1519 1527
1528 @OETestID(1622)
1520 def test_devtool_finish_modify_otherlayer(self): 1529 def test_devtool_finish_modify_otherlayer(self):
1521 recipe, oldrecipefile, recipedir, filesdir = self._setup_test_devtool_finish_modify() 1530 recipe, oldrecipefile, recipedir, filesdir = self._setup_test_devtool_finish_modify()
1522 # Ensure the recipe is where we think it should be (so that cleanup doesn't trash things) 1531 # Ensure the recipe is where we think it should be (so that cleanup doesn't trash things)
@@ -1549,6 +1558,7 @@ class DevtoolTests(DevtoolBase):
1549 if files: 1558 if files:
1550 self.fail('Unexpected file(s) copied next to bbappend: %s' % ', '.join(files)) 1559 self.fail('Unexpected file(s) copied next to bbappend: %s' % ', '.join(files))
1551 1560
1561 @OETestID(1626)
1552 def test_devtool_rename(self): 1562 def test_devtool_rename(self):
1553 # Check preconditions 1563 # Check preconditions
1554 self.assertTrue(not os.path.exists(self.workspacedir), 'This test cannot be run with a workspace directory under the build directory') 1564 self.assertTrue(not os.path.exists(self.workspacedir), 'This test cannot be run with a workspace directory under the build directory')
diff --git a/meta/lib/oeqa/selftest/cases/image_typedep.py b/meta/lib/oeqa/selftest/cases/image_typedep.py
index 0614c765b4..e6788853a3 100644
--- a/meta/lib/oeqa/selftest/cases/image_typedep.py
+++ b/meta/lib/oeqa/selftest/cases/image_typedep.py
@@ -2,11 +2,13 @@ import os
2 2
3from oeqa.selftest.case import OESelftestTestCase 3from oeqa.selftest.case import OESelftestTestCase
4from oeqa.utils.commands import bitbake 4from oeqa.utils.commands import bitbake
5from oeqa.core.decorator.oeid import OETestID
5 6
6class ImageTypeDepTests(OESelftestTestCase): 7class ImageTypeDepTests(OESelftestTestCase):
7 8
8 # Verify that when specifying a IMAGE_TYPEDEP_ of the form "foo.bar" that 9 # Verify that when specifying a IMAGE_TYPEDEP_ of the form "foo.bar" that
9 # the conversion type bar gets added as a dep as well 10 # the conversion type bar gets added as a dep as well
11 @OETestID(1633)
10 def test_conversion_typedep_added(self): 12 def test_conversion_typedep_added(self):
11 13
12 self.write_recipeinc('emptytest', """ 14 self.write_recipeinc('emptytest', """
diff --git a/meta/lib/oeqa/selftest/cases/imagefeatures.py b/meta/lib/oeqa/selftest/cases/imagefeatures.py
index 45a06feaf3..e6652ec7ab 100644
--- a/meta/lib/oeqa/selftest/cases/imagefeatures.py
+++ b/meta/lib/oeqa/selftest/cases/imagefeatures.py
@@ -96,6 +96,7 @@ class ImageFeatures(OESelftestTestCase):
96 # Build a core-image-weston 96 # Build a core-image-weston
97 bitbake('core-image-weston') 97 bitbake('core-image-weston')
98 98
99 @OETestID(1497)
99 def test_bmap(self): 100 def test_bmap(self):
100 """ 101 """
101 Summary: Check bmap support 102 Summary: Check bmap support
diff --git a/meta/lib/oeqa/selftest/cases/liboe.py b/meta/lib/oeqa/selftest/cases/liboe.py
index 01b2cab7aa..e84609246a 100644
--- a/meta/lib/oeqa/selftest/cases/liboe.py
+++ b/meta/lib/oeqa/selftest/cases/liboe.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 get_bb_var, get_bb_vars, bitbake, runCmd 3from oeqa.utils.commands import get_bb_var, get_bb_vars, bitbake, runCmd
3import oe.path 4import oe.path
4import os 5import os
@@ -10,6 +11,7 @@ class LibOE(OESelftestTestCase):
10 super(LibOE, cls).setUpClass() 11 super(LibOE, cls).setUpClass()
11 cls.tmp_dir = get_bb_var('TMPDIR') 12 cls.tmp_dir = get_bb_var('TMPDIR')
12 13
14 @OETestID(1635)
13 def test_copy_tree_special(self): 15 def test_copy_tree_special(self):
14 """ 16 """
15 Summary: oe.path.copytree() should copy files with special character 17 Summary: oe.path.copytree() should copy files with special character
@@ -35,6 +37,7 @@ class LibOE(OESelftestTestCase):
35 37
36 oe.path.remove(testloc) 38 oe.path.remove(testloc)
37 39
40 @OETestID(1636)
38 def test_copy_tree_xattr(self): 41 def test_copy_tree_xattr(self):
39 """ 42 """
40 Summary: oe.path.copytree() should preserve xattr on copied files 43 Summary: oe.path.copytree() should preserve xattr on copied files
@@ -69,6 +72,7 @@ class LibOE(OESelftestTestCase):
69 72
70 oe.path.remove(testloc) 73 oe.path.remove(testloc)
71 74
75 @OETestID(1634)
72 def test_copy_hardlink_tree_count(self): 76 def test_copy_hardlink_tree_count(self):
73 """ 77 """
74 Summary: oe.path.copyhardlinktree() shouldn't miss out files 78 Summary: oe.path.copyhardlinktree() shouldn't miss out files
diff --git a/meta/lib/oeqa/selftest/cases/oelib/buildhistory.py b/meta/lib/oeqa/selftest/cases/oelib/buildhistory.py
index f9bec53d4a..08675fd820 100644
--- a/meta/lib/oeqa/selftest/cases/oelib/buildhistory.py
+++ b/meta/lib/oeqa/selftest/cases/oelib/buildhistory.py
@@ -2,6 +2,7 @@ import os
2from oeqa.selftest.case import OESelftestTestCase 2from oeqa.selftest.case import OESelftestTestCase
3import tempfile 3import tempfile
4from oeqa.utils.commands import get_bb_var 4from oeqa.utils.commands import get_bb_var
5from oeqa.core.decorator.oeid import OETestID
5 6
6class TestBlobParsing(OESelftestTestCase): 7class TestBlobParsing(OESelftestTestCase):
7 8
@@ -39,6 +40,7 @@ class TestBlobParsing(OESelftestTestCase):
39 self.repo.git.add("--all") 40 self.repo.git.add("--all")
40 self.repo.git.commit(message=msg) 41 self.repo.git.commit(message=msg)
41 42
43 @OETestID(1859)
42 def test_blob_to_dict(self): 44 def test_blob_to_dict(self):
43 """ 45 """
44 Test convertion of git blobs to dictionary 46 Test convertion of git blobs to dictionary
@@ -51,6 +53,7 @@ class TestBlobParsing(OESelftestTestCase):
51 self.assertEqual(valuesmap, blob_to_dict(blob), 53 self.assertEqual(valuesmap, blob_to_dict(blob),
52 "commit was not translated correctly to dictionary") 54 "commit was not translated correctly to dictionary")
53 55
56 @OETestID(1860)
54 def test_compare_dict_blobs(self): 57 def test_compare_dict_blobs(self):
55 """ 58 """
56 Test comparisson of dictionaries extracted from git blobs 59 Test comparisson of dictionaries extracted from git blobs
@@ -71,6 +74,7 @@ class TestBlobParsing(OESelftestTestCase):
71 var_changes = { x.fieldname : (x.oldvalue, x.newvalue) for x in change_records} 74 var_changes = { x.fieldname : (x.oldvalue, x.newvalue) for x in change_records}
72 self.assertEqual(changesmap, var_changes, "Changes not reported correctly") 75 self.assertEqual(changesmap, var_changes, "Changes not reported correctly")
73 76
77 @OETestID(1861)
74 def test_compare_dict_blobs_default(self): 78 def test_compare_dict_blobs_default(self):
75 """ 79 """
76 Test default values for comparisson of git blob dictionaries 80 Test default values for comparisson of git blob dictionaries
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()
diff --git a/meta/lib/oeqa/selftest/cases/recipetool.py b/meta/lib/oeqa/selftest/cases/recipetool.py
index 46f0a7206b..bdd405f1cc 100644
--- a/meta/lib/oeqa/selftest/cases/recipetool.py
+++ b/meta/lib/oeqa/selftest/cases/recipetool.py
@@ -443,6 +443,7 @@ class RecipetoolTests(RecipetoolBase):
443 inherits = ['cmake', 'python-dir', 'gettext', 'pkgconfig'] 443 inherits = ['cmake', 'python-dir', 'gettext', 'pkgconfig']
444 self._test_recipe_contents(recipefile, checkvars, inherits) 444 self._test_recipe_contents(recipefile, checkvars, inherits)
445 445
446 @OETestID(1638)
446 def test_recipetool_create_github(self): 447 def test_recipetool_create_github(self):
447 # Basic test to see if github URL mangling works 448 # Basic test to see if github URL mangling works
448 temprecipe = os.path.join(self.tempdir, 'recipe') 449 temprecipe = os.path.join(self.tempdir, 'recipe')
@@ -457,6 +458,7 @@ class RecipetoolTests(RecipetoolBase):
457 inherits = ['setuptools'] 458 inherits = ['setuptools']
458 self._test_recipe_contents(recipefile, checkvars, inherits) 459 self._test_recipe_contents(recipefile, checkvars, inherits)
459 460
461 @OETestID(1639)
460 def test_recipetool_create_github_tarball(self): 462 def test_recipetool_create_github_tarball(self):
461 # Basic test to ensure github URL mangling doesn't apply to release tarballs 463 # Basic test to ensure github URL mangling doesn't apply to release tarballs
462 temprecipe = os.path.join(self.tempdir, 'recipe') 464 temprecipe = os.path.join(self.tempdir, 'recipe')
@@ -472,6 +474,7 @@ class RecipetoolTests(RecipetoolBase):
472 inherits = ['setuptools'] 474 inherits = ['setuptools']
473 self._test_recipe_contents(recipefile, checkvars, inherits) 475 self._test_recipe_contents(recipefile, checkvars, inherits)
474 476
477 @OETestID(1637)
475 def test_recipetool_create_git_http(self): 478 def test_recipetool_create_git_http(self):
476 # Basic test to check http git URL mangling works 479 # Basic test to check http git URL mangling works
477 temprecipe = os.path.join(self.tempdir, 'recipe') 480 temprecipe = os.path.join(self.tempdir, 'recipe')
@@ -499,6 +502,7 @@ class RecipetoolTests(RecipetoolBase):
499 shutil.copy(srcfile, dstfile) 502 shutil.copy(srcfile, dstfile)
500 self.track_for_cleanup(dstfile) 503 self.track_for_cleanup(dstfile)
501 504
505 @OETestID(1640)
502 def test_recipetool_load_plugin(self): 506 def test_recipetool_load_plugin(self):
503 """Test that recipetool loads only the first found plugin in BBPATH.""" 507 """Test that recipetool loads only the first found plugin in BBPATH."""
504 508
diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py b/meta/lib/oeqa/selftest/cases/runtime_test.py
index 2ac0a29761..2a70ae15b8 100644
--- a/meta/lib/oeqa/selftest/cases/runtime_test.py
+++ b/meta/lib/oeqa/selftest/cases/runtime_test.py
@@ -11,6 +11,7 @@ class TestExport(OESelftestTestCase):
11 runCmd("rm -rf /tmp/sdk") 11 runCmd("rm -rf /tmp/sdk")
12 super(TestExport, cls).tearDownClass() 12 super(TestExport, cls).tearDownClass()
13 13
14 @OETestID(1499)
14 def test_testexport_basic(self): 15 def test_testexport_basic(self):
15 """ 16 """
16 Summary: Check basic testexport functionality with only ping test enabled. 17 Summary: Check basic testexport functionality with only ping test enabled.
@@ -50,6 +51,7 @@ class TestExport(OESelftestTestCase):
50 # Verify ping test was succesful 51 # Verify ping test was succesful
51 self.assertEqual(0, result.status, 'oe-test runtime returned a non 0 status') 52 self.assertEqual(0, result.status, 'oe-test runtime returned a non 0 status')
52 53
54 @OETestID(1641)
53 def test_testexport_sdk(self): 55 def test_testexport_sdk(self):
54 """ 56 """
55 Summary: Check sdk functionality for testexport. 57 Summary: Check sdk functionality for testexport.
@@ -104,6 +106,7 @@ class TestExport(OESelftestTestCase):
104 106
105class TestImage(OESelftestTestCase): 107class TestImage(OESelftestTestCase):
106 108
109 @OETestID(1644)
107 def test_testimage_install(self): 110 def test_testimage_install(self):
108 """ 111 """
109 Summary: Check install packages functionality for testimage/testexport. 112 Summary: Check install packages functionality for testimage/testexport.
@@ -123,6 +126,7 @@ class TestImage(OESelftestTestCase):
123 bitbake('core-image-full-cmdline socat') 126 bitbake('core-image-full-cmdline socat')
124 bitbake('-c testimage core-image-full-cmdline') 127 bitbake('-c testimage core-image-full-cmdline')
125 128
129 @OETestID(1883)
126 def test_testimage_dnf(self): 130 def test_testimage_dnf(self):
127 """ 131 """
128 Summary: Check package feeds functionality for dnf 132 Summary: Check package feeds functionality for dnf
diff --git a/meta/lib/oeqa/selftest/cases/sstatetests.py b/meta/lib/oeqa/selftest/cases/sstatetests.py
index e68ef5cbe9..07a206824a 100644
--- a/meta/lib/oeqa/selftest/cases/sstatetests.py
+++ b/meta/lib/oeqa/selftest/cases/sstatetests.py
@@ -310,6 +310,7 @@ MACHINE = \"qemuarm\"
310""" 310"""
311 self.sstate_allarch_samesigs(configA, configB) 311 self.sstate_allarch_samesigs(configA, configB)
312 312
313 @OETestID(1645)
313 def test_sstate_allarch_samesigs_multilib(self): 314 def test_sstate_allarch_samesigs_multilib(self):
314 """ 315 """
315 The sstate checksums of allarch multilib packages should be independent of whichever 316 The sstate checksums of allarch multilib packages should be independent of whichever
@@ -410,6 +411,7 @@ DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
410 self.assertCountEqual(files1, files2) 411 self.assertCountEqual(files1, files2)
411 412
412 413
414 @OETestID(1498)
413 def test_sstate_noop_samesigs(self): 415 def test_sstate_noop_samesigs(self):
414 """ 416 """
415 The sstate checksums of two builds with these variables changed or 417 The sstate checksums of two builds with these variables changed or
diff --git a/meta/lib/oeqa/selftest/cases/tinfoil.py b/meta/lib/oeqa/selftest/cases/tinfoil.py
index 1394d426e7..3a58761c00 100644
--- a/meta/lib/oeqa/selftest/cases/tinfoil.py
+++ b/meta/lib/oeqa/selftest/cases/tinfoil.py
@@ -152,6 +152,7 @@ class TinfoilTests(OESelftestTestCase):
152 value = tinfoil.run_command('getVariable', 'TESTVAR') 152 value = tinfoil.run_command('getVariable', 'TESTVAR')
153 self.assertEqual(value, 'specialvalue', 'Value set using config_data.setVar() is not reflected in config_data.getVar()') 153 self.assertEqual(value, 'specialvalue', 'Value set using config_data.setVar() is not reflected in config_data.getVar()')
154 154
155 @OETestID(1884)
155 def test_datastore_operations(self): 156 def test_datastore_operations(self):
156 with bb.tinfoil.Tinfoil() as tinfoil: 157 with bb.tinfoil.Tinfoil() as tinfoil:
157 tinfoil.prepare(config_only=True) 158 tinfoil.prepare(config_only=True)
diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py
index ee9ff0f2dd..02c7d0f66e 100644
--- a/meta/lib/oeqa/selftest/cases/wic.py
+++ b/meta/lib/oeqa/selftest/cases/wic.py
@@ -311,6 +311,7 @@ class Wic(OESelftestTestCase):
311 "-D -o %s" % self.resultdir).status) 311 "-D -o %s" % self.resultdir).status)
312 self.assertEqual(1, len(glob(self.resultdir + "wictestdisk-*.direct"))) 312 self.assertEqual(1, len(glob(self.resultdir + "wictestdisk-*.direct")))
313 313
314 @OETestID(1658)
314 def test_debug_long(self): 315 def test_debug_long(self):
315 """Test --debug option""" 316 """Test --debug option"""
316 self.assertEqual(0, runCmd("wic create wictestdisk " 317 self.assertEqual(0, runCmd("wic create wictestdisk "
@@ -326,6 +327,7 @@ class Wic(OESelftestTestCase):
326 "-s -o %s" % self.resultdir).status) 327 "-s -o %s" % self.resultdir).status)
327 self.assertEqual(1, len(glob(self.resultdir + "wictestdisk-*.direct"))) 328 self.assertEqual(1, len(glob(self.resultdir + "wictestdisk-*.direct")))
328 329
330 @OETestID(1671)
329 def test_skip_build_check_long(self): 331 def test_skip_build_check_long(self):
330 """Test --skip-build-check option""" 332 """Test --skip-build-check option"""
331 self.assertEqual(0, runCmd("wic create wictestdisk " 333 self.assertEqual(0, runCmd("wic create wictestdisk "
@@ -342,6 +344,7 @@ class Wic(OESelftestTestCase):
342 "-f -o %s" % self.resultdir).status) 344 "-f -o %s" % self.resultdir).status)
343 self.assertEqual(1, len(glob(self.resultdir + "wictestdisk-*.direct"))) 345 self.assertEqual(1, len(glob(self.resultdir + "wictestdisk-*.direct")))
344 346
347 @OETestID(1656)
345 def test_build_rootfs_long(self): 348 def test_build_rootfs_long(self):
346 """Test --build-rootfs option""" 349 """Test --build-rootfs option"""
347 self.assertEqual(0, runCmd("wic create wictestdisk " 350 self.assertEqual(0, runCmd("wic create wictestdisk "
@@ -383,6 +386,7 @@ class Wic(OESelftestTestCase):
383 self.assertEqual(0, status) 386 self.assertEqual(0, status)
384 self.assertEqual(1, len(glob(self.resultdir + "%(wks)s-*.direct" % bbvars))) 387 self.assertEqual(1, len(glob(self.resultdir + "%(wks)s-*.direct" % bbvars)))
385 388
389 @OETestID(1661)
386 def test_exclude_path(self): 390 def test_exclude_path(self):
387 """Test --exclude-path wks option.""" 391 """Test --exclude-path wks option."""
388 392
@@ -490,6 +494,7 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r
490 finally: 494 finally:
491 os.environ['PATH'] = oldpath 495 os.environ['PATH'] = oldpath
492 496
497 @OETestID(1662)
493 def test_exclude_path_errors(self): 498 def test_exclude_path_errors(self):
494 """Test --exclude-path wks option error handling.""" 499 """Test --exclude-path wks option error handling."""
495 wks_file = 'temp.wks' 500 wks_file = 'temp.wks'
@@ -517,6 +522,7 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r
517 self.assertEqual(1, len(glob(self.resultdir + "wictestdisk-*direct"))) 522 self.assertEqual(1, len(glob(self.resultdir + "wictestdisk-*direct")))
518 self.assertEqual(1, len(glob(self.resultdir + "wictestdisk-*direct.bmap"))) 523 self.assertEqual(1, len(glob(self.resultdir + "wictestdisk-*direct.bmap")))
519 524
525 @OETestID(1655)
520 def test_bmap_long(self): 526 def test_bmap_long(self):
521 """Test generation of .bmap file --bmap option""" 527 """Test generation of .bmap file --bmap option"""
522 cmd = "wic create wictestdisk -e core-image-minimal --bmap -o %s" % self.resultdir 528 cmd = "wic create wictestdisk -e core-image-minimal --bmap -o %s" % self.resultdir
@@ -569,6 +575,7 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r
569 % (image, imgenvdir, self.resultdir)).status) 575 % (image, imgenvdir, self.resultdir)).status)
570 self.assertEqual(1, len(glob(self.resultdir + "wictestdisk-*direct"))) 576 self.assertEqual(1, len(glob(self.resultdir + "wictestdisk-*direct")))
571 577
578 @OETestID(1665)
572 def test_image_vars_dir_long(self): 579 def test_image_vars_dir_long(self):
573 """Test image vars directory selection --vars option""" 580 """Test image vars directory selection --vars option"""
574 image = 'core-image-minimal' 581 image = 'core-image-minimal'
@@ -618,6 +625,7 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r
618 self.assertEqual(output, '/dev/root /\r\n/dev/sda3 /mnt') 625 self.assertEqual(output, '/dev/root /\r\n/dev/sda3 /mnt')
619 626
620 @only_for_arch(['i586', 'i686', 'x86_64']) 627 @only_for_arch(['i586', 'i686', 'x86_64'])
628 @OETestID(1852)
621 def test_qemu_efi(self): 629 def test_qemu_efi(self):
622 """Test core-image-minimal efi image under qemu""" 630 """Test core-image-minimal efi image under qemu"""
623 config = 'IMAGE_FSTYPES = "wic"\nWKS_FILE = "mkefidisk.wks"\n' 631 config = 'IMAGE_FSTYPES = "wic"\nWKS_FILE = "mkefidisk.wks"\n'
@@ -647,6 +655,7 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r
647 655
648 return wkspath, wksname 656 return wkspath, wksname
649 657
658 @OETestID(1847)
650 def test_fixed_size(self): 659 def test_fixed_size(self):
651 """ 660 """
652 Test creation of a simple image with partition size controlled through 661 Test creation of a simple image with partition size controlled through
@@ -677,6 +686,7 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r
677 self.assertEqual(1, len(partlns)) 686 self.assertEqual(1, len(partlns))
678 self.assertEqual("1:0.00MiB:200MiB:200MiB:ext4::;", partlns[0]) 687 self.assertEqual("1:0.00MiB:200MiB:200MiB:ext4::;", partlns[0])
679 688
689 @OETestID(1848)
680 def test_fixed_size_error(self): 690 def test_fixed_size_error(self):
681 """ 691 """
682 Test creation of a simple image with partition size controlled through 692 Test creation of a simple image with partition size controlled through
@@ -692,6 +702,7 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r
692 self.assertEqual(0, len(wicout)) 702 self.assertEqual(0, len(wicout))
693 703
694 @only_for_arch(['i586', 'i686', 'x86_64']) 704 @only_for_arch(['i586', 'i686', 'x86_64'])
705 @OETestID(1854)
695 def test_rawcopy_plugin_qemu(self): 706 def test_rawcopy_plugin_qemu(self):
696 """Test rawcopy plugin in qemu""" 707 """Test rawcopy plugin in qemu"""
697 # build ext4 and wic images 708 # build ext4 and wic images
@@ -707,6 +718,7 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r
707 self.assertEqual(1, status, 'Failed to run command "%s": %s' % (cmd, output)) 718 self.assertEqual(1, status, 'Failed to run command "%s": %s' % (cmd, output))
708 self.assertEqual(output, '2') 719 self.assertEqual(output, '2')
709 720
721 @OETestID(1853)
710 def test_rawcopy_plugin(self): 722 def test_rawcopy_plugin(self):
711 """Test rawcopy plugin""" 723 """Test rawcopy plugin"""
712 img = 'core-image-minimal' 724 img = 'core-image-minimal'
@@ -723,6 +735,7 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r
723 out = glob(self.resultdir + "%s-*direct" % wksname) 735 out = glob(self.resultdir + "%s-*direct" % wksname)
724 self.assertEqual(1, len(out)) 736 self.assertEqual(1, len(out))
725 737
738 @OETestID(1849)
726 def test_fs_types(self): 739 def test_fs_types(self):
727 """Test filesystem types for empty and not empty partitions""" 740 """Test filesystem types for empty and not empty partitions"""
728 img = 'core-image-minimal' 741 img = 'core-image-minimal'
@@ -742,6 +755,7 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r
742 out = glob(self.resultdir + "%s-*direct" % wksname) 755 out = glob(self.resultdir + "%s-*direct" % wksname)
743 self.assertEqual(1, len(out)) 756 self.assertEqual(1, len(out))
744 757
758 @OETestID(1851)
745 def test_kickstart_parser(self): 759 def test_kickstart_parser(self):
746 """Test wks parser options""" 760 """Test wks parser options"""
747 with NamedTemporaryFile("w", suffix=".wks") as wks: 761 with NamedTemporaryFile("w", suffix=".wks") as wks:
@@ -754,6 +768,7 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r
754 out = glob(self.resultdir + "%s-*direct" % wksname) 768 out = glob(self.resultdir + "%s-*direct" % wksname)
755 self.assertEqual(1, len(out)) 769 self.assertEqual(1, len(out))
756 770
771 @OETestID(1850)
757 def test_image_bootpart_globbed(self): 772 def test_image_bootpart_globbed(self):
758 """Test globbed sources with image-bootpart plugin""" 773 """Test globbed sources with image-bootpart plugin"""
759 img = "core-image-minimal" 774 img = "core-image-minimal"
@@ -764,6 +779,7 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r
764 self.remove_config(config) 779 self.remove_config(config)
765 self.assertEqual(1, len(glob(self.resultdir + "sdimage-bootpart-*direct"))) 780 self.assertEqual(1, len(glob(self.resultdir + "sdimage-bootpart-*direct")))
766 781
782 @OETestID(1855)
767 def test_sparse_copy(self): 783 def test_sparse_copy(self):
768 """Test sparse_copy with FIEMAP and SEEK_HOLE filemap APIs""" 784 """Test sparse_copy with FIEMAP and SEEK_HOLE filemap APIs"""
769 libpath = os.path.join(get_bb_var('COREBASE'), 'scripts', 'lib', 'wic') 785 libpath = os.path.join(get_bb_var('COREBASE'), 'scripts', 'lib', 'wic')
@@ -792,6 +808,7 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r
792 self.assertEqual(dest_stat.st_blocks, 8) 808 self.assertEqual(dest_stat.st_blocks, 8)
793 os.unlink(dest) 809 os.unlink(dest)
794 810
811 @OETestID(1857)
795 def test_wic_ls(self): 812 def test_wic_ls(self):
796 """Test listing image content using 'wic ls'""" 813 """Test listing image content using 'wic ls'"""
797 self.assertEqual(0, runCmd("wic create wictestdisk " 814 self.assertEqual(0, runCmd("wic create wictestdisk "
@@ -812,6 +829,7 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r
812 self.assertEqual(0, result.status) 829 self.assertEqual(0, result.status)
813 self.assertEqual(6, len(result.output.split('\n'))) 830 self.assertEqual(6, len(result.output.split('\n')))
814 831
832 @OETestID(1856)
815 def test_wic_cp(self): 833 def test_wic_cp(self):
816 """Test copy files and directories to the the wic image.""" 834 """Test copy files and directories to the the wic image."""
817 self.assertEqual(0, runCmd("wic create wictestdisk " 835 self.assertEqual(0, runCmd("wic create wictestdisk "
@@ -856,6 +874,7 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r
856 self.assertEqual(8, len(result.output.split('\n'))) 874 self.assertEqual(8, len(result.output.split('\n')))
857 self.assertTrue(os.path.basename(testdir) in result.output) 875 self.assertTrue(os.path.basename(testdir) in result.output)
858 876
877 @OETestID(1858)
859 def test_wic_rm(self): 878 def test_wic_rm(self):
860 """Test removing files and directories from the the wic image.""" 879 """Test removing files and directories from the the wic image."""
861 self.assertEqual(0, runCmd("wic create mkefidisk " 880 self.assertEqual(0, runCmd("wic create mkefidisk "