diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2017-02-23 15:18:33 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-04 23:18:18 +0000 |
commit | 28376f9552087bef93919cc5cf4a8e88a02f6d04 (patch) | |
tree | 5443950a4da33b8d5dd40e5a263320ce3e73d22c /scripts/contrib | |
parent | b4b2d6dec41b8b6c7a1e7c521e26e2d0345a94a0 (diff) | |
download | openembedded-core-contrib-28376f9552087bef93919cc5cf4a8e88a02f6d04.tar.gz |
build-perf-test-wrapper.sh: support xml report format
Add new command line option '-x' that enbles xml-formatted reports.
(From OE-Core rev: 1aa909991c7c6cd484cae35fcc742fbe7af3f8e8)
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 'scripts/contrib')
-rwxr-xr-x | scripts/contrib/build-perf-test-wrapper.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/contrib/build-perf-test-wrapper.sh b/scripts/contrib/build-perf-test-wrapper.sh index f192fcfa925..240d669cbb4 100755 --- a/scripts/contrib/build-perf-test-wrapper.sh +++ b/scripts/contrib/build-perf-test-wrapper.sh @@ -33,13 +33,15 @@ Optional arguments: -C GIT_REPO commit results into Git -w WORK_DIR work dir for this script (default: GIT_TOP_DIR/build-perf-test) + -x create xml report (instead of json) EOF } # Parse command line arguments commitish="" -while getopts "ha:c:C:w:" opt; do +oe_build_perf_test_extra_opts=() +while getopts "ha:c:C:w:x" opt; do case $opt in h) usage exit 0 @@ -52,6 +54,8 @@ while getopts "ha:c:C:w:" opt; do ;; w) base_dir=`realpath -s "$OPTARG"` ;; + x) oe_build_perf_test_extra_opts+=("--xml") + ;; *) usage exit 1 ;; @@ -129,6 +133,7 @@ fi # Run actual test script oe-build-perf-test --out-dir "$results_dir" \ --globalres-file "$globalres_log" \ + "${oe_build_perf_test_extra_opts[@]}" \ --lock-file "$base_dir/oe-build-perf.lock" # Commit results to git |