mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
oeqa.buildperf: make tests independent
Add test set-up functionality so that the individual tests do not depend on each other. This should make sure that a failure in one test does not affect the results of another test. The patch also makes it reasonable to run only a subset of the tests by using the --run-tests option. The increase in total execution time of the full suite - caused by the additional set-up steps - is insignificant because normally no additional tasks need to be run. The previous test has already done all set-up work. (From OE-Core rev: 69b3c63e32d09ea4a41b21daacdff6bf1fc447c1) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
6722b0412c
commit
85b7b10b4a
@@ -23,7 +23,6 @@ class Test1P1(BuildPerfTestCase):
|
||||
|
||||
def test1(self):
|
||||
"""Measure wall clock of bitbake core-image-sato and size of tmp dir"""
|
||||
self.log_cmd_output("bitbake {} -c fetchall".format(self.build_target))
|
||||
self.rm_tmp()
|
||||
self.rm_sstate()
|
||||
self.rm_cache()
|
||||
@@ -39,8 +38,10 @@ class Test1P2(BuildPerfTestCase):
|
||||
|
||||
def test12(self):
|
||||
"""Measure bitbake virtual/kernel"""
|
||||
self.log_cmd_output("bitbake {} -c cleansstate".format(
|
||||
self.build_target))
|
||||
# Build and cleans state in order to get all dependencies pre-built
|
||||
self.log_cmd_output(['bitbake', self.build_target])
|
||||
self.log_cmd_output(['bitbake', self.build_target, '-c', 'cleansstate'])
|
||||
|
||||
self.sync()
|
||||
self.measure_cmd_resources(['bitbake', self.build_target], 'build',
|
||||
'bitbake ' + self.build_target)
|
||||
@@ -73,6 +74,9 @@ class Test2(BuildPerfTestCase):
|
||||
|
||||
def test2(self):
|
||||
"""Measure bitbake core-image-sato -c rootfs with sstate"""
|
||||
# Build once in order to populate sstate cache
|
||||
self.log_cmd_output(['bitbake', self.build_target])
|
||||
|
||||
self.rm_tmp()
|
||||
self.rm_cache()
|
||||
self.sync()
|
||||
|
||||
Reference in New Issue
Block a user