summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-06-23 18:18:24 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-01 16:08:50 +0100
commit5ff82c6e2b0ff41a9bfdd49c99e84a982cf6e467 (patch)
tree53bfa8a0de8cc82a767f42c8df81b7d60a461ff2
parent1ddd4a8ce4e2053def0e946d4e4b4b97bdc28e61 (diff)
downloadopenembedded-core-contrib-5ff82c6e2b0ff41a9bfdd49c99e84a982cf6e467.tar.gz
openembedded-core-contrib-5ff82c6e2b0ff41a9bfdd49c99e84a982cf6e467.tar.bz2
openembedded-core-contrib-5ff82c6e2b0ff41a9bfdd49c99e84a982cf6e467.zip
oeqa.buildperf: add test Test1P2
Re-implement "test1_p2" from build-perf-test.sh which measures 'bitbake virtual/kernel'. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-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 95bb8d87cb..80bdb3fbcb 100644
--- a/meta/lib/oeqa/buildperf/basic_tests.py
+++ b/meta/lib/oeqa/buildperf/basic_tests.py
@@ -29,3 +29,17 @@ class Test1P1(BuildPerfTest):
'bitbake ' + self.build_target)
self.measure_disk_usage(self.bb_vars['TMPDIR'], 'tmpdir', 'tmpdir')
self.save_buildstats()
+
+
+@perf_test_case
+class Test1P2(BuildPerfTest):
+ name = "test12"
+ build_target = 'virtual/kernel'
+ description = "Measure bitbake {}".format(build_target)
+
+ def _run(self):
+ self.log_cmd_output("bitbake {} -c cleansstate".format(
+ self.build_target))
+ self.sync()
+ self.measure_cmd_resources(['bitbake', self.build_target], 'build',
+ 'bitbake ' + self.build_target)