summaryrefslogtreecommitdiffstats
path: root/scripts/contrib/build-perf-test.sh
diff options
context:
space:
mode:
authorStefan Stanacar <stefanx.stanacar@intel.com>2013-04-25 15:10:59 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-29 14:45:07 +0100
commit04d552f6dfab7c105aef54f9413fe1a0c813c3b9 (patch)
tree5e40a62c534398880ae632825fbae73939df3645 /scripts/contrib/build-perf-test.sh
parenteff37ecde9dee196eaa07867cd5876dc42b26dd5 (diff)
downloadpoky-04d552f6dfab7c105aef54f9413fe1a0c813c3b9.tar.gz
scripts/contrib/build-perf-test.sh: use the same identation everywhere
Some functions didn't used the same identation as the rest of them, let's fix that. (From OE-Core rev: a7af4541060f62b4019a100d57e0d082794f708b) Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/contrib/build-perf-test.sh')
-rwxr-xr-xscripts/contrib/build-perf-test.sh72
1 files changed, 36 insertions, 36 deletions
diff --git a/scripts/contrib/build-perf-test.sh b/scripts/contrib/build-perf-test.sh
index 44a902c135..f48220a3c3 100755
--- a/scripts/contrib/build-perf-test.sh
+++ b/scripts/contrib/build-perf-test.sh
@@ -257,36 +257,36 @@ do_sync () {
257# - report size, remove INHERIT 257# - report size, remove INHERIT
258 258
259test1_p1 () { 259test1_p1 () {
260log "Running Test 1, part 1/3: Measure wall clock of bitbake $IMAGE and size of tmp/ dir" 260 log "Running Test 1, part 1/3: Measure wall clock of bitbake $IMAGE and size of tmp/ dir"
261bbnotime "$IMAGE -c fetchall" 261 bbnotime "$IMAGE -c fetchall"
262do_rmtmp 262 do_rmtmp
263do_rmsstate 263 do_rmsstate
264do_sync 264 do_sync
265bbtime "$IMAGE" 265 bbtime "$IMAGE"
266log "SIZE of tmp dir is: `du -sh tmp | sed 's/tmp//'`" 266 log "SIZE of tmp dir is: `du -sh tmp | sed 's/tmp//'`"
267log "Buildstats are saved in $OUTDIR/buildstats-test1" 267 log "Buildstats are saved in $OUTDIR/buildstats-test1"
268mv tmp/buildstats $OUTDIR/buildstats-test1 268 mv tmp/buildstats $OUTDIR/buildstats-test1
269} 269}
270 270
271 271
272test1_p2 () { 272test1_p2 () {
273log "Running Test 1, part 2/3: bitbake virtual/kernel -c cleansstate and time bitbake virtual/kernel" 273 log "Running Test 1, part 2/3: bitbake virtual/kernel -c cleansstate and time bitbake virtual/kernel"
274bbnotime "virtual/kernel -c cleansstate" 274 bbnotime "virtual/kernel -c cleansstate"
275do_sync 275 do_sync
276bbtime "virtual/kernel" 276 bbtime "virtual/kernel"
277} 277}
278 278
279test1_p3 () { 279test1_p3 () {
280log "Running Test 1, part 3/3: Build $IMAGE w/o sstate and report size of tmp/dir with rm_work enabled" 280 log "Running Test 1, part 3/3: Build $IMAGE w/o sstate and report size of tmp/dir with rm_work enabled"
281echo "INHERIT += \"rm_work\"" >> conf/local.conf 281 echo "INHERIT += \"rm_work\"" >> conf/local.conf
282do_rmtmp 282 do_rmtmp
283do_rmsstate 283 do_rmsstate
284do_sync 284 do_sync
285bbtime "$IMAGE" 285 bbtime "$IMAGE"
286sed -i 's/INHERIT += \"rm_work\"//' conf/local.conf 286 sed -i 's/INHERIT += \"rm_work\"//' conf/local.conf
287log "SIZE of tmp dir is: `du -sh tmp | sed 's/tmp//'`" 287 log "SIZE of tmp dir is: `du -sh tmp | sed 's/tmp//'`"
288log "Buildstats are saved in $OUTDIR/buildstats-test13" 288 log "Buildstats are saved in $OUTDIR/buildstats-test13"
289mv tmp/buildstats $OUTDIR/buildstats-test13 289 mv tmp/buildstats $OUTDIR/buildstats-test13
290} 290}
291 291
292 292
@@ -296,11 +296,11 @@ mv tmp/buildstats $OUTDIR/buildstats-test13
296# Pre: populated sstate cache 296# Pre: populated sstate cache
297 297
298test2 () { 298test2 () {
299#assuming test 1 has run 299 # Assuming test 1 has run
300log "Running Test 2: Measure wall clock of bitbake $IMAGE -c rootfs with sstate" 300 log "Running Test 2: Measure wall clock of bitbake $IMAGE -c rootfs with sstate"
301do_rmtmp 301 do_rmtmp
302do_sync 302 do_sync
303bbtime "$IMAGE -c rootfs" 303 bbtime "$IMAGE -c rootfs"
304} 304}
305 305
306 306
@@ -314,14 +314,14 @@ bbtime "$IMAGE -c rootfs"
314 314
315 315
316test3 () { 316test3 () {
317log "Running Test 3: Parsing time metrics (bitbake -p)" 317 log "Running Test 3: Parsing time metrics (bitbake -p)"
318log " Removing tmp/cache && cache" 318 log " Removing tmp/cache && cache"
319rm -rf tmp/cache cache 319 rm -rf tmp/cache cache
320bbtime "-p" 320 bbtime "-p"
321log " Removing tmp/cache/default-eglibc/" 321 log " Removing tmp/cache/default-eglibc/"
322rm -rf tmp/cache/default-eglibc/ 322 rm -rf tmp/cache/default-eglibc/
323bbtime "-p" 323 bbtime "-p"
324bbtime "-p" 324 bbtime "-p"
325} 325}
326 326
327 327