diff options
author | Arthur She <arthur.she@linaro.org> | 2015-08-26 22:16:34 -0700 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2015-09-02 10:53:11 +0000 |
commit | d3d1d1de42afb31ee58781d13462d26a5b04bda9 (patch) | |
tree | 135bfc7f20e3d7a5bffb4b24e797fd0e6e721f38 /common/bonnie.yaml | |
parent | 5512ed152a0bef1350183604bff9ea56839ea3ac (diff) |
common: add bonnie.yaml
Bonnie++ is a benchmark suite that is aimed at performing a number of
simple tests of hard drive and file system performance.
Change-Id: I26a16b2edb61ff6bbf5484dad360eba2e779fc78
Diffstat (limited to 'common/bonnie.yaml')
-rw-r--r-- | common/bonnie.yaml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/common/bonnie.yaml b/common/bonnie.yaml new file mode 100644 index 0000000..d5a647a --- /dev/null +++ b/common/bonnie.yaml @@ -0,0 +1,45 @@ +metadata: + name: bonnie_benchmark_test + format: "Lava-Test-Shell Test Definition 1.0" + description: "Bonnie++ is a benchmark suite that is aimed at performing + a number of simple tests of hard drive and file system performance. + If a test completes in less than 500ms then the output will be displayed as '++++'. + This is because such a test result can't be calculated accurately due to rounding errors + and I would rather display no result than a wrong result." + maintainer: + - arthur.she@linaro.org + os: + - ubuntu + - openembedded + scope: + - performance + devices: + - arndale + - beaglebone-black + - juno + +install: + git-repos: + - url: https://git.linaro.org/qa/bonnie.git + deps: + - build-essential + steps: + - 'cd bonnie' + - './configure prefix=/usr ; make all install ; cd ..' + +params: + SCRATCH_DIR: /tmp + SIZE: 500 + NUM_TO_STAT: 50 + RAM_SIZE: 200 + +run: + steps: + - 'OPT="-u 0:0 -d $SCRATCH_DIR -s $SIZE -n $NUM_TO_STAT -r $RAM_SIZE"' + - '/usr/sbin/bonnie++ $OPT | tee bonnie++.log' + - 'log_file_size=`du -b bonnie++.log | cut -f1`' + - 'if [ ${log_file_size} -gt 0 ]; then' + - 'lava-test-case run-bonnie++ --result pass' + - 'lava-test-case-attach run-bonnie++ bonnie++.log' + - './common/scripts/bonnie.sh bonnie++.log' + - 'else lava-test-case run-bonnie++ --result fail ; fi' |