summaryrefslogtreecommitdiff
path: root/ubuntu/ebizzy.yaml
blob: 5b657ce51097251906d9e5d956a2808ad2dc7303 (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
46
47
48
49
metadata:
    name: ebizzy
    version: "1.0"
    format: "Lava-Test-Shell Test Definition 1.0"
    description: "Running ebizzy tool"
    os:
        - ubuntu
    devices:
        - beaglebone-black
        - panda
        - panda-es
        - vexpress-a9
        - vexpress-tc2

install:
    git-repos:
        - url: https://github.com/linux-test-project/ltp.git

    deps:
        - python-numpy
        - coreutils

    steps:
        - cd ltp/utils/benchmark/ebizzy-0.3/
        - chmod +x configure
        - ./configure
        - sed -i 's/lpthread/pthread/' Makefile
        - make

params:
    THREADS: 2
    TIME: 20
    REPEAT: 50

run:
    steps:
        - CURRENT_DIR=$(pwd)
        - cd ltp/utils/benchmark/ebizzy-0.3/
        - i=1
        - while [ $i -le $REPEAT ]; do ./ebizzy -t $THREADS -S $TIME | tee -a ebizzy.log; true $(( i++ )); done
        - cp ebizzy.log ebizzy-real.log
        - cp ebizzy.log ebizzy-user.log
        - cp ebizzy.log ebizzy-sys.log
        - $CURRENT_DIR/common/scripts/min_max_avg_parse.py ebizzy-real.log "real" "Second"
        - $CURRENT_DIR/common/scripts/min_max_avg_parse.py ebizzy-user.log "user" "Second"
        - $CURRENT_DIR/common/scripts/min_max_avg_parse.py ebizzy-sys.log "sys"  "Second"

parse:
    pattern: "^(?P<test_case_id>\\w+):\\s*(?P<measurement>[0-9\\.]+)\\s+(?P<units>\\w+)\\s+(?P<result>\\w+)"