diff options
Diffstat (limited to 'scripts/contrib/build-perf-test.sh')
| -rwxr-xr-x | scripts/contrib/build-perf-test.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/contrib/build-perf-test.sh b/scripts/contrib/build-perf-test.sh index 105b54b35c..f1f44d3297 100755 --- a/scripts/contrib/build-perf-test.sh +++ b/scripts/contrib/build-perf-test.sh | |||
| @@ -353,6 +353,29 @@ test3 () { | |||
| 353 | bbtime -p | 353 | bbtime -p |
| 354 | } | 354 | } |
| 355 | 355 | ||
| 356 | # | ||
| 357 | # Test 4 - eSDK | ||
| 358 | # Measure: eSDK size and installation time | ||
| 359 | test4 () { | ||
| 360 | log "Running Test 4: eSDK size and installation time" | ||
| 361 | bbnotime $IMAGE -c do_populate_sdk_ext | ||
| 362 | |||
| 363 | esdk_installer=(tmp/deploy/sdk/*-toolchain-ext-*.sh) | ||
| 364 | |||
| 365 | if [ ${#esdk_installer[*]} -eq 1 ]; then | ||
| 366 | s=$((`stat -c %s "$esdk_installer"` / 1024)) | ||
| 367 | SIZES[(( size_count++ ))]="$s" | ||
| 368 | log "Download SIZE of eSDK is: $s kB" | ||
| 369 | |||
| 370 | do_sync | ||
| 371 | time_cmd "$esdk_installer" -y -d "tmp/esdk-deploy" | ||
| 372 | else | ||
| 373 | log "ERROR: other than one sdk found (${esdk_installer[*]}), reporting size and time as 0." | ||
| 374 | SIZES[(( size_count++ ))]="0" | ||
| 375 | TIMES[(( time_count++ ))]="0" | ||
| 376 | fi | ||
| 377 | |||
| 378 | } | ||
| 356 | 379 | ||
| 357 | 380 | ||
| 358 | # RUN! | 381 | # RUN! |
| @@ -362,6 +385,7 @@ test1_p2 | |||
| 362 | test1_p3 | 385 | test1_p3 |
| 363 | test2 | 386 | test2 |
| 364 | test3 | 387 | test3 |
| 388 | test4 | ||
| 365 | 389 | ||
| 366 | # if we got til here write to global results | 390 | # if we got til here write to global results |
| 367 | write_results | 391 | write_results |
