summaryrefslogtreecommitdiffstats
path: root/scripts/contrib
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-01-21 19:46:41 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-25 12:44:13 +0000
commit7a52f67e59c023e6397e124d972ac8c34627f9af (patch)
treeeb7776f3b974b4f8a5b7f95c6fffaae76ef7018f /scripts/contrib
parent5c367eccf86848558dcc212bb244204e642e5cf8 (diff)
downloadpoky-7a52f67e59c023e6397e124d972ac8c34627f9af.tar.gz
build-perf-test.sh: add eSDK testing
Add simple initial eSDK test. Currently, only download size and installation time of eSDK is measured. The eSDK to be tested is generated from the same image that the other tests are run for. This patch will add two new fields to the global results log and that needs to be taken into account when examining the results. (From OE-Core rev: c903c1e1f36a4dd1dc1b7a621fa7a6ffe7411119) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/contrib')
-rwxr-xr-xscripts/contrib/build-perf-test.sh24
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
359test4 () {
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
362test1_p3 385test1_p3
363test2 386test2
364test3 387test3
388test4
365 389
366# if we got til here write to global results 390# if we got til here write to global results
367write_results 391write_results