aboutsummaryrefslogtreecommitdiff
path: root/lt-qcom
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linaro.org>2017-11-17 12:44:12 -0600
committerAnibal Limon <anibal.limon@linaro.org>2017-11-22 14:39:48 +0000
commit3528b537f8b6eecccfe218d41a72978ad9da7c06 (patch)
treeeb3f1eb8f4d52365f7f5afa89db49e69dc3083b8 /lt-qcom
parent53ce723f4f5295b4d6d615a5fdde7c81ce21c823 (diff)
downloadconfigs-3528b537f8b6eecccfe218d41a72978ad9da7c06.tar.gz
lt-qcom: Changes to make LAVA templates usable in OE/Debian
- Move the LAVA templates from lt-qcom-openembedded-rpb to lt-qcom. - Use --template-base-pre to avoid duplication on protocols (LXC) and deploy/boot images, the actual templates only differs on description and test plans. - Change namespace of target devices to dragonboard410c instead of dragonboard410c-oe. - Add parameters to set OS_INFO, DEPLOY_OS and BOOT_OS_PROMPT that differs on OE and Debian. - Add support to use LXC containers to execute a conversion of boot or rootfs in this case be able to resize the rootfs, now LXC_BOOT_FILE and LXC_ROOTFS_FILE parameters are needed. - Adapt lt-qcom-openembedded-rpb-morty jenkins template to use the new LAVA generic templates created. Change-Id: I7fd88831ce041eef374f3a4bf0a2cf72cbfa04fa Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Diffstat (limited to 'lt-qcom')
-rw-r--r--lt-qcom/lava-job-definitions/dragonboard-410c/base_template.yaml123
-rw-r--r--lt-qcom/lava-job-definitions/dragonboard-410c/template-bt.yaml26
-rw-r--r--lt-qcom/lava-job-definitions/dragonboard-410c/template-ptest.yaml26
-rw-r--r--lt-qcom/lava-job-definitions/dragonboard-410c/template-wifi.yaml28
-rw-r--r--lt-qcom/lava-job-definitions/dragonboard-410c/template.yaml85
5 files changed, 288 insertions, 0 deletions
diff --git a/lt-qcom/lava-job-definitions/dragonboard-410c/base_template.yaml b/lt-qcom/lava-job-definitions/dragonboard-410c/base_template.yaml
new file mode 100644
index 000000000..e9012a0cf
--- /dev/null
+++ b/lt-qcom/lava-job-definitions/dragonboard-410c/base_template.yaml
@@ -0,0 +1,123 @@
+protocols:
+ lava-lxc:
+ name: lxc-dragonboard410c-test
+ template: debian
+ distribution: debian
+ release: stretch
+
+actions:
+- deploy:
+ namespace: tlxc
+ timeout:
+ minutes: 5
+ to: lxc
+ packages:
+ - android-tools-adb
+ - android-tools-fastboot
+ - img2simg
+ - simg2img
+ - e2fsprogs
+ os: debian
+
+- boot:
+ namespace: tlxc
+ prompts:
+ - 'root@(.*):/#'
+ - 'root@linaro-developer:~#'
+ timeout:
+ minutes: 5
+ method: lxc
+
+- deploy:
+ timeout:
+ minutes: 40
+ to: download
+ namespace: dragonboard410c
+ 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}
+ compression: ${BOOT_URL_COMP}
+ rootfs:
+ url: ${ROOTFS_URL}
+ compression: ${ROOTFS_URL_COMP}
+ os: ${DEPLOY_OS}
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 30
+ definitions:
+ - from: inline
+ name: db410c-resize-rootfs
+ path: inline/db410c-resize-rootfs.yaml
+ repository:
+ metadata:
+ description: db410c resize rootfs image for test overlay
+ format: Lava-Test Test Definition 1.0
+ name: db410c-resize-rootfs
+ run:
+ steps:
+ - if [ -z \"${RESIZE_ROOTFS}\" ]; then echo "No resize request, skiping..." && exit 0; else echo "Resizing to $RESIZE_ROOTFS..."; fi
+ - simg2img ${LXC_ROOTFS_FILE} ${LXC_ROOTFS_FILE}.ext4
+ - e2fsck -y -f ${LXC_ROOTFS_FILE}.ext4
+ - resize2fs ${LXC_ROOTFS_FILE}.ext4 ${RESIZE_ROOTFS}
+ - img2simg ${LXC_ROOTFS_FILE}.ext4 ${LXC_ROOTFS_FILE}
+
+ - deploy:
+ timeout:
+ minutes: 40
+ to: fastboot
+ namespace: dragonboard410c
+ images:
+ partition:
+ url: lxc:///gpt_both0.bin
+ hyp:
+ url: lxc:///hyp.mbn
+ cdt:
+ url: lxc:///sbc_1.0_8016.bin
+ rpm:
+ url: lxc:///rpm.mbn
+ sbl1:
+ url: lxc:///sbl1.mbn
+ tz:
+ url: lxc:///tz.mbn
+ aboot:
+ url: lxc:///emmc_appsboot.mbn
+ boot:
+ url: lxc:///${LXC_BOOT_FILE}
+ rootfs:
+ url: lxc:///${LXC_ROOTFS_FILE}
+ apply-overlay: true
+ os: ${DEPLOY_OS}
+ protocols:
+ lava-lxc:
+ - action: fastboot-deploy
+ request: pre-power-command
+ timeout:
+ minutes: 2
+
+- boot:
+ namespace: dragonboard410c
+ auto_login:
+ login_prompt: 'login:'
+ username: 'root'
+ prompts:
+ - 'root@(.*):/#'
+ - ${BOOT_OS_PROMPT}
+ timeout:
+ minutes: 15
+ method: fastboot
diff --git a/lt-qcom/lava-job-definitions/dragonboard-410c/template-bt.yaml b/lt-qcom/lava-job-definitions/dragonboard-410c/template-bt.yaml
new file mode 100644
index 000000000..0b7160a58
--- /dev/null
+++ b/lt-qcom/lava-job-definitions/dragonboard-410c/template-bt.yaml
@@ -0,0 +1,26 @@
+- test:
+ namespace: dragonboard410c
+ name: qcomlt-bt
+ timeout:
+ minutes: 5
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/linux/hci-smoke/hci-smoke.yaml
+ name: linux-hci-smoke
+
+device_type: ${DEVICE_TYPE}
+job_name: lt-qcom-${OS_INFO}-bt-${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/lava-job-definitions/dragonboard-410c/template-bt.yaml
diff --git a/lt-qcom/lava-job-definitions/dragonboard-410c/template-ptest.yaml b/lt-qcom/lava-job-definitions/dragonboard-410c/template-ptest.yaml
new file mode 100644
index 000000000..3f09dc8ac
--- /dev/null
+++ b/lt-qcom/lava-job-definitions/dragonboard-410c/template-ptest.yaml
@@ -0,0 +1,26 @@
+- test:
+ namespace: dragonboard410c
+ name: qcomlt-ptest
+ timeout:
+ minutes: 90
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/linux/ptest/ptest.yaml
+ name: linux-ptest
+
+device_type: ${DEVICE_TYPE}
+job_name: lt-qcom-${OS_INFO}-ptest-${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/lava-job-definitions/dragonboard-410c/template-ptest.yaml
diff --git a/lt-qcom/lava-job-definitions/dragonboard-410c/template-wifi.yaml b/lt-qcom/lava-job-definitions/dragonboard-410c/template-wifi.yaml
new file mode 100644
index 000000000..f9dde48e1
--- /dev/null
+++ b/lt-qcom/lava-job-definitions/dragonboard-410c/template-wifi.yaml
@@ -0,0 +1,28 @@
+- test:
+ namespace: dragonboard410c
+ name: qcomlt-wifi
+ timeout:
+ minutes: 5
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/linux/wlan-smoke/wlan-smoke.yaml
+ name: linux-wlan-smoke
+
+device_type: ${DEVICE_TYPE}
+job_name: lt-qcom-${OS_INFO}-wifi-${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/lava-job-definitions/dragonboard-410c/template-wifi.yaml
+
+
diff --git a/lt-qcom/lava-job-definitions/dragonboard-410c/template.yaml b/lt-qcom/lava-job-definitions/dragonboard-410c/template.yaml
new file mode 100644
index 000000000..a18286fba
--- /dev/null
+++ b/lt-qcom/lava-job-definitions/dragonboard-410c/template.yaml
@@ -0,0 +1,85 @@
+# 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
+ 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
+ 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
+
+device_type: ${DEVICE_TYPE}
+job_name: lt-qcom-${OS_INFO}-${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/lava-job-definitions/dragonboard-410c/template.yaml