summaryrefslogtreecommitdiff
path: root/common/bonnie.yaml
blob: d5a647a444e1600271bfe70458c0961dccc9c618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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'