diff options
author | Ryan Harkin <ryan.harkin@linaro.org> | 2019-11-22 19:43:08 +0000 |
---|---|---|
committer | Ryan Harkin <ryan.harkin@linaro.org> | 2019-11-25 16:02:50 +0000 |
commit | 657e15b6f5e952510b9ab82e8c5faad1663bb9e2 (patch) | |
tree | 5f77ad7f8376fcfab9d79d16ba0347ca844973f0 /schneider-openembedded | |
parent | 8b389ad4895651f9afca70adbb2a4f767b368a79 (diff) |
se: lces2: add UBI tests with DFU support
Add test jobs that flash the whole image stack, including the firmware
(FSBL, OP-TEE, and U-Boot), and the UBI kernel/rootfs image written to
NAND flash.
These are the first tests to use the new DFU flashing support.
Change-Id: Ic3db027c7db50f6d22bada9adc7c22b0dad4467b
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
Diffstat (limited to 'schneider-openembedded')
3 files changed, 292 insertions, 0 deletions
diff --git a/schneider-openembedded/lava-job-definitions/rzn1d/template-ubi-edge.yaml b/schneider-openembedded/lava-job-definitions/rzn1d/template-ubi-edge.yaml new file mode 100644 index 00000000..f6bc92ae --- /dev/null +++ b/schneider-openembedded/lava-job-definitions/rzn1d/template-ubi-edge.yaml @@ -0,0 +1,140 @@ +device_type: rzn1d +job_name: SE ${MACHINE} UBI DEV ${MANIFEST_BRANCH} ${BUILD_NUMBER} + +timeouts: + job: + minutes: 100 + action: + minutes: 70 + connection: + minutes: 2 +priority: medium +visibility: public + +actions: +- deploy: + timeout: + minutes: 20 + to: tmpfs + images: + sf_fsbl: + image_arg: --alt sf_fsbl --download {sf_fsbl} + url: ${ TODO } + 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} + n_fs1: + image_arg: --alt n_fs1 --download {n_fs1} + url: ${UBI_DEV_IMAGE_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 + +- boot: + namespace: test + connection-namespace: dfu + timeout: + minutes: 10 + method: u-boot + commands: + - run linux_bestla + auto_login: + login_prompt: 'login:' + username: root + password_prompt: "Password:" + password: "P@ssword-1" + login_commands: + - P@ssword-1 + - azertAZERT12345 + - azertAZERT12345 + - azertAZERT12345 + prompts: + - "Current password: " + - "New password: " + - "Retype new password: " + - "root@rzn1-snarc:" + transfer_overlay: + download_command: unset http_proxy ; udhcpc -i eth1 -n || udhcpc -i eth0 -n ; cd /tmp ; wget + unpack_command: tar --touch -C / -xzf + +- 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: + - 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} + manifest branch: ${MANIFEST_BRANCH} + manifest commit: ${MANIFEST_COMMIT} + build url: ${BUILD_URL} + build location: ${PUBLISH_SERVER}${PUB_DEST} + +notify: + recipients: + - to: + method: email + email: ryan.harkin@linaro.org + criteria: + status: complete + verbosity: verbose diff --git a/schneider-openembedded/lava-job-definitions/rzn1d/template-ubi.yaml b/schneider-openembedded/lava-job-definitions/rzn1d/template-ubi.yaml new file mode 100644 index 00000000..fbc7c172 --- /dev/null +++ b/schneider-openembedded/lava-job-definitions/rzn1d/template-ubi.yaml @@ -0,0 +1,125 @@ +device_type: rzn1d +job_name: SE ${MACHINE} UBI ${MANIFEST_BRANCH} ${BUILD_NUMBER} + +timeouts: + job: + 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} + n_fs1: + image_arg: --alt n_fs1 --download {n_fs1} + url: ${UBI_IMAGE_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 + +- boot: + namespace: test + connection-namespace: dfu + timeout: + minutes: 20 + method: u-boot + commands: + - run linux_bestla + auto_login: + login_prompt: 'login:' + username: root + password_prompt: "Password:" + password: "P@ssword-1" + login_commands: + - P@ssword-1 + - azertAZERT12345 + - azertAZERT12345 + - azertAZERT12345 + prompts: + - "Current password: " + - "New password: " + - "Retype new password: " + - "root@rzn1-snarc:" + transfer_overlay: + download_command: unset http_proxy ; udhcpc -i eth1 -n || udhcpc -i eth0 -n ; cd /tmp ; wget + unpack_command: tar --touch -C / -xzf + +- 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: + - 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} + manifest branch: ${MANIFEST_BRANCH} + manifest commit: ${MANIFEST_COMMIT} + build url: ${BUILD_URL} + build location: ${PUBLISH_SERVER}${PUB_DEST} + +notify: + recipients: + - to: + method: email + email: ryan.harkin@linaro.org + criteria: + status: complete + verbosity: verbose diff --git a/schneider-openembedded/submit_for_testing.sh b/schneider-openembedded/submit_for_testing.sh index 3d6672fb..8756bf2d 100755 --- a/schneider-openembedded/submit_for_testing.sh +++ b/schneider-openembedded/submit_for_testing.sh @@ -111,8 +111,35 @@ if [ "${DEVICE_TYPE}" == "rzn1d" ]; then --qa-server-project ${QA_SERVER_PROJECT} \ --git-commit ${MANIFEST_COMMIT} \ --template-path configs/schneider-openembedded/lava-job-definitions/ \ + --template-names template-ubi.yaml +fi + +if [ "${DEVICE_TYPE}" == "rzn1d" ]; then + python configs/openembedded-lkft/submit_for_testing.py \ + --device-type ${DEVICE_TYPE} \ + --build-number ${BUILD_NUMBER} \ + --lava-server ${LAVA_SERVER} \ + --qa-server ${QA_SERVER} \ + --qa-server-team ${QA_SERVER_TEAM} \ + --qa-server-project ${QA_SERVER_PROJECT} \ + --git-commit ${MANIFEST_COMMIT} \ + --template-path configs/schneider-openembedded/lava-job-definitions/ \ + --template-names template-ubi-edge.yaml +fi + +if [ "${DEVICE_TYPE}" == "rzn1d" ]; then + python configs/openembedded-lkft/submit_for_testing.py \ + --device-type ${DEVICE_TYPE} \ + --build-number ${BUILD_NUMBER} \ + --lava-server ${LAVA_SERVER} \ + --qa-server ${QA_SERVER} \ + --qa-server-team ${QA_SERVER_TEAM} \ + --qa-server-project ${QA_SERVER_PROJECT} \ + --git-commit ${MANIFEST_COMMIT} \ + --template-path configs/schneider-openembedded/lava-job-definitions/ \ --template-names template-zimage-edge.yaml fi + if [ "${DEVICE_TYPE}" == "soca9" ]; then python configs/openembedded-lkft/submit_for_testing.py \ --device-type ${DEVICE_TYPE} \ |