aboutsummaryrefslogtreecommitdiff
path: root/automated/linux/iperf/iperf.yaml
blob: a1dde4181504eba73860d8ccf01ee336ac90df11 (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
50
metadata:
    name: iperf
    format: "Lava-Test-Shell Test Definition 1.0"
    description: "iperf is a tool for active measurements of the maximum
                  achievable bandwidth on IP networks."
    maintainer:
        - chase.qi@linaro.org
    os:
        - debian
        - ubuntu
        - fedora
        - centos
    scope:
        - performance
    environment:
        - lava-test-shell
    devices:
        - hi6220-hikey
        - apq8016-sbc
        - mustang
        - moonshot
        - thunderX
        - d03
        - d05

params:
    # Time in seconds to transmit for
    TIME: "10"
    # Number of parallel client streams to run
    THREADS: "1"
    SKIP_INSTALL: "false"
    # Specify iperf server
    # Set the var to lava-host-role for test run with LAVA multinode job
    SERVER: 127.0.0.1
    # When running with LAVA multinode job, set the following vars to the values
    # sent by lava-send from host role.
    MSG_ID: server-ready
    MSG_KEY: ipaddr

run:
    steps:
        - fixed_server="${SERVER}"
        - if [ "${SERVER}" = "lava-host-role" ]; then
        -     lava-wait "${MSG_ID}"
        -     fixed_server=$(grep "${MSG_KEY}" /tmp/lava_multi_node_cache.txt | awk -F"=" '{print $NF}')
        - fi
        - cd ./automated/linux/iperf/
        - ./iperf.sh -t "${TIME}" -p "${THREADS}" -s "${SKIP_INSTALL}" -c "${fixed_server}"
        - ../../utils/send-to-lava.sh ./output/result.txt
        - '[ "${SERVER}" = "lava-host-role" ] && lava-send client-done'