aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaresh Kamboju <naresh.kamboju@linaro.org>2018-01-19 14:23:12 +0530
committerNaresh Kamboju <naresh.kamboju@linaro.org>2018-02-14 16:48:26 +0530
commit81fb7f318062e2e93f52f273c62bb75c71c3c17e (patch)
treeb08dfa4ab6b7b9b707f73a2a94e09076461ba910
parentd6df11ac5ebc9f71658adae5c28f1290cd5f2f3f (diff)
openembedded-lkft: adding qemu amd64 and arm64 test job templates
Adding qemu amd64 and arm64 job templates for openembedded LKFT builds. These jobs should run on qemu device and runs qemu-system-x86_64 and qemu-system-aarch64 instance. Change-Id: Ied44472ba36e90c0c78b6b3d27ebad631d5b26b1 Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
-rwxr-xr-xopenembedded-lkft/builders.sh2
-rw-r--r--openembedded-lkft/lava-job-definitions/devices/qemu_arm6447
-rw-r--r--openembedded-lkft/lava-job-definitions/devices/qemu_x86_6436
-rwxr-xr-xopenembedded-lkft/test_submit_for_testing.sh3
4 files changed, 88 insertions, 0 deletions
diff --git a/openembedded-lkft/builders.sh b/openembedded-lkft/builders.sh
index 98c51ba708..401d288112 100755
--- a/openembedded-lkft/builders.sh
+++ b/openembedded-lkft/builders.sh
@@ -286,6 +286,7 @@ BOOT_IMG=$(find ${DEPLOY_DIR_IMAGE} -type f -name "boot-*-${MACHINE}-*-${BUILD_N
ROOTFS_IMG=$(find ${DEPLOY_DIR_IMAGE} -type f -name "rpb-console-image-${MACHINE}-*-${BUILD_NUMBER}.rootfs.img.gz" | xargs -r basename)
ROOTFS_TARXZ_IMG=$(find ${DEPLOY_DIR_IMAGE} -type f -name "rpb-console-image-${MACHINE}-*-${BUILD_NUMBER}.rootfs.tar.xz" | xargs -r basename)
KERNEL_IMG=$(find ${DEPLOY_DIR_IMAGE} -type f -name "*Image-*-${MACHINE}-*-${BUILD_NUMBER}.bin" | xargs -r basename)
+HDD_IMG=$(find ${DEPLOY_DIR_IMAGE} -type f -name "rpb-console-image-${MACHINE}-*-${BUILD_NUMBER}.hddimg" | xargs -r basename)
case "${MACHINE}" in
juno)
DTB_IMG=$(find ${DEPLOY_DIR_IMAGE} -type f -name "*Image-*-${MACHINE}-r2-*-${BUILD_NUMBER}.dtb" | xargs -r basename)
@@ -324,6 +325,7 @@ KERNEL_URL=${BASE_URL}/${PUB_DEST}/${KERNEL_IMG}
DTB_URL=${BASE_URL}/${PUB_DEST}/${DTB_IMG}
RECOVERY_IMAGE_URL=${BASE_URL}/${PUB_DEST}/juno-oe-uboot.zip
NFSROOTFS_URL=${BASE_URL}/${PUB_DEST}/${ROOTFS_TARXZ_IMG}
+HDD_URL=${BASE_URL}/${PUB_DEST}/${HDD_IMG}
KERNEL_COMMIT=${SRCREV_kernel}
KERNEL_CONFIG_URL=${BASE_URL}/${PUB_DEST}/config
KERNEL_DEFCONFIG_URL=${BASE_URL}/${PUB_DEST}/defconfig
diff --git a/openembedded-lkft/lava-job-definitions/devices/qemu_arm64 b/openembedded-lkft/lava-job-definitions/devices/qemu_arm64
new file mode 100644
index 0000000000..97b7a49422
--- /dev/null
+++ b/openembedded-lkft/lava-job-definitions/devices/qemu_arm64
@@ -0,0 +1,47 @@
+{% extends "lkft-nfs.jinja2" %}
+
+{% block global_settings %}
+context:
+ arch: arm64
+ netdevice: tap
+ machine: virt
+ cpu: cortex-a57
+ guestfs_interface: virtio
+{{ super() }}
+{% endblock global_settings %}
+
+{% block device_type %}qemu{% endblock %}
+
+{% block deploy_target %}
+- deploy:
+ timeout:
+ minutes: 15
+ to: tmpfs
+ images:
+ rootfs:
+ image_arg: -drive format=raw,file={rootfs} -m 4096 -smp 4 -nographic
+ url: {{NFSROOTFS_URL}}
+ compression: gz
+ apply-overlay: true
+ sparse: false
+ kernel:
+ image_arg: -kernel {kernel} --append "console=ttyAMA0 root=/dev/vda rw"
+ url: {{KERNEL_URL}}
+ type: image
+ os: oe
+{% endblock deploy_target %}
+
+{% block boot_target %}
+- boot:
+ timeout:
+ minutes: 10
+ method: qemu
+ media: tmpfs
+ auto_login:
+ login_prompt: 'login:'
+ username: root
+ login_commands:
+ - su
+ prompts:
+ - 'root@hikey:~#'
+{% endblock boot_target %}
diff --git a/openembedded-lkft/lava-job-definitions/devices/qemu_x86_64 b/openembedded-lkft/lava-job-definitions/devices/qemu_x86_64
new file mode 100644
index 0000000000..6ca9040e68
--- /dev/null
+++ b/openembedded-lkft/lava-job-definitions/devices/qemu_x86_64
@@ -0,0 +1,36 @@
+{% extends "lkft-nfs.jinja2" %}
+
+{% block global_settings %}
+context:
+ arch: amd64
+{{ super() }}
+{% endblock global_settings %}
+
+{% block device_type %}qemu{% endblock %}
+
+{% block deploy_target %}
+- deploy:
+ timeout:
+ minutes: 15
+ to: tmpfs
+ images:
+ rootfs:
+ image_arg: -drive format=raw,file={rootfs} -m 4096 -smp 4 -nographic
+ url: {{HDD_URL}}
+ os: oe
+{% endblock deploy_target %}
+
+{% block boot_target %}
+- boot:
+ timeout:
+ minutes: 10
+ method: qemu
+ media: tmpfs
+ auto_login:
+ login_prompt: 'login:'
+ username: root
+ login_commands:
+ - su
+ prompts:
+ - 'root@intel-core2-32:'
+{% endblock boot_target %}
diff --git a/openembedded-lkft/test_submit_for_testing.sh b/openembedded-lkft/test_submit_for_testing.sh
index 7a05df175a..f0aa07c128 100755
--- a/openembedded-lkft/test_submit_for_testing.sh
+++ b/openembedded-lkft/test_submit_for_testing.sh
@@ -1,5 +1,7 @@
#!/bin/bash
+set -e
+
virtualenv .venv
source .venv/bin/activate
pip install Jinja2 requests urllib3 ruamel.yaml
@@ -8,6 +10,7 @@ export BASE_URL=http://snapshots.linaro.org
export PUB_DEST=openembedded/lkft/morty/hikey/rpb/linux-mainline/346
export BOOT_URL=${BASE_URL}/${PUB_DEST}/boot-0.0+AUTOINC+06e4def583-fb1158a365-r0-hikey-20171012090440-346.uefi.img
export DTB_URL=${BASE_URL}/${PUB_DEST}/junor2.dtb
+export HDD_URL=${BASE_URL}/${PUB_DEST}/rpb-console-image-intel-core2-32-20180212181859-651.hddimg
export BUILD_ID=346
export BUILD_NUMBER=346
export BUILD_URL="https://ci.linaro.org/job/openembedded-lkft-linux-mainline/DISTRO=rpb,MACHINE=hikey,label=docker-stretch-amd64/346/"