summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
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:22:47 +0100
commitb5ca437714fd97f84de56c8c6e57ba1bf52e8665 (patch)
tree0c4e3500ce1678453f65f3691a1c7bb4887c707d /meta/lib/oeqa
parent2c1b87482c3664051ed2abe292526f25f7b700a1 (diff)
downloadpoky-b5ca437714fd97f84de56c8c6e57ba1bf52e8665.tar.gz
oeqa.buildperf: add test Test1P2
Re-implement "test1_p2" from build-perf-test.sh which measures 'bitbake virtual/kernel'. (From OE-Core rev: 5ff82c6e2b0ff41a9bfdd49c99e84a982cf6e467) 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>
Diffstat (limited to 'meta/lib/oeqa')
-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):
29 'bitbake ' + self.build_target) 29 'bitbake ' + self.build_target)
30 self.measure_disk_usage(self.bb_vars['TMPDIR'], 'tmpdir', 'tmpdir') 30 self.measure_disk_usage(self.bb_vars['TMPDIR'], 'tmpdir', 'tmpdir')
31 self.save_buildstats() 31 self.save_buildstats()
32
33
34@perf_test_case
35class Test1P2(BuildPerfTest):
36 name = "test12"
37 build_target = 'virtual/kernel'
38 description = "Measure bitbake {}".format(build_target)
39
40 def _run(self):
41 self.log_cmd_output("bitbake {} -c cleansstate".format(
42 self.build_target))
43 self.sync()
44 self.measure_cmd_resources(['bitbake', self.build_target], 'build',
45 'bitbake ' + self.build_target)