diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2017-10-18 13:32:43 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2017-10-18 10:34:50 +0000 |
commit | 7a1428608f6f87b03ed4c240aee197c8b05e9259 (patch) | |
tree | 0ce48685cfb00b05d9de146f5882f58550f8835a /optee | |
parent | b92bfd2b490a02c44e6d797858857200bfefdcd2 (diff) |
optee-os: submit job to LAVA staging instance
Change-Id: I9aa34f65ab805158ffc56b7a1061e4bcdb8b854c
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'optee')
-rw-r--r-- | optee/os/lava-job-definitions/x86/template-optee-xtest-qemu.yaml | 78 | ||||
-rwxr-xr-x | optee/os/publishers.sh | 2 |
2 files changed, 79 insertions, 1 deletions
diff --git a/optee/os/lava-job-definitions/x86/template-optee-xtest-qemu.yaml b/optee/os/lava-job-definitions/x86/template-optee-xtest-qemu.yaml new file mode 100644 index 00000000..00540f9b --- /dev/null +++ b/optee/os/lava-job-definitions/x86/template-optee-xtest-qemu.yaml @@ -0,0 +1,78 @@ +context: + test_character_delay: 10 + +device_type: x86 +job_name: optee-xtest-qemu-${BUILD_NUMBER} +timeouts: + job: + minutes: 30 + action: + minutes: 10 + connection: + minutes: 2 +priority: medium +visibility: public + +metadata: + git branch: ${GIT_BRANCH} + git repo: ${GIT_URL} + git commit: ${GIT_COMMIT} + build url: ${BUILD_URL} + build location: ${PUBLISH_SERVER}${PUB_DEST} + +actions: +- deploy: + timeout: + minutes: 15 + to: tftp + kernel: + url: http://snapshots.linaro.org/openembedded/lkft/morty/intel-core2-32/rpb/linux-mainline/355/bzImage--4.13+git0+33d930e59a-r0-intel-core2-32-20171016062623-355.bin + modules: + url: http://snapshots.linaro.org/openembedded/lkft/morty/intel-core2-32/rpb/linux-mainline/355/modules--4.13+git0+33d930e59a-r0-intel-core2-32-20171016062623-355.tgz + compression: gz + nfsrootfs: + url: http://snapshots.linaro.org/openembedded/lkft/morty/intel-core2-32/rpb/linux-mainline/355/rpb-console-image-intel-core2-32-20171016062623-355.rootfs.tar.xz + compression: xz + os: oe + +- boot: + timeout: + minutes: 10 + method: ipxe + commands: nfs + parameters: + shutdown-message: "reboot: Restarting system" + auto_login: + login_prompt: 'login:' + username: root + login_commands: + - su + prompts: + - 'root@intel-core2-32:' + +# FIXME until it's merged in https://review.linaro.org/#/c/21855 +- test: + timeout: + minutes: 30 + definitions: + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: optee-xtest-qemu + description: "OP-TEE sanity test suite using QEMU" + run: + steps: + - FILES="bios.bin efi-virtio.rom rootfs.cpio.gz qemu-system-arm tee-header_v2.bin tee-pager_v2.bin zImage" + - QEMU_BIN="qemu-system-arm" + - QEMU_SMP="4" + - dhcp_client=$(which udhcpc) && udhcpc + - for file in ${FILES}; do curl -sLSO ${PUBLISH_SERVER}${PUB_DEST}/${file}; done + - touch tee-pageable_v2.bin + - chmod +x ${QEMU_BIN} + - ${PWD}/${QEMU_BIN} -version + - curl -sLSO https://raw.githubusercontent.com/OP-TEE/build/master/qemu-check.exp + - sed -i -e 's/^log_user.*/log_user 1/' qemu-check.exp + - QEMU=${PWD}/${QEMU_BIN} QEMU_SMP=${QEMU_SMP} expect qemu-check.exp -- --bios bios.bin + name: optee-xtest + path: inline/optee-xtest-qemu.yaml diff --git a/optee/os/publishers.sh b/optee/os/publishers.sh index 6deadb13..536c19dc 100755 --- a/optee/os/publishers.sh +++ b/optee/os/publishers.sh @@ -28,4 +28,4 @@ wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp. time python ${HOME}/bin/linaro-cp.py \ --server ${PUBLISH_SERVER} \ --link-latest \ - ${WORKSPACE}/out-publish components/optee/os/${BUILD_NUMBER} + ${WORKSPACE}/out-publish ${PUB_DEST} |