summaryrefslogtreecommitdiffstats
path: root/scripts/contrib
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2017-02-23 15:18:33 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-04 23:18:18 +0000
commit28376f9552087bef93919cc5cf4a8e88a02f6d04 (patch)
tree5443950a4da33b8d5dd40e5a263320ce3e73d22c /scripts/contrib
parentb4b2d6dec41b8b6c7a1e7c521e26e2d0345a94a0 (diff)
downloadpoky-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-xscripts/contrib/build-perf-test-wrapper.sh7
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 f192fcfa92..240d669cbb 100755
--- a/scripts/contrib/build-perf-test-wrapper.sh
+++ b/scripts/contrib/build-perf-test-wrapper.sh
@@ -33,13 +33,15 @@ Optional arguments:
33 -C GIT_REPO commit results into Git 33 -C GIT_REPO commit results into Git
34 -w WORK_DIR work dir for this script 34 -w WORK_DIR work dir for this script
35 (default: GIT_TOP_DIR/build-perf-test) 35 (default: GIT_TOP_DIR/build-perf-test)
36 -x create xml report (instead of json)
36EOF 37EOF
37} 38}
38 39
39 40
40# Parse command line arguments 41# Parse command line arguments
41commitish="" 42commitish=""
42while getopts "ha:c:C:w:" opt; do 43oe_build_perf_test_extra_opts=()
44while getopts "ha:c:C:w:x" opt; do
43 case $opt in 45 case $opt in
44 h) usage 46 h) usage
45 exit 0 47 exit 0
@@ -52,6 +54,8 @@ while getopts "ha:c:C:w:" opt; do
52 ;; 54 ;;
53 w) base_dir=`realpath -s "$OPTARG"` 55 w) base_dir=`realpath -s "$OPTARG"`
54 ;; 56 ;;
57 x) oe_build_perf_test_extra_opts+=("--xml")
58 ;;
55 *) usage 59 *) usage
56 exit 1 60 exit 1
57 ;; 61 ;;
@@ -129,6 +133,7 @@ fi
129# Run actual test script 133# Run actual test script
130oe-build-perf-test --out-dir "$results_dir" \ 134oe-build-perf-test --out-dir "$results_dir" \
131 --globalres-file "$globalres_log" \ 135 --globalres-file "$globalres_log" \
136 "${oe_build_perf_test_extra_opts[@]}" \
132 --lock-file "$base_dir/oe-build-perf.lock" 137 --lock-file "$base_dir/oe-build-perf.lock"
133 138
134# Commit results to git 139# Commit results to git