job_name: SE ${MACHINE} network-test ${MANIFEST_BRANCH}-${KERNEL_VERSION_PATCHLEVEL} ${BUILD_NUMBER} lan2/J24 MTU 1508 timeouts: job: minutes: 1800 action: minutes: 120 connection: minutes: 20 priority: medium visibility: public protocols: lava-multinode: roles: dut: device_type: rzn1d count: 1 timeout: minutes: 30 daemon: device_type: rzn1d count: 1 timeout: minutes: 30 actions: #################### # Deploy QSPI images #################### - deploy: namespace: dfu-firmware role: - daemon - dut to: tmpfs images: sf_fsbl: image_arg: --alt sf_fsbl --download {sf_fsbl} url: ${FSBL_URL} sf_trustedfw0: image_arg: --alt sf_trustedfw0 --download {sf_trustedfw0} url: ${OPTEE_ITB_URL} sf_trustedfw1: image_arg: --alt sf_trustedfw1 --download {sf_trustedfw1} url: ${OPTEE_ITB_URL} sf_uboot0: image_arg: --alt sf_uboot0 --download {sf_uboot0} url: ${UBOOT_ITB_URL} sf_uboot1: image_arg: --alt sf_uboot1 --download {sf_uboot1} url: ${UBOOT_ITB_URL} - command: namespace: dfu-firmware role: - daemon - dut name: set_boot_to_nand - boot: namespace: dfu-firmware role: - daemon - dut method: dfu timeout: minutes: 10 - command: namespace: test role: - daemon - dut name: set_boot_to_qspi ################## # all ports off - except J21 ################## - command: namespace: test role: - daemon - dut name: j17_off - command: namespace: test role: - daemon - dut name: j21_on - command: namespace: test role: - daemon - dut name: j22_off - command: namespace: test role: - daemon - dut name: j23_off - command: namespace: test role: - daemon - dut name: j24_off ################### # dev-image.wic ################### - deploy: namespace: test-wic role: - daemon - dut timeout: minutes: 100 to: flasher images: image: url: ${WIC_DEV_IMAGE_URL} compression: bz2 layout: url: ${WIC_DEV_BMAP_URL} - boot: namespace: test-wic role: - daemon - dut connection-namespace: dfu-firmware timeout: minutes: 10 method: u-boot commands: - run linux_sd auto_login: login_prompt: "login:" username: root prompts: - "root@snarc-soca9:" - "root@rzn1d400-bestla:" transfer_overlay: download_command: udhcpc -i lan2 -n; wget unpack_command: tar --touch -C / -xzf ######################################################## # Turn off all Yepkit USB devices and network interfaces ######################################################## - test: namespace: test-wic role: - daemon - dut timeout: minutes: 60 definitions: - from: inline repository: metadata: format: Lava-Test Test Definition 1.0 name: yepkit-down-all description: yepkit test run: steps: - git clone https://github.com/Yepkit/ykush - cd ykush - make - bin/ykushcmd -d a - sleep 3 - ifconfig eth0 down || true - ifconfig eth1 down || true - ifconfig eth2 down || true - ifconfig lan0 down || true - ifconfig lan1 down || true - ifconfig lan2 down || true name: yepkit-down-all path: inline/yepkit-test.yaml ############################# # We're finished with J21 now ############################# - command: namespace: test-wic role: - daemon - dut name: j21_off ################################# # All nodes use J24 ################################# - command: namespace: test-wic role: - daemon - dut name: j24_on ################################# # Daemon ################################# - test: namespace: test-wic role: - daemon timeout: minutes: 300 definitions: ################################# # configure-interface ################################# - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: configure-interface-j24-mtu1508 parameters: CMD: configure-interface ETH: lan2 SWITCH_IF: eth0 EXPECTED_RESULT: pass ################################# # Start daemon ################################# - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: daemon-j24-mtu1508 parameters: CMD: daemon ETH: lan2 SWITCH_IF: eth0 ################################# # DUT ################################# - test: namespace: test-wic role: - dut timeout: minutes: 300 definitions: ################################# # configure-interface ################################# - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: configure-interface-j24-mtu1508 parameters: CMD: configure-interface ETH: lan2 SWITCH_IF: eth0 EXPECTED_RESULT: pass MTU: 1508 ################################# # PING - before we mess with link-settings ################################# - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: link-settings-default-ping-j24-mtu1508 parameters: CMD: ping-request ETH: lan2 EXPECTED_RESULT: pass ################################# # Request server IP address ################################# - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: request-server-address-j24-mtu1508 parameters: CMD: request-server-address ETH: lan2 ################################# # SCP from Target to Host ################################# - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: scp-target-to-host-j24-mtu1508 parameters: CMD: scp-target-to-host ETH: lan2 ################################# # SCP from Host to Target ################################# - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: scp-host-to-target-j24-mtu1508 parameters: CMD: scp-host-to-target ETH: lan2 ################################# # SSH from Host to Target ################################# - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: ssh-host-to-target-j24-mtu1508 parameters: CMD: ssh-host-to-target ETH: lan2 ################################# # iperf ################################# - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: iperf-server-j24-mtu1508 parameters: CMD: iperf3-server ETH: lan2 - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: iperf-j24-mtu1508 parameters: CMD: iperf3-client ETH: lan2 TIME: 60 - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: iperf-reverse-j24-mtu1508 parameters: CMD: iperf3-client ETH: lan2 TIME: 60 REVERSE: "-R" ################################# # Switch port J24 (lan2) off ################################# - command: namespace: test-wic role: - dut name: j24_off - test: namespace: test-wic role: - dut timeout: minutes: 10 interactive: - name: sleep-j24-mtu1508 prompts: ["root@snarc-soca9", "root@rzn1d400-bestla"] script: - command: sleep 5 ################################# # Check that ping fails ################################# - test: namespace: test-wic role: - dut timeout: minutes: 300 definitions: - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: link-off-ping-j24-mtu1508 parameters: CMD: ping-request ETH: lan2 EXPECTED_RESULT: fail ################################# # Switch port J24 (lan2) back on again ################################# - command: namespace: test-wic role: - dut name: j24_on - test: namespace: test-wic role: - dut timeout: minutes: 10 interactive: - name: sleep-j24-mtu1508 prompts: ["root@snarc-soca9", "root@rzn1d400-bestla"] script: - command: sleep 5 ################################# # Check that ping succeeds ################################# - test: namespace: test-wic role: - dut timeout: minutes: 300 definitions: - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: link-on-ping-j24-mtu1508 parameters: CMD: ping-request ETH: lan2 EXPECTED_RESULT: pass ################################# # link-settings off/100/full/1508 ################################# - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: link-settings-100-full-j24-mtu1508 parameters: CMD: link-settings ETH: lan2 AUTONEG: "manual" LINKSPEED: 100 DUPLEX: full MTU: 1508 - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: link-settings-100-full-ping-j24-mtu1508 parameters: CMD: ping-request ETH: lan2 EXPECTED_RESULT: pass ################################# # link-settings off/100/half/1508 ################################# - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: link-settings-100-half-j24-mtu1508 parameters: CMD: link-settings ETH: lan2 AUTONEG: "manual" LINKSPEED: 100 DUPLEX: half MTU: 1508 - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: link-settings-100-half-ping-j24-mtu1508 parameters: CMD: ping-request ETH: lan2 EXPECTED_RESULT: pass ################################# # link-settings off/100/full/1508 ################################# - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: link-settings-100-full-2-j24-mtu1508 parameters: CMD: link-settings ETH: lan2 AUTONEG: "manual" LINKSPEED: 100 DUPLEX: full MTU: 1508 - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: link-settings-100-full-2-ping-j24-mtu1508 parameters: CMD: ping-request ETH: lan2 EXPECTED_RESULT: pass ################################# # link-settings on/?/?/1508 ################################# - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: link-settings-autoneg-j24-mtu1508 parameters: CMD: link-settings ETH: lan2 AUTONEG: "auto" MTU: 1508 - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: link-settings-autoneg-ping-j24-mtu1508 parameters: CMD: ping-request ETH: lan2 EXPECTED_RESULT: pass ################################# # Finished ################################# - repository: https://git.linaro.org/landing-teams/working/schneider/test-definitions.git branch: master from: git history: false path: automated/linux/network-test/network-test.yaml name: finished-j24-mtu1508 parameters: ETH: lan2 CMD: finished ################################# # Reset the port status ################################# - command: namespace: test-wic role: - daemon - dut name: j17_off - command: namespace: test-wic role: - daemon - dut name: j21_on - command: namespace: test-wic role: - daemon - dut name: j22_off - command: namespace: test-wic role: - daemon - dut name: j23_off - command: namespace: test-wic role: - daemon - dut name: j24_off