aboutsummaryrefslogtreecommitdiffstats
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:22:47 +0100
commit0b2fae81fdb6dc7ce557707d3680334612c1c27b (patch)
tree86bbf4dccf367c46108038d6ca45c2c544ecbc5c
parent1701a34f1483d9bced6352b8a9f00aa501166d02 (diff)
downloadopenembedded-core-contrib-0b2fae81fdb6dc7ce557707d3680334612c1c27b.tar.gz
openembedded-core-contrib-0b2fae81fdb6dc7ce557707d3680334612c1c27b.tar.bz2
openembedded-core-contrib-0b2fae81fdb6dc7ce557707d3680334612c1c27b.zip
oeqa.buildperf: add test Test2
Re-implement "test2" from build-perf-test.sh which measures 'bitbake core-image-sato -c rootfs'. (From OE-Core rev: 8cb322d6a5be08f0bb2c9e5d3b73161b20d737a3) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.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/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')