diff options
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/devtool.py')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/devtool.py | 10 |
1 files changed, 10 insertions, 0 deletions
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') |