[oe-commits] Costin Constantin : oeqa/buildoptions.py: automate test case 563; build directfb image
git at git.openembedded.org
git at git.openembedded.org
Thu Jul 23 07:49:48 UTC 2015
Module: openembedded-core.git
Branch: master
Commit: 1054662a891f37dc62e0ddeeadfd840944833389
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=1054662a891f37dc62e0ddeeadfd840944833389
Author: Costin Constantin <costin.c.constantin at intel.com>
Date: Wed Jul 22 09:54:56 2015 +0300
oeqa/buildoptions.py: automate test case 563; build directfb image
Signed-off-by: Costin Constantin <costin.c.constantin at intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/lib/oeqa/selftest/buildoptions.py | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/meta/lib/oeqa/selftest/buildoptions.py b/meta/lib/oeqa/selftest/buildoptions.py
index 13ec276..998697d 100644
--- a/meta/lib/oeqa/selftest/buildoptions.py
+++ b/meta/lib/oeqa/selftest/buildoptions.py
@@ -119,8 +119,14 @@ class BuildhistoryTests(BuildhistoryBase):
self.run_buildhistory_operation(target, target_config="PR = \"r1\"", change_bh_location=True)
self.run_buildhistory_operation(target, target_config="PR = \"r0\"", change_bh_location=False, expect_error=True, error_regex=error)
-
-
-
-
-
+class BuildImagesTest(oeSelfTest):
+ @testcase(563)
+ def test_directfb(self):
+ """
+ This method is used to test the build of directfb image for arm arch.
+ In essence we build a coreimagedirectfb and test the exitcode of bitbake that in case of success is 0.
+ """
+ self.add_command_to_tearDown('cleanupworkdir')
+ self.write_config("DISTRO_FEATURES_remove = \"x11\"\nDISTRO_FEATURES_append = \" directfb\"\nMACHINE ??= \"qemuarm\"")
+ res = bitbake("core-image-directfb", ignore_status=True)
+ self.assertEqual(res.status, 0, "\ncoreimagedirectfb failed to build. Please check logs for further details.\nbitbake output %s" % res.output)
More information about the Openembedded-commits
mailing list