diff options
Diffstat (limited to 'scripts')
| -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 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) | ||
| 36 | EOF | 37 | EOF |
| 37 | } | 38 | } |
| 38 | 39 | ||
| 39 | 40 | ||
| 40 | # Parse command line arguments | 41 | # Parse command line arguments |
| 41 | commitish="" | 42 | commitish="" |
| 42 | while getopts "ha:c:C:w:" opt; do | 43 | oe_build_perf_test_extra_opts=() |
| 44 | while 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 |
| 130 | oe-build-perf-test --out-dir "$results_dir" \ | 134 | oe-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 |
