diff options
author | Luis Machado <luis.machado@linaro.org> | 2019-02-20 11:36:24 -0300 |
---|---|---|
committer | Anibal Limon <anibal.limon@linaro.org> | 2019-02-20 19:18:21 +0000 |
commit | 82314917e03022aac7a028fbf6b48ab930e2563d (patch) | |
tree | e7b46ada8f9f83b5871f0db6cf1ea3152ad73e94 /lt-qcom-linux-test | |
parent | c849afc96fc00a06d0b3e2345d39cf58fedf98ab (diff) |
Add qcs404-evb-1000 test job definitions and enable testing
Setup testing for qcs404-evb-1000 via LAVA (qcs404-evb-1k-01).
Create new template files for qcs404-evb-1000.
* lt-qcom-linux-test/lava-job-definitions/qcs404-evb-1000/base_template-functional.yaml: New file.
* lt-qcom-linux-test/lava-job-definitions/qcs404-evb-1000/template-bootrr.yaml: New file.
* lt-qcom-linux-test/lava-job-definitions/qcs404-evb-1000/template-functional.yaml: New symlink.
* lt-qcom-linux-test/submit_for_testing.sh: Enable testing for qcs404-evb-1000.
Change-Id: Iad8e269a4c830f75b3a9856638fabf0a7ccf50d3
Signed-off-by: Luis Machado <luis.machado@linaro.org>
Diffstat (limited to 'lt-qcom-linux-test')
4 files changed, 305 insertions, 1 deletions
diff --git a/lt-qcom-linux-test/lava-job-definitions/qcs404-evb-1000/base_template-functional.yaml b/lt-qcom-linux-test/lava-job-definitions/qcs404-evb-1000/base_template-functional.yaml new file mode 100644 index 00000000..bd033302 --- /dev/null +++ b/lt-qcom-linux-test/lava-job-definitions/qcs404-evb-1000/base_template-functional.yaml @@ -0,0 +1,103 @@ +protocols: + lava-lxc: + name: lxc-${LAVA_DEVICE_TYPE}-test + template: debian + distribution: debian + release: stretch + +actions: +- deploy: + namespace: tlxc + timeout: + minutes: 5 + to: lxc + packages: + - wget + - unzip + - img2simg + - simg2img + - e2fsprogs + - gzip + - fastboot + os: debian + +- boot: + namespace: tlxc + prompts: + - 'root@(.*):/#' + - 'root@linaro-developer:~#' + timeout: + minutes: 5 + method: lxc + +- deploy: + timeout: + minutes: 40 + to: download + namespace: ${LAVA_DEVICE_TYPE} + images: + boot: + url: ${BOOT_ROOTFS_URL} + compression: ${BOOT_ROOTFS_URL_COMP} + userdata: + url: ${ROOTFS_URL} + compression: ${ROOTFS_URL_COMP} + os: oe + +- test: + namespace: tlxc + timeout: + minutes: 30 + definitions: + - from: inline + name: resize-rootfs + path: inline/resize-rootfs.yaml + repository: + metadata: + description: resize rootfs image for test overlay + format: Lava-Test Test Definition 1.0 + name: resize-rootfs + run: + steps: + - if [ -z "${RESIZE_ROOTFS}" ] + - then + - echo "resize_rootfs:" "skip" + - else + - cd /lava-lxc + - overlay_file=/lava-lxc/overlays/${LAVA_DEVICE_TYPE}/overlay.tar.gz + - overlay_size=$$(gzip -l $$overlay_file | tail -1 | awk '{print $$2}') + - overlay_size=$$(( $$overlay_size / 1024 )) + - simg2img ${LXC_ROOTFS_FILE} ${LXC_ROOTFS_FILE}.ext4 + - fsck_code=$$(e2fsck -y -f ${LXC_ROOTFS_FILE}.ext4) + - block_count=$$(dumpe2fs -h ${LXC_ROOTFS_FILE}.ext4 | grep "Block count" | awk '{print $$3}') + - block_size=$$(dumpe2fs -h ${LXC_ROOTFS_FILE}.ext4 | grep "Block size" | awk '{print $$3}') + - current_size=$$(( $$block_size * $$block_count / 1024 )) + - final_size=$$(( $$current_size + $$overlay_size + 32768 )) + - resize2fs ${LXC_ROOTFS_FILE}.ext4 "$$final_size"K + - img2simg ${LXC_ROOTFS_FILE}.ext4 ${LXC_ROOTFS_FILE} + - echo "resize_rootfs:" "pass" + - fi + +- deploy: + timeout: + minutes: 40 + to: fastboot + namespace: ${LAVA_DEVICE_TYPE} + images: + boot: + url: lxc:///${LXC_BOOT_ROOTFS_FILE} + userdata: + url: lxc:///${LXC_ROOTFS_FILE} + apply-overlay: true + os: oe + +- boot: + namespace: ${LAVA_DEVICE_TYPE} + auto_login: + login_prompt: 'login:' + username: 'root' + prompts: + - 'root@(.*):~#' + timeout: + minutes: 15 + method: fastboot diff --git a/lt-qcom-linux-test/lava-job-definitions/qcs404-evb-1000/template-bootrr.yaml b/lt-qcom-linux-test/lava-job-definitions/qcs404-evb-1000/template-bootrr.yaml new file mode 100644 index 00000000..88d6c5cf --- /dev/null +++ b/lt-qcom-linux-test/lava-job-definitions/qcs404-evb-1000/template-bootrr.yaml @@ -0,0 +1,188 @@ +device_type: ${LAVA_DEVICE_TYPE} +job_name: lt-qcom-${QA_SERVER_PROJECT}-bootrr-${BUILD_NUMBER} +timeouts: + job: + minutes: 90 + action: + minutes: 15 + connection: + minutes: 2 +priority: high +visibility: public + +metadata: + source: https://git.linaro.org/ci/job/configs.git + path: lt-qcom-linux-test/lava-job-definitions/${LAVA_DEVICE_TYPE}/template-bootrr.yaml + image.type: 'kernel-ci' + image.url: "${BOOT_URL}" + kernel.tree: "${KERNEL_TREE}" + kernel.version: "${KERNEL_VERSION}" + kernel.endian: 'little' + kernel.defconfig: 'defconfig' + kernel.defconfig_base: 'defconfig' + kernel.arch_defconfig: 'arm64_defconfig' + platform.dtb: "${KERNEL_DT}" + platform.dtb_short: "${KERNEL_DT}" + platform.fastboot: true + platform.name: "${KERNEL_CI_PLATFORM}" + platform.mach: "${KERNEL_CI_MACH}" + test.plan: 'qcom-bootrr' + git repo: "${KERNEL_REPO}" + git branch: "${KERNEL_BRANCH}" + git commit: "${KERNEL_COMMIT}" + git describe: "${KERNEL_VERSION}" + device.type: "${KERNEL_CI_PLATFORM}" + job.arch: 'arm64' + job.name: lt-qcom-${QA_SERVER_PROJECT}-bootrr-${BUILD_NUMBER} + job.kernel_url: "${KERNEL_IMAGE_URL}" + job.kernel_image: "${KERNEL_IMAGE}" + job.modules_url: "${KERNEL_MODULES_URL}" + job.initrd_url: "${RAMDISK_URL}" + job.nfsrootfs_url: '' + job.dtb_url: "${KERNEL_DT_URL}" + +notify: + criteria: + status: finished + callback: + url: https://api.kernelci.org/callback/lava/test?lab_name=lab-qcom&status={STATUS}&status_string={STATUS_STRING} + method: POST + dataset: all + token: kernelci-lab-qcom-callback + content-type: json + +protocols: + lava-lxc: + name: lxc-${LAVA_DEVICE_TYPE}-test + template: debian + distribution: debian + release: stretch + +actions: +- deploy: + namespace: tlxc + timeout: + minutes: 5 + to: lxc + packages: + - wget + - unzip + - abootimg + - cpio + - gzip + - git + - mktemp + - fastboot + os: debian + +- boot: + namespace: tlxc + prompts: + - 'root@(.*):/#' + - 'root@linaro-developer:~#' + timeout: + minutes: 5 + method: lxc + +- deploy: + timeout: + minutes: 40 + to: download + namespace: ${LAVA_DEVICE_TYPE} + images: + boot: + url: ${BOOT_URL} + compression: ${BOOT_URL_COMP} + apply-overlay: true + os: oe + +- test: + namespace: tlxc + timeout: + minutes: 30 + definitions: + - from: inline + name: ${LAVA_DEVICE_TYPE}-apply-test-overlay + path: inline/${LAVA_DEVICE_TYPE}-apply-test-overlay.yaml + repository: + metadata: + description: ${LAVA_DEVICE_TYPE} apply test overlay + format: Lava-Test Test Definition 1.0 + name: ${LAVA_DEVICE_TYPE}-apply-test-overlay + run: + steps: + - overlay_file=/lava-lxc/overlays/${LAVA_DEVICE_TYPE}/overlay.tar.gz + - if [ -f $$overlay_file ] + - then + - configs_dir=$$(mktemp -d /tmp/configs.XXXX) + - git clone --depth 1 http://git.linaro.org/ci/job/configs.git $$configs_dir + - $$configs_dir/lt-qcom-linux-test/copy_test_overlay.sh /lava-lxc/${LXC_BOOT_FILE} $$overlay_file + - echo "apply_test_overlay:" "pass" + - else + - echo "apply_test_overlay:" "skip" + - fi + +- deploy: + timeout: + minutes: 40 + to: fastboot + namespace: ${LAVA_DEVICE_TYPE} + images: + boot: + url: lxc:///${LXC_BOOT_FILE} + os: oe + +- boot: + namespace: ${LAVA_DEVICE_TYPE} + prompts: + - 'linaro-test .*#' + timeout: + minutes: 15 + method: fastboot + +- test: + namespace: ${LAVA_DEVICE_TYPE} + name: qcomlt-${QA_SERVER_PROJECT}-smoke + timeout: + minutes: 5 + definitions: + - from: inline + name: qcomlt-${QA_SERVER_PROJECT}-smoke + path: inline/qcomlt-${QA_SERVER_PROJECT}-smoke.yaml + repository: + metadata: + description: QCOM LT linux integration smoke + format: Lava-Test Test Definition 1.0 + name: qcomlt-${QA_SERVER_PROJECT}-smoke + run: + steps: + - uname -a + - df + - free + - ls -l /dev + - ls -l /sys + - ls -l /proc + - echo "linux_integration_smoke:" "pass" + +- test: + namespace: ${LAVA_DEVICE_TYPE} + name: qcomlt-${QA_SERVER_PROJECT}-bootrr + timeout: + minutes: 5 + definitions: + - from: inline + name: qcomlt-${QA_SERVER_PROJECT}-bootrr + path: inline/qcomlt-${QA_SERVER_PROJECT}-bootrr.yaml + repository: + metadata: + description: QCOM LT linux integration bootrr + format: Lava-Test Test Definition 1.0 + name: qcomlt-${QA_SERVER_PROJECT}-bootrr + run: + steps: + - for TEST in $$(tr "\0" "\n" < /proc/device-tree/compatible); do + - if [ -x "/usr/bin/$${TEST}" ]; then + - /usr/bin/$${TEST} + - fi + - done + - echo ~~~~~~~~~~~~~~~~~~~~~ diff --git a/lt-qcom-linux-test/lava-job-definitions/qcs404-evb-1000/template-functional.yaml b/lt-qcom-linux-test/lava-job-definitions/qcs404-evb-1000/template-functional.yaml new file mode 120000 index 00000000..bf272dc6 --- /dev/null +++ b/lt-qcom-linux-test/lava-job-definitions/qcs404-evb-1000/template-functional.yaml @@ -0,0 +1 @@ +../boards/template-functional.yaml
\ No newline at end of file diff --git a/lt-qcom-linux-test/submit_for_testing.sh b/lt-qcom-linux-test/submit_for_testing.sh index f0357be3..826e348d 100755 --- a/lt-qcom-linux-test/submit_for_testing.sh +++ b/lt-qcom-linux-test/submit_for_testing.sh @@ -20,7 +20,7 @@ export RESIZE_ROOTFS=True SEND_TESTJOB=false case "${MACHINE}" in - apq8016-sbc|apq8096-db820c|sdm845-mtp) + apq8016-sbc|apq8096-db820c|sdm845-mtp|qcs404-evb-1000) SEND_TESTJOB=true if [ ${MACHINE} = "apq8016-sbc" ]; then @@ -56,6 +56,18 @@ case "${MACHINE}" in if [ ${QA_SERVER_PROJECT} = "linux-master" ]; then SEND_TESTJOB=false fi + elif [ ${MACHINE} = "qcs404-evb-1000" ]; then + export LAVA_DEVICE_TYPE="qcs404-evb-1k" + export INSTALL_FASTBOOT= + + export PM_QA_TESTS="cpufreq cpuidle cpuhotplug cputopology" + export WLAN_DEVICE="wlan0" + export WLAN_TIME_DELAY="0s" + export ETH_DEVICE="eth0" + + if [ ${QA_SERVER_PROJECT} = "linux-master" ]; then + SEND_TESTJOB=false + fi fi export SMOKE_TESTS="pwd, uname -a, ip a, vmstat, lsblk" ;; |