summaryrefslogtreecommitdiff
path: root/ubuntu/network-tests-basic.yaml
blob: 26797a40524b76ef3fe6478b4bc3bf5e1d0198e7 (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
metadata:
    format: Lava-Test Test Definition 1.0
    name: network-tests-basic
    description: "Basic network test commands for Linaro Ubuntu images"
    maintainer:
        - milosz.wasilewski@linaro.org
    os:
        - ubuntu
    scope:
        - functional
    devices:
        - panda
        - panda-es
        - arndale
        - vexpress-a9
        - vexpress-tc2

params:
    TEST_INTERFACE: eth0
    GATEWAY: 10.0.0.1

run:
    steps:
        - lava-test-case linux-linaro-ubuntu-netstat --shell netstat -an
        - lava-test-case linux-linaro-ubuntu-ifconfig-dump --shell ifconfig -a
        - lava-test-case linux-linaro-ubuntu-route-dump-a --shell route
        - lava-test-case linux-linaro-ubuntu-route-ifconfig-up-lo --shell ifconfig lo up
        - lava-test-case linux-linaro-ubuntu-route-dump-b --shell route
        - lava-test-case linux-linaro-ubuntu-route-ifconfig-up --shell ifconfig $TEST_INTERFACE up
        - lava-test-case linux-linaro-ubuntu-route-ifconfig-down --shell ifconfig $TEST_INTERFACE down
        - lava-test-case linux-linaro-ubuntu-route-dhclient --shell dhclient -v $TEST_INTERFACE
        - lava-test-case linux-linaro-ubuntu-route-dump-c --shell route
        - lava-test-case linux-linaro-ubuntu-ping --shell ping -c 5 $GATEWAY
        - lava-test-case linux-linaro-ubuntu-apt-get --shell apt-get update
        - lava-test-case linux-linaro-ubuntu-apt-get-curl --shell apt-get install -q -y curl
        - lava-test-case linux-linaro-ubuntu-curl-big-video --shell curl http://samplemedia.linaro.org/MPEG4/big_buck_bunny_720p_MPEG4_MP3_25fps_3300K.AVI -o curl_big_video.avi