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:43:50 +0100 |
commit | a7af4541060f62b4019a100d57e0d082794f708b (patch) | |
tree | 8dffa5b3558a28ea6c9aac62379f40e9432a5e6c | |
parent | b64f2ef2be5dca1eb13a305147a2b99d57985010 (diff) | |
download | openembedded-core-a7af4541060f62b4019a100d57e0d082794f708b.tar.gz openembedded-core-a7af4541060f62b4019a100d57e0d082794f708b.tar.bz2 openembedded-core-a7af4541060f62b4019a100d57e0d082794f708b.zip |
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.
Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
-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 () { # - report size, remove INHERIT test1_p1 () { -log "Running Test 1, part 1/3: Measure wall clock of bitbake $IMAGE and size of tmp/ dir" -bbnotime "$IMAGE -c fetchall" -do_rmtmp -do_rmsstate -do_sync -bbtime "$IMAGE" -log "SIZE of tmp dir is: `du -sh tmp | sed 's/tmp//'`" -log "Buildstats are saved in $OUTDIR/buildstats-test1" -mv tmp/buildstats $OUTDIR/buildstats-test1 + log "Running Test 1, part 1/3: Measure wall clock of bitbake $IMAGE and size of tmp/ dir" + bbnotime "$IMAGE -c fetchall" + do_rmtmp + do_rmsstate + do_sync + bbtime "$IMAGE" + log "SIZE of tmp dir is: `du -sh tmp | sed 's/tmp//'`" + log "Buildstats are saved in $OUTDIR/buildstats-test1" + mv tmp/buildstats $OUTDIR/buildstats-test1 } test1_p2 () { -log "Running Test 1, part 2/3: bitbake virtual/kernel -c cleansstate and time bitbake virtual/kernel" -bbnotime "virtual/kernel -c cleansstate" -do_sync -bbtime "virtual/kernel" + log "Running Test 1, part 2/3: bitbake virtual/kernel -c cleansstate and time bitbake virtual/kernel" + bbnotime "virtual/kernel -c cleansstate" + do_sync + bbtime "virtual/kernel" } test1_p3 () { -log "Running Test 1, part 3/3: Build $IMAGE w/o sstate and report size of tmp/dir with rm_work enabled" -echo "INHERIT += \"rm_work\"" >> conf/local.conf -do_rmtmp -do_rmsstate -do_sync -bbtime "$IMAGE" -sed -i 's/INHERIT += \"rm_work\"//' conf/local.conf -log "SIZE of tmp dir is: `du -sh tmp | sed 's/tmp//'`" -log "Buildstats are saved in $OUTDIR/buildstats-test13" -mv tmp/buildstats $OUTDIR/buildstats-test13 + log "Running Test 1, part 3/3: Build $IMAGE w/o sstate and report size of tmp/dir with rm_work enabled" + echo "INHERIT += \"rm_work\"" >> conf/local.conf + do_rmtmp + do_rmsstate + do_sync + bbtime "$IMAGE" + sed -i 's/INHERIT += \"rm_work\"//' conf/local.conf + log "SIZE of tmp dir is: `du -sh tmp | sed 's/tmp//'`" + log "Buildstats are saved in $OUTDIR/buildstats-test13" + mv tmp/buildstats $OUTDIR/buildstats-test13 } @@ -296,11 +296,11 @@ mv tmp/buildstats $OUTDIR/buildstats-test13 # Pre: populated sstate cache test2 () { -#assuming test 1 has run -log "Running Test 2: Measure wall clock of bitbake $IMAGE -c rootfs with sstate" -do_rmtmp -do_sync -bbtime "$IMAGE -c rootfs" + # Assuming test 1 has run + log "Running Test 2: Measure wall clock of bitbake $IMAGE -c rootfs with sstate" + do_rmtmp + do_sync + bbtime "$IMAGE -c rootfs" } @@ -314,14 +314,14 @@ bbtime "$IMAGE -c rootfs" test3 () { -log "Running Test 3: Parsing time metrics (bitbake -p)" -log " Removing tmp/cache && cache" -rm -rf tmp/cache cache -bbtime "-p" -log " Removing tmp/cache/default-eglibc/" -rm -rf tmp/cache/default-eglibc/ -bbtime "-p" -bbtime "-p" + log "Running Test 3: Parsing time metrics (bitbake -p)" + log " Removing tmp/cache && cache" + rm -rf tmp/cache cache + bbtime "-p" + log " Removing tmp/cache/default-eglibc/" + rm -rf tmp/cache/default-eglibc/ + bbtime "-p" + bbtime "-p" } |