Hi Ed,

On Thu, 20 Aug 2015 14:56:27 +0300 Ed Bartosh <ed.bart...@linux.intel.com> 
wrote:

> Added test case to verify building of wic-image-minimal recipe
> and produced artifacts: manifest and bzipped partitioned image.
>
> Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com>
> ---
>  meta/lib/oeqa/selftest/wic.py | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>
> diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
> index 15de621..dc0745a 100644
> --- a/meta/lib/oeqa/selftest/wic.py
> +++ b/meta/lib/oeqa/selftest/wic.py
> @@ -180,3 +180,17 @@ class Wic(oeSelfTest):
>                          'IMAGE_LINK_NAME', 'STAGING_LIBDIR', 'ROOTFS_SIZE'):
>                  self.assertTrue(var in content)
>                  self.assertTrue(content[var])
> +
> +    def test19_wic_image_type(self):
> +        """Test building wic images by bitbake"""
> +        self.assertEqual(0, bitbake('wic-image-minimal').status)
> +
> +        deploy_dir = get_bb_var('DEPLOY_DIR_IMAGE')
> +        machine = get_bb_var('MACHINE')
> +        prefix = os.path.join(deploy_dir, 'wic-image-minimal-%s.' % machine)
> +        # check if we have result image and manifests synmlinks

Small typo: s/synmlinks/symlinks/.

> +        # pointing to existing files
> +        for suffix in ('wic.bz2', 'manifest'):
> +            path = prefix + suffix
> +            self.assertTrue(os.path.islink(path))
> +            self.assertTrue(os.path.isfile(os.path.realpath(path)))
> -- 
> 2.1.4

Best wishes.
Mario
-- 
http://www.ossystems.com.br
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to