diff options
author | Ryan Harkin <ryan.harkin@linaro.org> | 2019-11-22 19:43:59 +0000 |
---|---|---|
committer | Ryan Harkin <ryan.harkin@linaro.org> | 2019-11-25 16:02:50 +0000 |
commit | dc405c9993e80ae783ca257cb3c983881de912a2 (patch) | |
tree | 15447e0cd56a9de49b786438a1216ac20961bf92 /schneider-openembedded | |
parent | 657e15b6f5e952510b9ab82e8c5faad1663bb9e2 (diff) |
se: lces2: add DFU support to existing tests
Add DFU support to flash the firmware from the test job before testing.
This will flash FSBL, OPTEE and U-Boot to the board before running the
test jobs.
Change-Id: I8baf68d62eb7d14fcd9911add3326d9a56f88d24
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
Diffstat (limited to 'schneider-openembedded')
18 files changed, 652 insertions, 121 deletions
diff --git a/schneider-openembedded/lava-job-definitions/rzn1d/template-fit.yaml b/schneider-openembedded/lava-job-definitions/rzn1d/template-fit.yaml index fe9443d4..79dd95bb 100644 --- a/schneider-openembedded/lava-job-definitions/rzn1d/template-fit.yaml +++ b/schneider-openembedded/lava-job-definitions/rzn1d/template-fit.yaml @@ -3,28 +3,64 @@ job_name: SE ${MACHINE} TFTP FIT ${MANIFEST_BRANCH} ${BUILD_NUMBER} timeouts: job: - minutes: 10 + minutes: 100 action: - minutes: 5 + minutes: 70 connection: minutes: 2 priority: medium visibility: public actions: + +- deploy: + namespace: dfu + to: tmpfs + images: + sf_fsbl: + image_arg: --alt sf_fsbl --download {sf_fsbl} + url: ${FSBL_URL} + sf_trustedfw: + image_arg: --alt sf_trustedfw --download {sf_trustedfw} + 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 + name: set_boot_to_nand + +- boot: + namespace: dfu + method: dfu + timeout: + minutes: 10 + +- command: + namespace: test + name: set_boot_to_qspi + - deploy: + namespace: test + to: overlay + +- deploy: + namespace: test timeout: minutes: 5 to: tftp os: oe - optee: - url: ${OPTEE_ITB_URL} - uboot: - url: ${UBOOT_ITB_URL} kernel: url: ${KERNEL_FIT_URL} type: uimage + - boot: + namespace: test + connection-namespace: dfu timeout: minutes: 10 method: u-boot @@ -46,6 +82,7 @@ actions: - "root@rzn1-snarc:" - test: + namespace: test timeout: minutes: 10 interactive: diff --git a/schneider-openembedded/lava-job-definitions/rzn1d/template-ubi-edge.yaml b/schneider-openembedded/lava-job-definitions/rzn1d/template-ubi-edge.yaml index f6bc92ae..b696c873 100644 --- a/schneider-openembedded/lava-job-definitions/rzn1d/template-ubi-edge.yaml +++ b/schneider-openembedded/lava-job-definitions/rzn1d/template-ubi-edge.yaml @@ -1,5 +1,5 @@ device_type: rzn1d -job_name: SE ${MACHINE} UBI DEV ${MANIFEST_BRANCH} ${BUILD_NUMBER} +job_name: SE ${MACHINE} UBI edge ${MANIFEST_BRANCH} ${BUILD_NUMBER} timeouts: job: @@ -12,14 +12,14 @@ priority: medium visibility: public actions: + - deploy: - timeout: - minutes: 20 + namespace: dfu to: tmpfs images: sf_fsbl: image_arg: --alt sf_fsbl --download {sf_fsbl} - url: ${ TODO } + url: ${FSBL_URL} sf_trustedfw: image_arg: --alt sf_trustedfw --download {sf_trustedfw} url: ${OPTEE_ITB_URL} @@ -31,20 +31,23 @@ actions: url: ${UBOOT_ITB_URL} n_fs1: image_arg: --alt n_fs1 --download {n_fs1} - url: ${UBI_DEV_IMAGE_URL} + url: ${UBI_EDGE_IMAGE_URL} - command: namespace: dfu name: set_boot_to_nand - - boot: + +- boot: namespace: dfu method: dfu timeout: minutes: 10 - - command: + +- command: namespace: test name: set_boot_to_qspi - - deploy: + +- deploy: namespace: test to: overlay diff --git a/schneider-openembedded/lava-job-definitions/rzn1d/template-uboot.yaml b/schneider-openembedded/lava-job-definitions/rzn1d/template-uboot.yaml index 80dd9c62..91c81ff3 100644 --- a/schneider-openembedded/lava-job-definitions/rzn1d/template-uboot.yaml +++ b/schneider-openembedded/lava-job-definitions/rzn1d/template-uboot.yaml @@ -3,34 +3,75 @@ job_name: SE ${MACHINE} U-Boot ${MANIFEST_BRANCH} ${BUILD_NUMBER} timeouts: job: - minutes: 10 - + minutes: 100 + action: + minutes: 70 + connection: + minutes: 2 priority: medium visibility: public actions: + +- deploy: + namespace: dfu + to: tmpfs + images: + sf_fsbl: + image_arg: --alt sf_fsbl --download {sf_fsbl} + url: ${FSBL_URL} + sf_trustedfw: + image_arg: --alt sf_trustedfw --download {sf_trustedfw} + 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 + name: set_boot_to_nand + +- boot: + namespace: dfu + method: dfu + timeout: + minutes: 10 + +- command: + namespace: test + name: set_boot_to_qspi + - deploy: + namespace: test + to: overlay + +- deploy: + namespace: test timeout: minutes: 5 to: tftp - optee: - url: ${OPTEE_ITB_URL} - uboot: - url: ${UBOOT_ITB_URL} + os: oe kernel: - url: ${KERNEL_FIT_URL} - type: uimage + url: https://releases.linaro.org/members/schneider/openembedded/2019.09-warrior/soca9/zImage--4.19.72+git0+7549a49ae5-r0-snarc-soca9-20191003145415.bin + type: zimage + - boot: + namespace: test + connection-namespace: dfu timeout: - minutes: 1 + minutes: 20 method: bootloader bootloader: u-boot commands: [] prompts: ['=>'] - test: + namespace: test timeout: - minutes: 4 + minutes: 5 interactive: - name: basic-cmds prompts: ["=> ", "/ # "] @@ -105,6 +146,15 @@ actions: name: dhcp successes: - message: "DHCP client bound to address" + - name: ping-cmds + prompts: ["=> ", "/ # "] + script: + # ping + - command: + - command: ping {SERVER_IP} + name: ping + successes: + - message: "is alive" - name: tftp-cmds prompts: ["=> ", "/ # "] script: @@ -113,7 +163,10 @@ actions: - command: setenv serverip {SERVER_IP} ; tftp {KERNEL_ADDR} {KERNEL} name: tftp successes: - - message: "Bytes transferred =" + - message: "Bytes transferred = 6752784" + - command: crc32 0x01000000 670a10 + successes: + - message: "crc32 for 01000000 ... 01670a0f ==> ca050911" - name: nand-commands prompts: ["=> ", "/ # "] script: diff --git a/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage-dev-ltp.yaml b/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage-dev-ltp.yaml index d78cbc2b..123474ed 100644 --- a/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage-dev-ltp.yaml +++ b/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage-dev-ltp.yaml @@ -12,15 +12,48 @@ priority: medium visibility: public actions: + - deploy: + namespace: dfu + to: tmpfs + images: + sf_fsbl: + image_arg: --alt sf_fsbl --download {sf_fsbl} + url: ${FSBL_URL} + sf_trustedfw: + image_arg: --alt sf_trustedfw --download {sf_trustedfw} + 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 + name: set_boot_to_nand + +- boot: + namespace: dfu + method: dfu timeout: - minutes: 100 + minutes: 10 + +- command: + namespace: test + name: set_boot_to_qspi + +- deploy: + namespace: test + to: overlay + +- deploy: + namespace: test + timeout: + minutes: 5 to: tftp os: oe - optee: - url: ${OPTEE_ITB_URL} - uboot: - url: ${UBOOT_ITB_URL} kernel: url: ${KERNEL_ZIMAGE_URL} type: zimage @@ -29,9 +62,12 @@ actions: nfsrootfs: url: ${NFSROOTFS_DEV_URL} compression: bz2 + - boot: + namespace: test + connection-namespace: dfu timeout: - minutes: 10 + minutes: 20 method: u-boot commands: - setenv autoload no @@ -48,7 +84,9 @@ actions: username: root prompts: - "root@rzn1-snarc:" + - test: + namespace: test timeout: minutes: 600 definitions: @@ -107,6 +145,33 @@ actions: - ifconfig -a name: ifconfig-test path: inline/ifconfig-test.yaml + + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: ping-github + description: Ping public GitHub webserver + run: + steps: + - ping -c 3 github.com + name: ping-github + path: inline/ping-github.yaml + + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: resolved-test + description: resolved test + run: + steps: + - systemctl --no-pager status systemd-resolved + - systemctl --no-pager restart systemd-resolved + - systemctl --no-pager status systemd-resolved + name: resolved-test + path: inline/resolved-test.yaml + - from: inline repository: metadata: diff --git a/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage-dev-ptest.yaml b/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage-dev-ptest.yaml index 099671c7..018c7323 100644 --- a/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage-dev-ptest.yaml +++ b/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage-dev-ptest.yaml @@ -12,15 +12,48 @@ priority: medium visibility: public actions: + - deploy: + namespace: dfu + to: tmpfs + images: + sf_fsbl: + image_arg: --alt sf_fsbl --download {sf_fsbl} + url: ${FSBL_URL} + sf_trustedfw: + image_arg: --alt sf_trustedfw --download {sf_trustedfw} + 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 + name: set_boot_to_nand + +- boot: + namespace: dfu + method: dfu + timeout: + minutes: 10 + +- command: + namespace: test + name: set_boot_to_qspi + +- deploy: + namespace: test + to: overlay + +- deploy: + namespace: test timeout: minutes: 5 to: tftp os: oe - optee: - url: ${OPTEE_ITB_URL} - uboot: - url: ${UBOOT_ITB_URL} kernel: url: ${KERNEL_ZIMAGE_URL} type: zimage @@ -29,9 +62,12 @@ actions: nfsrootfs: url: ${NFSROOTFS_DEV_URL} compression: bz2 + - boot: + namespace: test + connection-namespace: dfu timeout: - minutes: 10 + minutes: 20 method: u-boot commands: - setenv autoload no @@ -48,7 +84,9 @@ actions: username: root prompts: - "root@rzn1-snarc:" + - test: + namespace: test timeout: minutes: 600 definitions: @@ -107,6 +145,33 @@ actions: - ifconfig -a name: ifconfig-test path: inline/ifconfig-test.yaml + + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: ping-github + description: Ping public GitHub webserver + run: + steps: + - ping -c 3 github.com + name: ping-github + path: inline/ping-github.yaml + + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: resolved-test + description: resolved test + run: + steps: + - systemctl --no-pager status systemd-resolved + - systemctl --no-pager restart systemd-resolved + - systemctl --no-pager status systemd-resolved + name: resolved-test + path: inline/resolved-test.yaml + - from: inline repository: metadata: diff --git a/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage-dev.yaml b/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage-dev.yaml index ef21be02..d82d3be9 100644 --- a/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage-dev.yaml +++ b/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage-dev.yaml @@ -12,15 +12,48 @@ priority: medium visibility: public actions: + +- deploy: + namespace: dfu + to: tmpfs + images: + sf_fsbl: + image_arg: --alt sf_fsbl --download {sf_fsbl} + url: ${FSBL_URL} + sf_trustedfw: + image_arg: --alt sf_trustedfw --download {sf_trustedfw} + 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 + name: set_boot_to_nand + +- boot: + namespace: dfu + method: dfu + timeout: + minutes: 10 + +- command: + namespace: test + name: set_boot_to_qspi + +- deploy: + namespace: test + to: overlay + - deploy: + namespace: test timeout: minutes: 5 to: tftp os: oe - optee: - url: ${OPTEE_ITB_URL} - uboot: - url: ${UBOOT_ITB_URL} kernel: url: ${KERNEL_ZIMAGE_URL} type: zimage @@ -29,9 +62,12 @@ actions: nfsrootfs: url: ${NFSROOTFS_DEV_URL} compression: bz2 + - boot: + namespace: test + connection-namespace: dfu timeout: - minutes: 10 + minutes: 20 method: u-boot commands: - setenv autoload no @@ -48,7 +84,9 @@ actions: username: root prompts: - "root@rzn1-snarc:" + - test: + namespace: test timeout: minutes: 60 definitions: @@ -205,7 +243,7 @@ actions: YKUSHPORT: 1 name: uart-loopback-forward timeout: - minutes: 120 + minutes: 15 - path: automated/linux/uart-loopback/uart-loopback.yaml repository: https://github.com/omnium21/test-definitions.git @@ -219,7 +257,7 @@ actions: YKUSHPORT: 1 name: uart-loopback-reverse timeout: - minutes: 120 + minutes: 15 - path: automated/linux/docker/docker.yaml repository: https://git.linaro.org/qa/test-definitions.git diff --git a/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage-edge.yaml b/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage-edge.yaml index 8841f0d9..86c4a8e0 100644 --- a/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage-edge.yaml +++ b/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage-edge.yaml @@ -12,15 +12,48 @@ priority: medium visibility: public actions: + +- deploy: + namespace: dfu + to: tmpfs + images: + sf_fsbl: + image_arg: --alt sf_fsbl --download {sf_fsbl} + url: ${FSBL_URL} + sf_trustedfw: + image_arg: --alt sf_trustedfw --download {sf_trustedfw} + 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 + name: set_boot_to_nand + +- boot: + namespace: dfu + method: dfu + timeout: + minutes: 10 + +- command: + namespace: test + name: set_boot_to_qspi + - deploy: + namespace: test + to: overlay + +- deploy: + namespace: test timeout: minutes: 5 to: tftp os: oe - optee: - url: ${OPTEE_ITB_URL} - uboot: - url: ${UBOOT_ITB_URL} kernel: url: ${KERNEL_ZIMAGE_URL} type: zimage @@ -29,9 +62,12 @@ actions: nfsrootfs: url: ${NFSROOTFS_EDGE_URL} compression: bz2 + - boot: + namespace: test + connection-namespace: dfu timeout: - minutes: 10 + minutes: 20 method: u-boot commands: - setenv autoload no @@ -52,6 +88,41 @@ actions: - "root@rzn1-snarc:" - test: + namespace: test + timeout: + minutes: 5 + definitions: + - repository: http://git.linaro.org/lava-team/lava-functional-tests.git + from: git + path: lava-test-shell/smoke-tests-basic.yaml + name: smoke-tests + - path: automated/linux/meminfo/meminfo.yaml + repository: https://git.linaro.org/qa/test-definitions.git + history: false + name: meminfo + from: git + branch: master + - path: automated/linux/docker/docker.yaml + repository: https://git.linaro.org/qa/test-definitions.git + history: false + name: docker-hello-world + from: git + branch: master + parameters: + IMAGE: "hello-world" + SKIP_INSTALL: True + - path: automated/linux/docker/docker.yaml + repository: https://git.linaro.org/qa/test-definitions.git + history: false + name: docker + from: git + branch: master + parameters: + IMAGE: "arm32v7/ubuntu" + SKIP_INSTALL: True + +- test: + namespace: test timeout: minutes: 10 interactive: @@ -60,11 +131,8 @@ actions: script: - command: uname -a - command: ps aux --sort -rss - - command: cat /proc/meminfo - command: free -h - command: ifconfig -a - - command: udhcpc -i eth1 -n || udhcpc -i eth0 -n - - command: ifconfig -a - command: ping -c 3 github.com metadata: diff --git a/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage.yaml b/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage.yaml index 87c4dbba..c3d03f6e 100644 --- a/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage.yaml +++ b/schneider-openembedded/lava-job-definitions/rzn1d/template-zimage.yaml @@ -12,15 +12,48 @@ priority: medium visibility: public actions: + +- deploy: + namespace: dfu + to: tmpfs + images: + sf_fsbl: + image_arg: --alt sf_fsbl --download {sf_fsbl} + url: ${FSBL_URL} + sf_trustedfw: + image_arg: --alt sf_trustedfw --download {sf_trustedfw} + 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 + name: set_boot_to_nand + +- boot: + namespace: dfu + method: dfu + timeout: + minutes: 10 + +- command: + namespace: test + name: set_boot_to_qspi + - deploy: + namespace: test + to: overlay + +- deploy: + namespace: test timeout: minutes: 5 to: tftp os: oe - optee: - url: ${OPTEE_ITB_URL} - uboot: - url: ${UBOOT_ITB_URL} kernel: url: ${KERNEL_ZIMAGE_URL} type: zimage @@ -29,9 +62,12 @@ actions: nfsrootfs: url: ${NFSROOTFS_URL} compression: bz2 + - boot: + namespace: test + connection-namespace: dfu timeout: - minutes: 10 + minutes: 20 method: u-boot commands: - setenv autoload no @@ -52,6 +88,23 @@ actions: - "root@rzn1-snarc:" - test: + namespace: test + timeout: + minutes: 5 + definitions: + - repository: http://git.linaro.org/lava-team/lava-functional-tests.git + from: git + path: lava-test-shell/smoke-tests-basic.yaml + name: smoke-tests + - path: automated/linux/meminfo/meminfo.yaml + repository: https://git.linaro.org/qa/test-definitions.git + history: false + name: meminfo + from: git + branch: master + +- test: + namespace: test timeout: minutes: 10 interactive: @@ -60,11 +113,8 @@ actions: script: - command: uname -a - command: ps aux --sort -rss - - command: cat /proc/meminfo - command: free -h - command: ifconfig -a - - command: udhcpc -i eth1 -n || udhcpc -i eth0 -n - - command: ifconfig -a - command: ping -c 3 github.com metadata: diff --git a/schneider-openembedded/lava-job-definitions/soca9/template-uboot.yaml b/schneider-openembedded/lava-job-definitions/soca9/template-uboot.yaml index ea5e1bc3..e90d2490 100644 --- a/schneider-openembedded/lava-job-definitions/soca9/template-uboot.yaml +++ b/schneider-openembedded/lava-job-definitions/soca9/template-uboot.yaml @@ -28,7 +28,7 @@ actions: - boot: timeout: - minutes: 1 + minutes: 20 method: bootloader bootloader: u-boot commands: [] @@ -36,7 +36,7 @@ actions: - test: timeout: - minutes: 4 + minutes: 5 interactive: - name: basic-cmds prompts: ["=> ", "/ # "] @@ -115,6 +115,15 @@ actions: name: dhcp successes: - message: "DHCP client bound to address" + - name: ping-cmds + prompts: ["=> ", "/ # "] + script: + # ping + - command: + - command: ping {SERVER_IP} + name: ping + successes: + - message: "is alive" - name: tftp-cmds prompts: ["=> ", "/ # "] script: diff --git a/schneider-openembedded/lava-job-definitions/soca9/template-wic-dev-ltp-1.yaml b/schneider-openembedded/lava-job-definitions/soca9/template-wic-dev-ltp-1.yaml index 1d4aca28..8906cd83 100644 --- a/schneider-openembedded/lava-job-definitions/soca9/template-wic-dev-ltp-1.yaml +++ b/schneider-openembedded/lava-job-definitions/soca9/template-wic-dev-ltp-1.yaml @@ -93,6 +93,33 @@ actions: - ifconfig -a name: ifconfig-test path: inline/ifconfig-test.yaml + + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: ping-github + description: Ping public GitHub webserver + run: + steps: + - ping -c 3 github.com + name: ping-github + path: inline/ping-github.yaml + + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: resolved-test + description: resolved test + run: + steps: + - systemctl --no-pager status systemd-resolved + - systemctl --no-pager restart systemd-resolved + - systemctl --no-pager status systemd-resolved + name: resolved-test + path: inline/resolved-test.yaml + - from: inline repository: metadata: diff --git a/schneider-openembedded/lava-job-definitions/soca9/template-wic-dev-ltp-2.yaml b/schneider-openembedded/lava-job-definitions/soca9/template-wic-dev-ltp-2.yaml index c39f7ebb..a26e2f9d 100644 --- a/schneider-openembedded/lava-job-definitions/soca9/template-wic-dev-ltp-2.yaml +++ b/schneider-openembedded/lava-job-definitions/soca9/template-wic-dev-ltp-2.yaml @@ -93,6 +93,33 @@ actions: - ifconfig -a name: ifconfig-test path: inline/ifconfig-test.yaml + + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: ping-github + description: Ping public GitHub webserver + run: + steps: + - ping -c 3 github.com + name: ping-github + path: inline/ping-github.yaml + + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: resolved-test + description: resolved test + run: + steps: + - systemctl --no-pager status systemd-resolved + - systemctl --no-pager restart systemd-resolved + - systemctl --no-pager status systemd-resolved + name: resolved-test + path: inline/resolved-test.yaml + - from: inline repository: metadata: diff --git a/schneider-openembedded/lava-job-definitions/soca9/template-wic-dev-ptest.yaml b/schneider-openembedded/lava-job-definitions/soca9/template-wic-dev-ptest.yaml index a7c9714d..367855c7 100644 --- a/schneider-openembedded/lava-job-definitions/soca9/template-wic-dev-ptest.yaml +++ b/schneider-openembedded/lava-job-definitions/soca9/template-wic-dev-ptest.yaml @@ -93,6 +93,33 @@ actions: - ifconfig -a name: ifconfig-test path: inline/ifconfig-test.yaml + + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: ping-github + description: Ping public GitHub webserver + run: + steps: + - ping -c 3 github.com + name: ping-github + path: inline/ping-github.yaml + + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: resolved-test + description: resolved test + run: + steps: + - systemctl --no-pager status systemd-resolved + - systemctl --no-pager restart systemd-resolved + - systemctl --no-pager status systemd-resolved + name: resolved-test + path: inline/resolved-test.yaml + - from: inline repository: metadata: diff --git a/schneider-openembedded/lava-job-definitions/soca9/template-wic-dev.yaml b/schneider-openembedded/lava-job-definitions/soca9/template-wic-dev.yaml index 65ad05c5..a1468c4f 100644 --- a/schneider-openembedded/lava-job-definitions/soca9/template-wic-dev.yaml +++ b/schneider-openembedded/lava-job-definitions/soca9/template-wic-dev.yaml @@ -93,6 +93,33 @@ actions: - ifconfig -a name: ifconfig-test path: inline/ifconfig-test.yaml + + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: ping-github + description: Ping public GitHub webserver + run: + steps: + - ping -c 3 github.com + name: ping-github + path: inline/ping-github.yaml + + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: resolved-test + description: resolved test + run: + steps: + - systemctl --no-pager status systemd-resolved + - systemctl --no-pager restart systemd-resolved + - systemctl --no-pager status systemd-resolved + name: resolved-test + path: inline/resolved-test.yaml + - from: inline repository: metadata: diff --git a/schneider-openembedded/lava-job-definitions/soca9/template-wic.yaml b/schneider-openembedded/lava-job-definitions/soca9/template-wic.yaml index db1e6588..8ff9c9a3 100644 --- a/schneider-openembedded/lava-job-definitions/soca9/template-wic.yaml +++ b/schneider-openembedded/lava-job-definitions/soca9/template-wic.yaml @@ -43,6 +43,21 @@ actions: - test: timeout: + minutes: 5 + definitions: + - repository: http://git.linaro.org/lava-team/lava-functional-tests.git + from: git + path: lava-test-shell/smoke-tests-basic.yaml + name: smoke-tests + - path: automated/linux/meminfo/meminfo.yaml + repository: https://git.linaro.org/qa/test-definitions.git + history: false + name: meminfo + from: git + branch: master + +- test: + timeout: minutes: 10 interactive: - name: basic-cmds @@ -50,7 +65,6 @@ actions: script: - command: uname -a - command: ps aux --sort -rss - - command: cat /proc/meminfo - command: free -h - command: ifconfig -a - command: udhcpc -i eth1 -n || udhcpc -i eth0 -n diff --git a/schneider-openembedded/lava-job-definitions/soca9/template-zimage-dev-ltp.yaml b/schneider-openembedded/lava-job-definitions/soca9/template-zimage-dev-ltp.yaml index 6be1e823..78cda9f7 100644 --- a/schneider-openembedded/lava-job-definitions/soca9/template-zimage-dev-ltp.yaml +++ b/schneider-openembedded/lava-job-definitions/soca9/template-zimage-dev-ltp.yaml @@ -114,6 +114,33 @@ actions: - ifconfig -a name: ifconfig-test path: inline/ifconfig-test.yaml + + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: ping-github + description: Ping public GitHub webserver + run: + steps: + - ping -c 3 github.com + name: ping-github + path: inline/ping-github.yaml + + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: resolved-test + description: resolved test + run: + steps: + - systemctl --no-pager status systemd-resolved + - systemctl --no-pager restart systemd-resolved + - systemctl --no-pager status systemd-resolved + name: resolved-test + path: inline/resolved-test.yaml + - from: inline repository: metadata: diff --git a/schneider-openembedded/lava-job-definitions/soca9/template-zimage-dev-ptest.yaml b/schneider-openembedded/lava-job-definitions/soca9/template-zimage-dev-ptest.yaml index 8099f89a..bd32950f 100644 --- a/schneider-openembedded/lava-job-definitions/soca9/template-zimage-dev-ptest.yaml +++ b/schneider-openembedded/lava-job-definitions/soca9/template-zimage-dev-ptest.yaml @@ -114,6 +114,33 @@ actions: - ifconfig -a name: ifconfig-test path: inline/ifconfig-test.yaml + + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: ping-github + description: Ping public GitHub webserver + run: + steps: + - ping -c 3 github.com + name: ping-github + path: inline/ping-github.yaml + + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: resolved-test + description: resolved test + run: + steps: + - systemctl --no-pager status systemd-resolved + - systemctl --no-pager restart systemd-resolved + - systemctl --no-pager status systemd-resolved + name: resolved-test + path: inline/resolved-test.yaml + - from: inline repository: metadata: diff --git a/schneider-openembedded/lava-job-definitions/soca9/template-zimage-dev.yaml b/schneider-openembedded/lava-job-definitions/soca9/template-zimage-dev.yaml index 10d77610..5823c960 100644 --- a/schneider-openembedded/lava-job-definitions/soca9/template-zimage-dev.yaml +++ b/schneider-openembedded/lava-job-definitions/soca9/template-zimage-dev.yaml @@ -1,5 +1,5 @@ device_type: soca9 -job_name: SE ${MACHINE} TFTP/NFS dev ${MANIFEST_BRANCH} ${BUILD_NUMBER} +job_name: SE ${MACHINE} TFTP/NFS Dev ${MANIFEST_BRANCH} ${BUILD_NUMBER} timeouts: job: @@ -212,7 +212,7 @@ actions: YKUSHPORT: 1 name: uart-loopback-forward timeout: - minutes: 120 + minutes: 15 - path: automated/linux/uart-loopback/uart-loopback.yaml repository: https://github.com/omnium21/test-definitions.git @@ -226,7 +226,7 @@ actions: YKUSHPORT: 1 name: uart-loopback-reverse timeout: - minutes: 120 + minutes: 15 metadata: diff --git a/schneider-openembedded/lava-job-definitions/soca9/template-zimage.yaml b/schneider-openembedded/lava-job-definitions/soca9/template-zimage.yaml index 0befec17..aece0be2 100644 --- a/schneider-openembedded/lava-job-definitions/soca9/template-zimage.yaml +++ b/schneider-openembedded/lava-job-definitions/soca9/template-zimage.yaml @@ -67,64 +67,31 @@ actions: - "root@snarc-soca9:" - test: timeout: - minutes: 60 + minutes: 5 definitions: - - from: inline - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: uname-test - description: "uname test" - run: - steps: - - uname -a - name: uname-test - path: inline/uname-test.yaml - - from: inline - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: ps-inline-test - description: "ps-inline test" - run: - steps: - - ps aux --sort -rss - name: ps-inline-test - path: inline/ps-inline-test.yaml - - from: inline - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: meminfo-inline-test - description: "meminfo-inline test" - run: - steps: - - cat /proc/meminfo - name: meminfo-inline-test - path: inline/meminfo-inline-test.yaml - - from: inline - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: free-inline-test - description: "free-inline test" - run: - steps: - - free -h - name: free-inline-test - path: inline/free-inline-test.yaml - - from: inline - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: ifconfig-test - description: "ifconfig test" - run: - steps: - - ifconfig -a - name: ifconfig-test - path: inline/ifconfig-test.yaml + - repository: http://git.linaro.org/lava-team/lava-functional-tests.git + from: git + path: lava-test-shell/smoke-tests-basic.yaml + name: smoke-tests + - path: automated/linux/meminfo/meminfo.yaml + repository: https://git.linaro.org/qa/test-definitions.git + history: false + name: meminfo + from: git + branch: master +- test: + timeout: + minutes: 10 + interactive: + - name: basic-cmds + prompts: ["root@snarc-soca9", "root@rzn1-snarc"] + script: + - command: uname -a + - command: ps aux --sort -rss + - command: free -h + - command: ifconfig -a + - command: ping -c 3 github.com metadata: machine: ${MACHINE} |