summaryrefslogtreecommitdiffstats
path: root/scripts/oe-build-perf-test
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-05-11 14:42:32 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-01 16:08:50 +0100
commitbf90aecb7e150d6bfac7240286c797b79d26528b (patch)
tree99bb0103c43bd0690b0a2924d44b3c1501f6c7f6 /scripts/oe-build-perf-test
parent15b44a484ce408b0a1acfb907e2b12ebc6cce296 (diff)
downloadopenembedded-core-contrib-bf90aecb7e150d6bfac7240286c797b79d26528b.tar.gz
openembedded-core-contrib-bf90aecb7e150d6bfac7240286c797b79d26528b.tar.bz2
openembedded-core-contrib-bf90aecb7e150d6bfac7240286c797b79d26528b.zip
oeqa.buildperf: implement BuildPerfTestRunner class
The new class is responsible for actually running the tests and processing their results. This commit also adds a decorator function for adding new tests. No automatic test discovery, at least yet. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/oe-build-perf-test')
-rwxr-xr-xscripts/oe-build-perf-test10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/oe-build-perf-test b/scripts/oe-build-perf-test
index 9589dee3ac..0a9fc9e7d4 100755
--- a/scripts/oe-build-perf-test
+++ b/scripts/oe-build-perf-test
@@ -18,11 +18,12 @@ import argparse
import logging
import os
import sys
+from datetime import datetime
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + '/lib')
import scriptpath
scriptpath.add_oe_lib_path()
-from oeqa.buildperf import KernelDropCaches
+from oeqa.buildperf import BuildPerfTestRunner, KernelDropCaches
from oeqa.utils.commands import runCmd
@@ -75,7 +76,12 @@ def main(argv=None):
# Check our capability to drop caches and ask pass if needed
KernelDropCaches.check()
- return 0
+ # Run actual tests
+ out_dir = 'results-{}'.format(datetime.now().strftime('%Y%m%d%H%M%S'))
+ runner = BuildPerfTestRunner(out_dir)
+ ret = runner.run_tests()
+
+ return ret
if __name__ == '__main__':