summaryrefslogtreecommitdiffstats
path: root/scripts/oe-build-perf-test
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-08-11 16:50:55 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-25 22:59:51 +0100
commitbe4373be54e5b84f951771b0e75140f212838020 (patch)
tree94e0ace91ab6546e39b79e967f2f0e5353320838 /scripts/oe-build-perf-test
parentf2b96001e074d26f5eb8711c2217a695fb02de4c (diff)
downloadopenembedded-core-contrib-be4373be54e5b84f951771b0e75140f212838020.tar.gz
openembedded-core-contrib-be4373be54e5b84f951771b0e75140f212838020.tar.bz2
openembedded-core-contrib-be4373be54e5b84f951771b0e75140f212838020.zip
oe-build-perf-test: implement --run-tests option
Makes it possible to run only a subset of tests. NOTE: The tests currently have (unwritten) dependencies on each other so use this option with care. Mainly for debugging. 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-test7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/oe-build-perf-test b/scripts/oe-build-perf-test
index 88af40ab76..808531efff 100755
--- a/scripts/oe-build-perf-test
+++ b/scripts/oe-build-perf-test
@@ -105,6 +105,8 @@ def parse_args(argv):
help="Lock file to use")
parser.add_argument('-o', '--out-dir', default='results-{date}',
help="Output directory for test results")
+ parser.add_argument('--run-tests', nargs='+', metavar='TEST',
+ help="List of tests to run")
return parser.parse_args(argv)
@@ -133,7 +135,10 @@ def main(argv=None):
# Load build perf tests
loader = BuildPerfTestLoader()
- suite = loader.discover(start_dir=os.path.dirname(oeqa.buildperf.__file__))
+ if args.run_tests:
+ suite = loader.loadTestsFromNames(args.run_tests, oeqa.buildperf)
+ else:
+ suite = loader.loadTestsFromModule(oeqa.buildperf)
archive_build_conf(out_dir)
runner = BuildPerfTestRunner(out_dir, verbosity=2)