diff options
Diffstat (limited to 'meta/lib/oeqa/selftest')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/imagefeatures.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/imagefeatures.py b/meta/lib/oeqa/selftest/cases/imagefeatures.py index dac74ba72b..2c59ef6490 100644 --- a/meta/lib/oeqa/selftest/cases/imagefeatures.py +++ b/meta/lib/oeqa/selftest/cases/imagefeatures.py | |||
@@ -130,6 +130,36 @@ class ImageFeatures(OESelftestTestCase): | |||
130 | # check if the resulting gzip is valid | 130 | # check if the resulting gzip is valid |
131 | self.assertTrue(runCmd('gzip -t %s' % gzip_path)) | 131 | self.assertTrue(runCmd('gzip -t %s' % gzip_path)) |
132 | 132 | ||
133 | def test_long_chain_conversion(self): | ||
134 | """ | ||
135 | Summary: Check for chaining many CONVERSION_CMDs together | ||
136 | Expected: 1. core-image-minimal can be built with | ||
137 | ext4.bmap.gz.bz2.lzo.xz.u-boot and also create a | ||
138 | sha256sum | ||
139 | 2. The above image has a valid sha256sum | ||
140 | Product: oe-core | ||
141 | Author: Tom Rini <trini@konsulko.com> | ||
142 | """ | ||
143 | |||
144 | conv = "ext4.bmap.gz.bz2.lzo.xz.u-boot" | ||
145 | features = 'IMAGE_FSTYPES += "%s %s.sha256sum"' % (conv, conv) | ||
146 | self.write_config(features) | ||
147 | |||
148 | image_name = 'core-image-minimal' | ||
149 | bitbake(image_name) | ||
150 | |||
151 | deploy_dir_image = get_bb_var('DEPLOY_DIR_IMAGE') | ||
152 | link_name = get_bb_var('IMAGE_LINK_NAME', image_name) | ||
153 | image_path = os.path.join(deploy_dir_image, "%s.%s" % | ||
154 | (link_name, conv)) | ||
155 | |||
156 | # check if resulting image is in the deploy directory | ||
157 | self.assertTrue(os.path.exists(image_path)) | ||
158 | self.assertTrue(os.path.exists(image_path + ".sha256sum")) | ||
159 | |||
160 | # check if the resulting sha256sum agrees | ||
161 | self.assertTrue(runCmd('cd %s;sha256sum -c %s.%s.sha256sum' % | ||
162 | (deploy_dir_image, link_name, conv))) | ||
133 | 163 | ||
134 | def test_image_fstypes(self): | 164 | def test_image_fstypes(self): |
135 | """ | 165 | """ |