diff options
author | Stefan Stanacar <stefanx.stanacar@intel.com> | 2013-04-25 15:10:59 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-29 14:45:07 +0100 |
commit | 04d552f6dfab7c105aef54f9413fe1a0c813c3b9 (patch) | |
tree | 5e40a62c534398880ae632825fbae73939df3645 /scripts/contrib/build-perf-test.sh | |
parent | eff37ecde9dee196eaa07867cd5876dc42b26dd5 (diff) | |
download | poky-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-x | scripts/contrib/build-perf-test.sh | 72 |
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 | ||
259 | test1_p1 () { | 259 | test1_p1 () { |
260 | log "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" |
261 | bbnotime "$IMAGE -c fetchall" | 261 | bbnotime "$IMAGE -c fetchall" |
262 | do_rmtmp | 262 | do_rmtmp |
263 | do_rmsstate | 263 | do_rmsstate |
264 | do_sync | 264 | do_sync |
265 | bbtime "$IMAGE" | 265 | bbtime "$IMAGE" |
266 | log "SIZE of tmp dir is: `du -sh tmp | sed 's/tmp//'`" | 266 | log "SIZE of tmp dir is: `du -sh tmp | sed 's/tmp//'`" |
267 | log "Buildstats are saved in $OUTDIR/buildstats-test1" | 267 | log "Buildstats are saved in $OUTDIR/buildstats-test1" |
268 | mv tmp/buildstats $OUTDIR/buildstats-test1 | 268 | mv tmp/buildstats $OUTDIR/buildstats-test1 |
269 | } | 269 | } |
270 | 270 | ||
271 | 271 | ||
272 | test1_p2 () { | 272 | test1_p2 () { |
273 | log "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" |
274 | bbnotime "virtual/kernel -c cleansstate" | 274 | bbnotime "virtual/kernel -c cleansstate" |
275 | do_sync | 275 | do_sync |
276 | bbtime "virtual/kernel" | 276 | bbtime "virtual/kernel" |
277 | } | 277 | } |
278 | 278 | ||
279 | test1_p3 () { | 279 | test1_p3 () { |
280 | log "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" |
281 | echo "INHERIT += \"rm_work\"" >> conf/local.conf | 281 | echo "INHERIT += \"rm_work\"" >> conf/local.conf |
282 | do_rmtmp | 282 | do_rmtmp |
283 | do_rmsstate | 283 | do_rmsstate |
284 | do_sync | 284 | do_sync |
285 | bbtime "$IMAGE" | 285 | bbtime "$IMAGE" |
286 | sed -i 's/INHERIT += \"rm_work\"//' conf/local.conf | 286 | sed -i 's/INHERIT += \"rm_work\"//' conf/local.conf |
287 | log "SIZE of tmp dir is: `du -sh tmp | sed 's/tmp//'`" | 287 | log "SIZE of tmp dir is: `du -sh tmp | sed 's/tmp//'`" |
288 | log "Buildstats are saved in $OUTDIR/buildstats-test13" | 288 | log "Buildstats are saved in $OUTDIR/buildstats-test13" |
289 | mv 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 | ||
298 | test2 () { | 298 | test2 () { |
299 | #assuming test 1 has run | 299 | # Assuming test 1 has run |
300 | log "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" |
301 | do_rmtmp | 301 | do_rmtmp |
302 | do_sync | 302 | do_sync |
303 | bbtime "$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 | ||
316 | test3 () { | 316 | test3 () { |
317 | log "Running Test 3: Parsing time metrics (bitbake -p)" | 317 | log "Running Test 3: Parsing time metrics (bitbake -p)" |
318 | log " Removing tmp/cache && cache" | 318 | log " Removing tmp/cache && cache" |
319 | rm -rf tmp/cache cache | 319 | rm -rf tmp/cache cache |
320 | bbtime "-p" | 320 | bbtime "-p" |
321 | log " Removing tmp/cache/default-eglibc/" | 321 | log " Removing tmp/cache/default-eglibc/" |
322 | rm -rf tmp/cache/default-eglibc/ | 322 | rm -rf tmp/cache/default-eglibc/ |
323 | bbtime "-p" | 323 | bbtime "-p" |
324 | bbtime "-p" | 324 | bbtime "-p" |
325 | } | 325 | } |
326 | 326 | ||
327 | 327 | ||