summaryrefslogtreecommitdiff
path: root/meta/lib
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-06-23 18:23:53 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-01 16:08:50 +0100
commit8cb322d6a5be08f0bb2c9e5d3b73161b20d737a3 (patch)
tree2d7d51561fff03ea24c084ac28e0314b49f405c6 /meta/lib
parentbfe48d343e8a281760da0b6744c08d47039f93e0 (diff)
downloadopenembedded-core-8cb322d6a5be08f0bb2c9e5d3b73161b20d737a3.tar.gz
openembedded-core-8cb322d6a5be08f0bb2c9e5d3b73161b20d737a3.tar.bz2
openembedded-core-8cb322d6a5be08f0bb2c9e5d3b73161b20d737a3.zip
oeqa.buildperf: add test Test2
Re-implement "test2" from build-perf-test.sh which measures 'bitbake core-image-sato -c rootfs'. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/buildperf/basic_tests.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/lib/oeqa/buildperf/basic_tests.py b/meta/lib/oeqa/buildperf/basic_tests.py
index a3c1e82bce..9012a2df3e 100644
--- a/meta/lib/oeqa/buildperf/basic_tests.py
+++ b/meta/lib/oeqa/buildperf/basic_tests.py
@@ -69,3 +69,17 @@ class Test1P3(BuildPerfTest):
finally:
os.unlink(postfile)
self.save_buildstats()
+
+
+@perf_test_case
+class Test2(BuildPerfTest):
+ name = "test2"
+ build_target = 'core-image-sato'
+ description = "Measure bitbake {} -c rootfs with sstate".format(build_target)
+
+ def _run(self):
+ self.rm_tmp()
+ self.rm_cache()
+ self.sync()
+ cmd = ['bitbake', self.build_target, '-c', 'rootfs']
+ self.measure_cmd_resources(cmd, 'do_rootfs', 'bitbake do_rootfs')