summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/selftest/cases/devtool.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py
index a877720769..6ed51d7a45 100644
--- a/meta/lib/oeqa/selftest/cases/devtool.py
+++ b/meta/lib/oeqa/selftest/cases/devtool.py
@@ -1086,6 +1086,32 @@ class DevtoolModifyTests(DevtoolBase):
1086 check('devtool-override-qemuarm', 'This is a test for qemuarm\n') 1086 check('devtool-override-qemuarm', 'This is a test for qemuarm\n')
1087 check('devtool-override-qemux86', 'This is a test for qemux86\n') 1087 check('devtool-override-qemux86', 'This is a test for qemux86\n')
1088 1088
1089 def test_devtool_modify_multiple_sources(self):
1090 # This test check that recipes fetching several sources can be used with devtool modify/build
1091 # Check preconditions
1092 testrecipe = 'bzip2'
1093 src_uri = get_bb_var('SRC_URI', testrecipe)
1094 src1 = 'https://' in src_uri
1095 src2 = 'git://' in src_uri
1096 self.assertTrue(src1 and src2, 'This test expects the %s recipe to fetch both a git source and a tarball and it seems that it no longer does' % testrecipe)
1097 # Clean up anything in the workdir/sysroot/sstate cache
1098 bitbake('%s -c cleansstate' % testrecipe)
1099 # Try modifying a recipe
1100 tempdir = tempfile.mkdtemp(prefix='devtoolqa')
1101 self.track_for_cleanup(tempdir)
1102 self.track_for_cleanup(self.workspacedir)
1103 self.add_command_to_tearDown('bitbake -c clean %s' % testrecipe)
1104 self.add_command_to_tearDown('bitbake-layers remove-layer */workspace')
1105 result = runCmd('devtool modify %s -x %s' % (testrecipe, tempdir))
1106 self.assertEqual(result.status, 0, "Could not modify recipe %s. Output: %s" % (testrecipe, result.output))
1107 # Test devtool status
1108 result = runCmd('devtool status')
1109 self.assertIn(testrecipe, result.output)
1110 self.assertIn(tempdir, result.output)
1111 # Try building
1112 result = bitbake(testrecipe)
1113 self.assertEqual(result.status, 0, "Bitbake failed, exit code %s, output %s" % (result.status, result.output))
1114
1089class DevtoolUpdateTests(DevtoolBase): 1115class DevtoolUpdateTests(DevtoolBase):
1090 1116
1091 def test_devtool_update_recipe(self): 1117 def test_devtool_update_recipe(self):