diff options
Diffstat (limited to 'lhg-oe-build')
-rwxr-xr-x | lhg-oe-build/builders.sh | 18 | ||||
-rw-r--r-- | lhg-oe-build/lava-job-definitions/hi6220-hikey/template-eme-clearkey.yaml | 153 | ||||
-rwxr-xr-x | lhg-oe-build/submit_for_testing.sh | 20 |
3 files changed, 184 insertions, 7 deletions
diff --git a/lhg-oe-build/builders.sh b/lhg-oe-build/builders.sh index c3e82ef6c5..46c1f1eb39 100755 --- a/lhg-oe-build/builders.sh +++ b/lhg-oe-build/builders.sh @@ -83,9 +83,8 @@ cat conf/{site,auto}.conf # if ${IMAGES} is not set or empty, set it to default if [ "x${IMAGES}" = "x" ]; then - [ "${DISTRO}" = "rpb" ] && IMAGES+=" rpb-desktop-image rpb-desktop-image-lava" - [ "${DISTRO}" = "rpb-wayland" ] && IMAGES+=" rpb-weston-image rpb-weston-image-lava" - [ "${MACHINE}" = "am57xx-evm" ] && IMAGES="rpb-console-image" + [ "${DISTRO}" = "rpb" ] && IMAGES="rpb-desktop-image" + [ "${DISTRO}" = "rpb-wayland" ] && IMAGES="rpb-weston-image" fi if [ "${MACHINE}" = "hikey-32" ] ; then @@ -145,10 +144,13 @@ rm -f ${WORKSPACE}/out ln -s ${DEPLOY_DIR_IMAGE} ${WORKSPACE}/out # Need different files for each machine -BOOT_IMG=$(find ${DEPLOY_DIR_IMAGE} -type f -name "boot-*-${MACHINE}-*-${BUILD_NUMBER}.img" | xargs -r basename) -ROOTFS_EXT4_IMG=$(find ${DEPLOY_DIR_IMAGE} -type f -name "rpb-console-image-lava-${MACHINE}-*-${BUILD_NUMBER}.rootfs.ext4.gz" | xargs -r basename) -ROOTFS_TARXZ_IMG=$(find ${DEPLOY_DIR_IMAGE} -type f -name "rpb-console-image-lava-${MACHINE}-*-${BUILD_NUMBER}.rootfs.tar.xz" | xargs -r basename) +BOOT_IMG=$(find ${DEPLOY_DIR_IMAGE} -type f -name "boot-*-${MACHINE}-*-${BUILD_NUMBER}.uefi.img" | xargs -r basename) +ROOTFS_IMG=$(find ${DEPLOY_DIR_IMAGE} -type f -name "rpb-westonchromium-image-${MACHINE}-*-${BUILD_NUMBER}.rootfs.img.gz" | xargs -r basename) +ROOTFS_EXT4_IMG=$(find ${DEPLOY_DIR_IMAGE} -type f -name "rpb-westonchromium-image-${MACHINE}-*-${BUILD_NUMBER}.rootfs.ext4.gz" | xargs -r basename) +ROOTFS_TARXZ_IMG=$(find ${DEPLOY_DIR_IMAGE} -type f -name "rpb-westonchromium-image-${MACHINE}-*-${BUILD_NUMBER}.rootfs.tar.xz" | xargs -r basename) KERNEL_IMG=$(find ${DEPLOY_DIR_IMAGE} -type f -name "uImage-*-${MACHINE}-*-${BUILD_NUMBER}.bin" | xargs -r basename) +PTABLE_IMG=$(find ${DEPLOY_DIR_IMAGE}/bootloader -type f -name "ptable-linux-8g.img" | xargs -r basename) +FIP_IMG=$(find ${DEPLOY_DIR_IMAGE}/bootloader -type f -name "fip.bin" | xargs -r basename) case "${MACHINE}" in am57xx-evm|juno) # FIXME: several dtb files case @@ -164,8 +166,10 @@ cat << EOF > ${WORKSPACE}/post_build_lava_parameters DEPLOY_DIR_IMAGE=${DEPLOY_DIR_IMAGE} BOOT_URL=${BASE_URL}${PUB_DEST}/${BOOT_IMG} ROOTFS_BUILD_URL=${BASE_URL}${PUB_DEST}/${ROOTFS_EXT4_IMG} -SYSTEM_URL=${BASE_URL}${PUB_DEST}/${ROOTFS_EXT4_IMG} +SYSTEM_URL=${BASE_URL}${PUB_DEST}/${ROOTFS_IMG} KERNEL_URL=${BASE_URL}${PUB_DEST}/${KERNEL_IMG} DTB_URL=${BASE_URL}${PUB_DEST}/${DTB_IMG} NFSROOTFS_URL=${BASE_URL}${PUB_DEST}/${ROOTFS_TARXZ_IMG} +PTABLE_URL=${BASE_URL}${PUB_DEST}/bootloader/${PTABLE_IMG} +FIP_URL=${BASE_URL}${PUB_DEST}/bootloader/${FIP_IMG} EOF diff --git a/lhg-oe-build/lava-job-definitions/hi6220-hikey/template-eme-clearkey.yaml b/lhg-oe-build/lava-job-definitions/hi6220-hikey/template-eme-clearkey.yaml new file mode 100644 index 0000000000..7f1602e011 --- /dev/null +++ b/lhg-oe-build/lava-job-definitions/hi6220-hikey/template-eme-clearkey.yaml @@ -0,0 +1,153 @@ +device_type: hi6220-hikey +tags: + - static-ip + - 4k-hdmi-dongle +job_name: lhg-oe-eme-clearkey-test-${MANIFEST_BRANCH}-${BUILD_NUMBER} +timeouts: + job: + minutes: 20 + action: + minutes: 20 + connection: + minutes: 5 +priority: high +visibility: public + +metadata: + manifest branch: ${MANIFEST_BRANCH} + build-url: ${BUILD_URL} + build-location: ${BASE_URL}/${PUB_DEST} + +protocols: + lava-lxc: + name: lxc-hikey-test + distribution: ubuntu + release: xenial + arch: amd64 + verbose: true + +actions: +- deploy: + namespace: tlxc + timeout: + minutes: 20 + to: lxc + packages: + - python-opencv + - python-pip + - libffi-dev + - libssl-dev + - python-lxml + - git + os: debian + +- boot: + namespace: tlxc + prompts: + - "root@(.*):/#" + - "hikey:/" + timeout: + minutes: 5 + method: lxc + +- test: + namespace: tlxc + timeout: + minutes: 10 + definitions: + - from: inline + name: install-google-fastboot + path: inline/install-google-fastboot.yaml + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: install-fastboot + description: "Install fastboot provided by google" + run: + steps: + - wget https://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip + - unzip platform-tools_r26.0.0-linux.zip + - ln -s `pwd`/platform-tools/fastboot /usr/bin/fastboot + - ln -s `pwd`/platform-tools/adb /usr/bin/adb + - fastboot --version + +- deploy: + timeout: + minutes: 20 + to: fastboot + namespace: hikey-oe + connection: lxc + images: + ptable: + url: ${PTABLE_URL} + reboot: hard-reset + fastboot: + url: ${FIP_URL} + reboot: hard-reset + boot: + url: ${BOOT_URL} + reboot: hard-reset + system: + url: ${SYSTEM_URL} + compression: gz + apply-overlay: true + os: oe + protocols: + lava-lxc: + - action: fastboot-deploy + request: pre-power-command + timeout: + minutes: 2 + +- boot: + namespace: hikey-oe + auto_login: + login_prompt: "login:" + username: root + prompts: + - "root@hikey:~#" + timeout: + minutes: 5 + method: uefi-menu + commands: fastboot + protocols: + lava-lxc: + # other action could be boot-fastboot + - action: uefi-commands + request: pre-os-command + timeout: + minutes: 5 + +- test: + namespace: hikey-oe + timeout: + minutes: 20 + definitions: + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: insmod-vmouse + description: "Load virtual mouser driver" + run: + steps: + - lava-test-case ps --shell ps aux + - lava-test-case hikey-dmesg --shell dmesg + - lava-test-case weston-status --shell test -f /run/user/1000/weston.log + - lava-test-case scp-vmouse --shell wget -O /home/root/vmouse.ko http://people.linaro.org/~arthur.she/images/hikey/oe/rpb-wayland/vmouse.ko + - lava-test-case insmod-vmouse --shell insmod /home/root/vmouse.ko + name: insmod-vmouse + path: inline/insmod-vmouse.yaml + +- test: + namespace: tlxc + timeout: + minutes: 20 + definitions: + - repository: https://git.linaro.org/people/arthur.she/test-definitions.git + from: git + path: openembedded/robotframework-lxc.yaml + name: robotframework-lxc + params: + RF_TEST_CASE: "eme-test/eme-clearkey-test.robot" + RF_TEST_CASES_REPO: "https://git.linaro.org/people/arthur.she/lhg-robotframework-test.git" diff --git a/lhg-oe-build/submit_for_testing.sh b/lhg-oe-build/submit_for_testing.sh new file mode 100755 index 0000000000..efd0bb3749 --- /dev/null +++ b/lhg-oe-build/submit_for_testing.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +set -ex + +QA_BUILD_VERSION=${MANIFEST_COMMIT:0:12} + +rm -rf configs +git clone --depth 1 http://git.linaro.org/ci/job/configs.git + +[ -z "${DEVICE_TYPE}" ] || \ +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 lhg \ + --qa-server-project ${QA_SERVER_PROJECT} \ + --git-commit ${QA_BUILD_VERSION} \ + --template-path configs/lhg-oe-build/lava-job-definitions \ + --template-names template-eme-clearkey.yaml |