diff options
| author | Costin Constantin <costin.c.constantin@intel.com> | 2015-07-22 09:54:56 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-23 08:48:40 +0100 |
| commit | d8c981041c9b7d8eb0c5f813a66ab99a9f5f895c (patch) | |
| tree | b50ac12b1ad78f6cb0493140569c8a8f089f3fc5 | |
| parent | 99e39a1ff6b005621a6131b168b7865a127633e9 (diff) | |
| download | poky-d8c981041c9b7d8eb0c5f813a66ab99a9f5f895c.tar.gz | |
oeqa/buildoptions.py: automate test case 563; build directfb image
(From OE-Core rev: 1054662a891f37dc62e0ddeeadfd840944833389)
Signed-off-by: Costin Constantin <costin.c.constantin@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/lib/oeqa/selftest/buildoptions.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/meta/lib/oeqa/selftest/buildoptions.py b/meta/lib/oeqa/selftest/buildoptions.py index 13ec276459..998697daef 100644 --- a/meta/lib/oeqa/selftest/buildoptions.py +++ b/meta/lib/oeqa/selftest/buildoptions.py | |||
| @@ -119,8 +119,14 @@ class BuildhistoryTests(BuildhistoryBase): | |||
| 119 | self.run_buildhistory_operation(target, target_config="PR = \"r1\"", change_bh_location=True) | 119 | self.run_buildhistory_operation(target, target_config="PR = \"r1\"", change_bh_location=True) |
| 120 | self.run_buildhistory_operation(target, target_config="PR = \"r0\"", change_bh_location=False, expect_error=True, error_regex=error) | 120 | self.run_buildhistory_operation(target, target_config="PR = \"r0\"", change_bh_location=False, expect_error=True, error_regex=error) |
| 121 | 121 | ||
| 122 | 122 | class BuildImagesTest(oeSelfTest): | |
| 123 | 123 | @testcase(563) | |
| 124 | 124 | def test_directfb(self): | |
| 125 | 125 | """ | |
| 126 | 126 | This method is used to test the build of directfb image for arm arch. | |
| 127 | In essence we build a coreimagedirectfb and test the exitcode of bitbake that in case of success is 0. | ||
| 128 | """ | ||
| 129 | self.add_command_to_tearDown('cleanupworkdir') | ||
| 130 | self.write_config("DISTRO_FEATURES_remove = \"x11\"\nDISTRO_FEATURES_append = \" directfb\"\nMACHINE ??= \"qemuarm\"") | ||
| 131 | res = bitbake("core-image-directfb", ignore_status=True) | ||
| 132 | self.assertEqual(res.status, 0, "\ncoreimagedirectfb failed to build. Please check logs for further details.\nbitbake output %s" % res.output) | ||
