diff options
-rw-r--r-- | lt-qcom-openembedded-rpb-morty.yaml | 25 | ||||
-rw-r--r-- | lt-qcom-openembedded-rpb/lava-job-definitions/dragonboard410c/template.yaml | 152 |
2 files changed, 165 insertions, 12 deletions
diff --git a/lt-qcom-openembedded-rpb-morty.yaml b/lt-qcom-openembedded-rpb-morty.yaml index d56a6fe42a..c67730295e 100644 --- a/lt-qcom-openembedded-rpb-morty.yaml +++ b/lt-qcom-openembedded-rpb-morty.yaml @@ -31,11 +31,8 @@ name: BASE_URL default: 'https://builds.96boards.org/' - string: - name: BUNDLE_STREAM_NAME - default: '/public/team/linaro/lt-qualcomm-oe-morty/' - - string: name: LAVA_SERVER - default: 'validation.linaro.org/RPC2/' + default: 'staging.validation.linaro.org/RPC2/' disabled: false node: master display-name: 'Qualcomm OpenEmbedded RPB (morty)' @@ -93,27 +90,31 @@ - shell: | case "${MACHINE}" in dragonboard-410c) - export DEVICE_TYPE=apq8016-sbc + export DEVICE_TYPE=dragonboard410c ;; *) echo "Skip DEVICE_TYPE for ${MACHINE}" ;; esac - rm -rf configs lci-build-tools - git clone --depth 1 http://git.linaro.org/ci/lci-build-tools.git + rm -rf configs git clone --depth 1 http://git.linaro.org/ci/job/configs.git # Handle LAVA v1 (json)/v2 (yaml) test definitions case "${DEVICE_TYPE}" in - apq8016-sbc) - ./lci-build-tools/yaml-to-json.py configs/lt-qcom-openembedded-rpb/lava-job-definitions/${DEVICE_TYPE}/template.yaml \ - > custom_lava_job_definition.json + dragonboard410c) + sed -e "s|\${DEVICE_TYPE}|${DEVICE_TYPE}|" \ + -e "s|\${DISTRO}|${DISTRO}|" \ + -e "s|\${MANIFEST_BRANCH}|${MANIFEST_BRANCH}|" \ + -e "s|\${BUILD_NUMBER}|${BUILD_NUMBER}|" \ + -e "s|\${BOOT_URL}|${BOOT_URL}|" \ + -e "s|\${ROOTFS_SPARSE_BUILD_URL}|${ROOTFS_SPARSE_BUILD_URL}|" \ + < configs/lt-qcom-openembedded-rpb/lava-job-definitions/${DEVICE_TYPE}/template.yaml \ + > custom_lava_job_definition.yaml cat << EOF > post_build_lava_parameters DEVICE_TYPE=${DEVICE_TYPE} - BUNDLE_STREAM_NAME=${BUNDLE_STREAM_NAME} - CUSTOM_JSON_URL=${JOB_URL}/ws/custom_lava_job_definition.json + CUSTOM_YAML_URL=${JOB_URL}/ws/custom_lava_job_definition.yaml LAVA_SERVER=${LAVA_SERVER} EOF ;; diff --git a/lt-qcom-openembedded-rpb/lava-job-definitions/dragonboard410c/template.yaml b/lt-qcom-openembedded-rpb/lava-job-definitions/dragonboard410c/template.yaml new file mode 100644 index 0000000000..2ba1832ec0 --- /dev/null +++ b/lt-qcom-openembedded-rpb/lava-job-definitions/dragonboard410c/template.yaml @@ -0,0 +1,152 @@ +device_type: ${DEVICE_TYPE} +job_name: lt-qcom-openembedded-${DISTRO}-${MANIFEST_BRANCH}-${BUILD_NUMBER} +timeouts: + job: + minutes: 90 + action: + minutes: 15 + connection: + minutes: 2 +priority: medium +visibility: public + +metadata: + source: https://git.linaro.org/ci/job/configs.git + path: lt-qcom-openembedded-rpb/lava-job-definitions/dragonboard-410c/template.yaml + +protocols: + lava-lxc: + name: lxc-dragonboard410c-test + template: debian + distribution: debian + release: jessie + +actions: +- deploy: + namespace: tlxc + timeout: + minutes: 5 + to: lxc + packages: + - android-tools-adb + - android-tools-fastboot + os: debian + +- boot: + namespace: tlxc + prompts: + - 'root@(.*):/#' + - 'root@linaro-developer:~#' + timeout: + minutes: 5 + method: lxc + +- deploy: + timeout: + minutes: 35 + to: fastboot + namespace: dragonboard410c-oe + images: + partition: + url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/gpt_both0.bin + hyp: + url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/hyp.mbn + cdt: + url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/sbc_1.0_8016.bin + rpm: + url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/rpm.mbn + sbl1: + url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/sbl1.mbn + tz: + url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/tz.mbn + aboot: + url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/emmc_appsboot.mbn + boot: + url: ${BOOT_URL} + rootfs: + url: ${ROOTFS_SPARSE_BUILD_URL} + compression: gz + apply-overlay: True + os: oe + +- boot: + namespace: dragonboard410c-oe + auto_login: + login_prompt: 'login:' + username: 'root' + prompts: + - 'root@(.*):/#' + - 'root@dragonboard-410c:~#' + timeout: + minutes: 15 + method: fastboot + +# XXX: This test manfiests are the same of qcomlt test plans +# used in test-runner, the LAVA dispatcher currently doesn't support +# test plans. +# +# git.linaro.org/qa/test-definitions.git - plans/qcomlt +- test: + namespace: dragonboard410c-oe + name: qcomlt-smoke + timeout: + minutes: 5 + definitions: + - repository: https://git.linaro.org/qa/test-definitions.git + from: git + path: automated/linux/smoke/smoke.yaml + name: linux-smoke + - repository: https://git.linaro.org/qa/test-definitions.git + from: git + path: automated/linux/usb-smoke/usb-smoke-test.yaml + name: linux-usb-smoke + - repository: https://git.linaro.org/qa/test-definitions.git + from: git + path: automated/linux/toolchain-smoke/toolchain-smoke.yaml + name: linux-toolchain-smoke + - repository: https://git.linaro.org/qa/test-definitions.git + from: git + path: automated/linux/device-tree/device-tree.yaml + name: linux-device-tree + +- test: + namespace: dragonboard410c-oe + name: qcomlt-bench + timeout: + minutes: 60 + definitions: + - repository: https://git.linaro.org/qa/test-definitions.git + from: git + path: automated/linux/dd-wr-speed/dd-wr-speed.yaml + name: linux-dd-wr-speed + - repository: https://git.linaro.org/qa/test-definitions.git + from: git + path: automated/linux/sysbench/sysbench.yaml + params: + NUM_THREADS: 4 + TESTS: cpu memory threads mutex + name: linux-sysbench + - repository: https://git.linaro.org/qa/test-definitions.git + from: git + path: automated/linux/device-read-perf/device-read-perf.yaml + name: linux-device-read-perf + - repository: https://git.linaro.org/qa/test-definitions.git + from: git + path: automated/linux/hackbench/hackbench.yaml + name: linux-hackbench + - repository: https://git.linaro.org/qa/test-definitions.git + from: git + path: automated/linux/linpack/linpack.yaml + name: linux-linpack + - repository: https://git.linaro.org/qa/test-definitions.git + from: git + path: automated/linux/openssl/openssl-speed.yaml + name: linux-openssl-speed + - repository: https://git.linaro.org/qa/test-definitions.git + from: git + path: automated/linux/stream/stream-uniprocessor.yaml + name: linux-stream-uniprocessor + - repository: https://git.linaro.org/qa/test-definitions.git + from: git + path: automated/linux/pi-stress/pi-stress.yaml + name: linux-pi-stress |