summaryrefslogtreecommitdiff
path: root/common/bonnie++.yaml
blob: ec8e20c97c21d9b9044ea7192f0d973f26ee010b (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
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."
    maintainer:
        - mahanth.gouda@linaro.org
        - arthur.she@linaro.org
    os:
        - ubuntu
        - openembedded
    scope:
        - performance 
    devices:
        - all devices

install:
    git-repos:
        - url: https://git.linaro.org/people/arthur.she/bonnie++-1.03e.git
    deps:
        - build-essential
    steps:
        - 'cd bonnie++-1.03e'
        - './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 -q"'
        - '/usr/sbin/bonnie++ $OPT | tee bonnie++.log'
        - 'log_file_size=`du -b bonnie++.log|cut -f1`'
        - 'lava-test-case run-bonnie++ --shell test ${log_file_size} -gt 0'
        - 'lava-test-case-attach run-bonnie++ bonnie++.log'
        - './common/scripts/bonnie++.sh bonnie++.log'