diff options
author | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-02-25 11:57:28 +0000 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-02-25 12:01:30 +0000 |
commit | e5a954cee0137412bf7c43074631ba6664735f92 (patch) | |
tree | e5f2b715d35d5acc6d2eb7a4c8651e053623608c | |
parent | f37cf255b5ff143520ed62736a70d4f9abade5ca (diff) |
network-test-basic: Add support for different interface
Added parameters that allow to run the test using network interface
different than eth0 and gateway different than 10.0.0.1
Change-Id: If75c172148594403f185b0c967a0e472ba5e0d75
Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
-rw-r--r-- | ubuntu/network-tests-basic.yaml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ubuntu/network-tests-basic.yaml b/ubuntu/network-tests-basic.yaml index 28425d7..a3f9ebb 100644 --- a/ubuntu/network-tests-basic.yaml +++ b/ubuntu/network-tests-basic.yaml @@ -16,6 +16,10 @@ metadata: - 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 @@ -23,11 +27,11 @@ run: - 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 eth0 up - - lava-test-case linux-linaro-ubuntu-route-ifconfig-down --shell ifconfig eth0 down - - lava-test-case linux-linaro-ubuntu-route-dhclient --shell dhclient -v eth0 + - 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 10.0.0.1 + - 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 > /dev/null |