aboutsummaryrefslogtreecommitdiff
path: root/linaro-edk2
diff options
context:
space:
mode:
authorRoy Franz <roy.franz@linaro.org>2015-05-15 10:15:01 -0700
committerFathi Boudra <fathi.boudra@linaro.org>2015-05-15 20:25:16 +0300
commitb09ab55899dbcf3263e173d55c24850f3aa8ed2b (patch)
tree3da5df1084284aacb16ec63d4c03256ddff8b145 /linaro-edk2
parent4bc1cde8156af0b7b36f320d9dc7f19b4b2b014b (diff)
linaro-edk2: add EDK2 QEMU ISCSI test to release build
Add the ISCSI test that is working on the linaro-edk2-prep job to the release build as well. Change-Id: I96723d2fb4eeaa23a78e16a7d6b02a045bf46507 Signed-off-by: Roy Franz <roy.franz@linaro.org>
Diffstat (limited to 'linaro-edk2')
-rw-r--r--linaro-edk2/lava-job-definitions/kvm/template-qemu-iscsi-in-kvm.json55
-rw-r--r--linaro-edk2/lava-job-definitions/qemu-aarch64/template.json65
2 files changed, 120 insertions, 0 deletions
diff --git a/linaro-edk2/lava-job-definitions/kvm/template-qemu-iscsi-in-kvm.json b/linaro-edk2/lava-job-definitions/kvm/template-qemu-iscsi-in-kvm.json
new file mode 100644
index 0000000000..e4a7cb3ee7
--- /dev/null
+++ b/linaro-edk2/lava-job-definitions/kvm/template-qemu-iscsi-in-kvm.json
@@ -0,0 +1,55 @@
+{
+ "actions": [
+ {
+ "command": "deploy_linaro_image",
+ "parameters": {
+ "image": "https://ci.linaro.org/userContent/roy-wheezy-4g.img.gz"
+ },
+ "metadata": {
+ "build id": "${BUILD_NUMBER}",
+ "git URL": "${GIT_URL}",
+ "git branch": "${GIT_BRANCH}",
+ "git commit": "${GIT_COMMIT}",
+ "template": "qemu-iscsi-in-kvm"
+ }
+ },
+ {
+ "command": "lava_test_shell",
+ "parameters": {
+ "testdef_repos": [{
+ "git-repo": "http://git.linaro.org/qa/test-definitions.git",
+ "parameters": {
+ "EDK2_BIN": "${QEMU_EFI_URL}",
+ "QEMU_ARGS": "-machine virt -cpu cortex-a57 -machine type=virt -pflash /home/flash0.img -pflash /home/flash1.img -drive file=/root/iscsi-disk-image.bin,if=none,id=blk -device virtio-blk-device,drive=blk -nographic -smp 1 -m 256",
+ "TEST_NAME": "local-disk"
+ },
+ "testdef": "ubuntu/qemu-edk2-boot.yaml"
+ }],
+ "timeout": 18000
+ }
+ },
+ {
+ "command": "lava_test_shell",
+ "parameters": {
+ "testdef_repos": [{
+ "git-repo": "http://git.linaro.org/qa/test-definitions.git",
+ "parameters": {
+ "EDK2_BIN": "${QEMU_EFI_URL}"
+ },
+ "testdef": "ubuntu/qemu-edk2-boot.yaml"
+ }],
+ "timeout": 18000
+ }
+ },
+ {
+ "command": "submit_results",
+ "parameters": {
+ "server": "http://${LAVA_SERVER}",
+ "stream": "${BUNDLE_STREAM_NAME}"
+ }
+ }
+ ],
+ "device_type": "${DEVICE_TYPE}",
+ "job_name": "${BUILD_URL}",
+ "timeout": 1800
+}
diff --git a/linaro-edk2/lava-job-definitions/qemu-aarch64/template.json b/linaro-edk2/lava-job-definitions/qemu-aarch64/template.json
new file mode 100644
index 0000000000..7c29d3a05e
--- /dev/null
+++ b/linaro-edk2/lava-job-definitions/qemu-aarch64/template.json
@@ -0,0 +1,65 @@
+{
+ "actions": [
+ {
+ "command": "deploy_linaro_kernel",
+ "parameters": {
+ "bootloadertype": "uefi",
+ "firmware": "${QEMU_EFI_URL}",
+ "kernel": "${KERNEL_URL}",
+ "rootfs": "${IMAGE_URL}"
+ },
+ "metadata": {
+ "build id": "${BUILD_NUMBER}",
+ "git URL": "${GIT_URL}",
+ "git branch": "${GIT_BRANCH}",
+ "git commit": "${GIT_COMMIT}",
+ "template": "qemu-aarch64-uefi"
+ }
+ },
+ {
+ "command": "boot_linaro_image",
+ "parameters": {
+ "boot_cmds": [
+ "sendline 3",
+ "expect Choice:",
+ "sendline 1",
+ "expect Select the Boot Device:",
+ "sendline 1",
+ "expect File path of the EFI Application or the kernel:",
+ "sendline Image",
+ "expect Is an EFI Application? [y/n]",
+ "sendline y",
+ "expect Is your application an OS loader? [y/n]",
+ "sendline n",
+ "expect Arguments to pass to the EFI Application:",
+ "sendline debug uefi_debug ignore_loglevel rootwait root=/dev/vda2 rootfstype=ext4 rw console=ttyAMA0 earlycon uefi_debug acpi=force",
+ "expect Description for this new Entry:",
+ "sendline LAVA",
+ "expect Choice:",
+ "sendline 7",
+ "expect Start:",
+ "sendline 2"
+ ]
+ }
+ },
+ {
+ "command": "lava_command_run",
+ "parameters": {
+ "commands": [
+ "dmesg|grep 'rtc-efi rtc-efi: setting system clock to'"
+ ],
+ "timeout": 900
+ }
+ },
+ {
+ "command": "submit_results",
+ "parameters": {
+ "server": "http://${LAVA_SERVER}",
+ "stream": "${BUNDLE_STREAM_NAME}"
+ }
+ }
+ ],
+ "device_type": "${DEVICE_TYPE}",
+ "job_name": "${BUILD_URL}",
+ "timeout": 1800
+}