* [PATCH v3] oeqa/selftest: Adds verification for the integrity compressed images
@ 2017-06-06 19:29 Francisco Pedraza
2017-06-08 10:51 ` Burton, Ross
0 siblings, 1 reply; 3+ messages in thread
From: Francisco Pedraza @ 2017-06-06 19:29 UTC (permalink / raw)
To: openembedded-core; +Cc: Francisco Pedraza
Added verification for images compression divided in 3 steps.
1. Add IMAGE_FSTYPES += "[type(s)]" to ~/conf/local.conf
2. Build a "core-image-minimal" using this configuration.
3. Verify that the image compressed file is present in rootfs directory.
YOCTO[#10745]
Signed-off-by: Francisco Pedraza <francisco.j.pedraza.gonzalez@intel.com>
---
meta/lib/oeqa/selftest/cases/runtime_test.py | 33 ++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py b/meta/lib/oeqa/selftest/cases/runtime_test.py
index 9fec4d8..d0e467e 100644
--- a/meta/lib/oeqa/selftest/cases/runtime_test.py
+++ b/meta/lib/oeqa/selftest/cases/runtime_test.py
@@ -237,3 +237,36 @@ postinst-delayed-t \
sshargs = '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
result = runCmd('ssh %s root@%s %s' % (sshargs, qemu.ip, testcommand))
self.assertEqual(result.status, 0, 'File %s was not created at firts boot'% fileboot_name)
+
+class GeneratedImages(OESelftestTestCase):
+ @OETestID(1845)
+ def test_integrity_compressed_images(self):
+ """
+ Summary: The purpose of this test is to verify the correct behavior of all the available images compression.
+ Bugzilla ID: [10745]
+ Steps:
+ 1. Add IMAGE_FSTYPES += "[type(s)]" to ~/conf/local.conf
+ 2. Build a "core-image-minimal" using this configuration.
+ 3. Verify that the image compressed file is present in rootfs directory.
+ """
+ # Step 1 Add configuration to conf/local.conf
+ image_types = get_bb_var('IMAGE_TYPES', 'core-image-minimal')
+ features = 'IMAGE_CONTAINER_NO_DUMMY = "1"\n'
+ features_list = image_types.split()
+ self.write_config("IMAGE_FSTYPES += \"%s\"" % image_types)
+ self.append_config(features)
+
+ # Step 2, compile.
+ build = 'core-image-minimal'
+ bitbake(build)
+
+ for image_feature in features_list:
+ # Step 3 Verify compressed images are present in rottfs directory.
+ need_vars = ['DEPLOY_DIR_IMAGE','MACHINE']
+ bb_vars = get_bb_vars(need_vars, 'core-image-minimal')
+ deploy_dir_image = bb_vars['DEPLOY_DIR_IMAGE']
+ machine = bb_vars['MACHINE']
+ compressed_file = "%s-%s.%s" % (build, machine, image_feature)
+ complete_path = os.path.join(deploy_dir_image, compressed_file)
+ msg = "Couldn't find compressed file: %s" % complete_path
+ self.assertEqual(os.path.isfile(complete_path), True, msg)
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v3] oeqa/selftest: Adds verification for the integrity compressed images
2017-06-06 19:29 [PATCH v3] oeqa/selftest: Adds verification for the integrity compressed images Francisco Pedraza
@ 2017-06-08 10:51 ` Burton, Ross
2017-06-08 14:34 ` Leonardo Sandoval
0 siblings, 1 reply; 3+ messages in thread
From: Burton, Ross @ 2017-06-08 10:51 UTC (permalink / raw)
To: Francisco Pedraza; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 541 bytes --]
On 6 June 2017 at 20:29, Francisco Pedraza <
francisco.j.pedraza.gonzalez@intel.com> wrote:
> Added verification for images compression divided in 3 steps.
> 1. Add IMAGE_FSTYPES += "[type(s)]" to ~/conf/local.conf
> 2. Build a "core-image-minimal" using this configuration.
> 3. Verify that the image compressed file is present in rootfs directory.
> YOCTO[#10745]
>
Still fails on the main AB:
https://autobuilder.yoctoproject.org/main/builders/nightly-oe-selftest/builds/911/steps/Running%20oe-selftest/logs/stdio
Ross
[-- Attachment #2: Type: text/html, Size: 1274 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v3] oeqa/selftest: Adds verification for the integrity compressed images
2017-06-08 10:51 ` Burton, Ross
@ 2017-06-08 14:34 ` Leonardo Sandoval
0 siblings, 0 replies; 3+ messages in thread
From: Leonardo Sandoval @ 2017-06-08 14:34 UTC (permalink / raw)
To: Burton, Ross; +Cc: Francisco Pedraza, OE-core
On Thu, 2017-06-08 at 11:51 +0100, Burton, Ross wrote:
>
> On 6 June 2017 at 20:29, Francisco Pedraza
> <francisco.j.pedraza.gonzalez@intel.com> wrote:
> Added verification for images compression divided in 3 steps.
> 1. Add IMAGE_FSTYPES += "[type(s)]" to ~/conf/local.conf
> 2. Build a "core-image-minimal" using this configuration.
> 3. Verify that the image compressed file is present in rootfs
> directory.
> YOCTO[#10745]
>
> Still fails on the main AB:
>
>
> https://autobuilder.yoctoproject.org/main/builders/nightly-oe-selftest/builds/911/steps/Running%20oe-selftest/logs/stdio
>
perhaps the fails are expected as commented on
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10745#c9
>
> Ross
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-08 14:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-06 19:29 [PATCH v3] oeqa/selftest: Adds verification for the integrity compressed images Francisco Pedraza
2017-06-08 10:51 ` Burton, Ross
2017-06-08 14:34 ` Leonardo Sandoval
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox