summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Khare <amit.khare@linaro.org>2016-02-10 14:15:43 +0530
committerChase Qi <chase.qi@linaro.org>2016-03-03 19:22:59 -0800
commit625154e08c4de7ccb4b2715aaefbb5037d8f4107 (patch)
tree323afd241ee889e601383bab4ce5ebea183cc756
parentd9c5f4eb436f7d4c88555a29299f8d27ee97084f (diff)
Linux: Added multiple interface download test
Change-Id: I06f72989de0901370fcf8a5640ee57edfc94d613 Signed-off-by: Chase Qi <chase.qi@linaro.org>
-rw-r--r--generic/linux/multi-nic-download.yaml34
1 files changed, 34 insertions, 0 deletions
diff --git a/generic/linux/multi-nic-download.yaml b/generic/linux/multi-nic-download.yaml
new file mode 100644
index 0000000..37aa7e3
--- /dev/null
+++ b/generic/linux/multi-nic-download.yaml
@@ -0,0 +1,34 @@
+metadata:
+ name: multi-nic-download
+ format: "Manual Test Definition 1.0"
+ description: "Test if download can be performed by selecting an interface from multiple available interfaces."
+ maintainer:
+ - amit.khare@linaro.org
+ - chase.qi@linaro.org
+ os:
+ - debian
+ scope:
+ - functional
+ devices:
+ - hi6220-hikey
+ - apq8016-sbc
+ environment:
+ - manual-test
+
+run:
+ steps:
+ - Flash the board and boot succesfully.
+ - Make sure "curl" and "iftop" utilities are installed, and at least two interfaces are configured and connected to the board.
+ - Run, "sudo su" to become root.
+ - Run, "ifconfig" to check both interfaces (going to be used for this test) are connected and IP address is assigned.
+ - Run the following two commands to make sure that rp_filter is set to 0.
+ - "echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter"
+ - "echo 0 > /proc/sys/net/ipv4/conf/default/rp_filter"
+ - Run, "sysctl -a |grep rp_filter" to check arp setting.
+ - Run, "curl -O --interface interface-1-ip http://samplemedia.linaro.org/MPEG4/big_buck_bunny_1080p_MPEG4_MP3_25fps_7600K_short.AVI"
+ - Run, "curl -O --interface interface-2-ip http://samplemedia.linaro.org/MPEG4/big_buck_bunny_1080p_MPEG4_MP3_25fps_7600K_short.AVI"
+ - Use "iftop" to verify that Curl is using the correct interface to download file in both cases.
+
+ expected:
+ - File can be successfully downloaded with both interfaces.
+ - The correct interface was used to download file.