Signed-off-by: Costin Constantin <costin.c.constan...@intel.com> --- meta/lib/oeqa/selftest/buildoptions.py | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/meta/lib/oeqa/selftest/buildoptions.py b/meta/lib/oeqa/selftest/buildoptions.py index 620fd77..8cacd1e 100644 --- a/meta/lib/oeqa/selftest/buildoptions.py +++ b/meta/lib/oeqa/selftest/buildoptions.py @@ -123,16 +123,19 @@ 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): +class ArchiverTest(oeSelfTest): + @testcase(926) + def test_arch_work_dir_and_export_source(self): """ - This method is used to test the build of directfb image for arm arch. - In essence we build a core-image-directfb and test the exitcode of bitbake that in case of success is 0. + Test for archiving the work directory and exporting the source files. """ self.add_command_to_tearDown('cleanup-workdir') - self.write_config("DISTRO_FEATURES_remove = \"x11\"\nDISTRO_FEATURES_append = \" directfb\"\nMACHINE ??= \"qemuarm\"") - self.res = bitbake("core-image-directfb").status - self.remove_config("DISTRO_FEATURES_remove = \"x11\"\nDISTRO_FEATURES_append = \" directfb\"\nMACHINE ??= \"qemuarm\"") - self.assertEqual(self.res, 0, "\ndirectfb image couldn't be built\n") - self.assertEqual(self.res, 0, "\ncore-image-directfb failed to build. Please check logs for further details.\n") \ No newline at end of file + self.write_config("INHERIT += \"archiver\"\nARCHIVER_MODE[src] = \"original\"\nARCHIVER_MODE[srpm] = \"1\"") + self.res = bitbake("xcursor-transparent-theme").status + self.remove_config("INHERIT += \"archiver\"\nARCHIVER_MODE[src] = \"original\"\nARCHIVER_MODE[srpm] = \"1\"") + self.assertEqual(self.res, 0, "\nCouldn't build xcursor-transparent-theme.\n") + self.pkgs_path = g.glob(str(self.builddir) + "/tmp/deploy/sources/allarch*/xcurs*") + self.src_file_glob = str(self.pkgs_path[0]) + "/xcursor*.src.rpm" + self.tar_file_glob = str(self.pkgs_path[0]) + "/xcursor*.tar.gz" + if (g.glob(self.src_file_glob) and g.glob(self.tar_file_glob)): + self.assertTrue(True, "Couldn't find .src.rpm and .tar.gz files under tmp/deploy/sources/allarch*/xcursor*") \ No newline at end of file -- 2.1.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core