Amit Khare | 625154e | 2016-02-10 14:15:43 +0530 | [diff] [blame] | 1 | metadata: |
| 2 | name: multi-nic-download |
| 3 | format: "Manual Test Definition 1.0" |
| 4 | description: "Test if download can be performed by selecting an interface from multiple available interfaces." |
| 5 | maintainer: |
| 6 | - amit.khare@linaro.org |
| 7 | - chase.qi@linaro.org |
| 8 | os: |
| 9 | - debian |
| 10 | scope: |
| 11 | - functional |
| 12 | devices: |
| 13 | - hi6220-hikey |
| 14 | - apq8016-sbc |
| 15 | environment: |
| 16 | - manual-test |
| 17 | |
| 18 | run: |
| 19 | steps: |
| 20 | - Flash the board and boot succesfully. |
| 21 | - Make sure "curl" and "iftop" utilities are installed, and at least two interfaces are configured and connected to the board. |
| 22 | - Run, "sudo su" to become root. |
| 23 | - Run, "ifconfig" to check both interfaces (going to be used for this test) are connected and IP address is assigned. |
| 24 | - Run the following two commands to make sure that rp_filter is set to 0. |
| 25 | - "echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter" |
| 26 | - "echo 0 > /proc/sys/net/ipv4/conf/default/rp_filter" |
| 27 | - Run, "sysctl -a |grep rp_filter" to check arp setting. |
| 28 | - Run, "curl -O --interface interface-1-ip http://samplemedia.linaro.org/MPEG4/big_buck_bunny_1080p_MPEG4_MP3_25fps_7600K_short.AVI" |
| 29 | - Run, "curl -O --interface interface-2-ip http://samplemedia.linaro.org/MPEG4/big_buck_bunny_1080p_MPEG4_MP3_25fps_7600K_short.AVI" |
| 30 | - Use "iftop" to verify that Curl is using the correct interface to download file in both cases. |
| 31 | |
| 32 | expected: |
| 33 | - File can be successfully downloaded with both interfaces. |
| 34 | - The correct interface was used to download file. |