diff options
author | Corneliu Stoicescu <corneliux.stoicescu@intel.com> | 2013-12-17 12:32:29 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-20 12:25:23 +0000 |
commit | 0e462295d9db0201fb1ba2b6247ecb05fa7fcee1 (patch) | |
tree | cb08ba3e7372075d41c845d3582ae6f50d19e5b3 /meta/lib | |
parent | 685879739017317f234824689cbd89388d236816 (diff) | |
download | openembedded-core-0e462295d9db0201fb1ba2b6247ecb05fa7fcee1.tar.gz openembedded-core-0e462295d9db0201fb1ba2b6247ecb05fa7fcee1.tar.bz2 openembedded-core-0e462295d9db0201fb1ba2b6247ecb05fa7fcee1.zip |
oe-selftest: added buildhistory buildtime tests in module buildoptions.py
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/selftest/buildoptions.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/buildoptions.py b/meta/lib/oeqa/selftest/buildoptions.py index 5fb69d8170..ef6579b335 100644 --- a/meta/lib/oeqa/selftest/buildoptions.py +++ b/meta/lib/oeqa/selftest/buildoptions.py @@ -4,6 +4,7 @@ import logging import re from oeqa.selftest.base import oeSelfTest +from oeqa.selftest.buildhistory import BuildhistoryBase from oeqa.utils.commands import runCmd, bitbake, get_bb_var import oeqa.utils.ftools as ftools @@ -85,3 +86,22 @@ class SanityOptionsTest(oeSelfTest): res = bitbake("gzip nfs-utils") self.assertTrue("WARNING: QA Issue: gzip" in res.output) self.assertTrue("WARNING: QA Issue: nfs-utils" in res.output) + +class BuildhistoryTests(BuildhistoryBase): + + def test_buildhistory_basic(self): + self.run_buildhistory_operation('xcursor-transparent-theme') + self.assertTrue(os.path.isdir(get_bb_var('BUILDHISTORY_DIR'))) + + def test_buildhistory_buildtime_pr_backwards(self): + self.add_command_to_tearDown('cleanup-workdir') + target = 'xcursor-transparent-theme' + error = "ERROR: QA Issue: Package version for package %s went backwards which would break package feeds from (.*-r1 to .*-r0)" % target + 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) + + + + + + |