[oe-commits] [openembedded-core] 64/83: oeqa.buildperf: add test Test1P2
git at git.openembedded.org
git at git.openembedded.org
Fri Jul 1 15:32:32 UTC 2016
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit 5ff82c6e2b0ff41a9bfdd49c99e84a982cf6e467
Author: Markus Lehtonen <markus.lehtonen at linux.intel.com>
AuthorDate: Thu Jun 23 18:18:24 2016 +0300
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 at linux.intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/lib/oeqa/buildperf/basic_tests.py | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/meta/lib/oeqa/buildperf/basic_tests.py b/meta/lib/oeqa/buildperf/basic_tests.py
index 95bb8d8..80bdb3f 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()
+
+
+ at 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)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list