summaryrefslogtreecommitdiffstats
path: root/scripts/oe-build-perf-test
diff options
context:
space:
mode:
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
18import logging 18import logging
19import os 19import os
20import sys 20import sys
21from datetime import datetime
21 22
22sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + '/lib') 23sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + '/lib')
23import scriptpath 24import scriptpath
24scriptpath.add_oe_lib_path() 25scriptpath.add_oe_lib_path()
25from oeqa.buildperf import KernelDropCaches 26from oeqa.buildperf import BuildPerfTestRunner, KernelDropCaches
26from oeqa.utils.commands import runCmd 27from oeqa.utils.commands import runCmd
27 28
28 29
@@ -75,7 +76,12 @@ def main(argv=None):
75 # Check our capability to drop caches and ask pass if needed 76 # Check our capability to drop caches and ask pass if needed
76 KernelDropCaches.check() 77 KernelDropCaches.check()
77 78
78 return 0 79 # Run actual tests
80 out_dir = 'results-{}'.format(datetime.now().strftime('%Y%m%d%H%M%S'))
81 runner = BuildPerfTestRunner(out_dir)
82 ret = runner.run_tests()
83
84 return ret
79 85
80 86
81if __name__ == '__main__': 87if __name__ == '__main__':