From e5a954cee0137412bf7c43074631ba6664735f92 Mon Sep 17 00:00:00 2001 From: Milosz Wasilewski Date: Tue, 25 Feb 2014 11:57:28 +0000 Subject: 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 --- ubuntu/network-tests-basic.yaml | 12 ++++++++---- 1 file 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 -- cgit v1.2.3