summaryrefslogtreecommitdiff
path: root/ubuntu/qemu-system-test.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'ubuntu/qemu-system-test.yaml')
-rw-r--r--ubuntu/qemu-system-test.yaml39
1 files changed, 39 insertions, 0 deletions
diff --git a/ubuntu/qemu-system-test.yaml b/ubuntu/qemu-system-test.yaml
new file mode 100644
index 0000000..f2afedd
--- /dev/null
+++ b/ubuntu/qemu-system-test.yaml
@@ -0,0 +1,39 @@
+metadata:
+ name: qemu-system-test
+ format: "Lava-Test-Shell Test Definition 1.0"
+ description: "Setup and run a test on QEMU System Image"
+ maintainer:
+ - alex.bennee@linaro.org
+ os:
+ - ubuntu
+ scope:
+ - functional
+ devices:
+ - kvm
+
+params:
+ # This is a combined image and initrd/rootfs that qemu can boot
+ IMAGE: http://people.linaro.org/~alex.bennee/images/aarch64-linux-buildroot.img
+ # List of tests to run
+ TESTS: boot
+ # The QEMU executable
+ QEMU_BIN: /usr/local/bin/qemu-system-aarch64
+ # The QEMU machine definitions
+ QEMU_MACHINE: virt
+ QEMU_ARGS: -cpu cortex-a57 -nographic -smp 1 -m 396
+ # The arguments passed to the kernel
+ KERNEL_ARGS: console=ttyAMA0
+
+install:
+ steps:
+ - cd /home
+ - wget -O image ${IMAGE}
+
+ deps:
+ - wget
+ - expect
+
+run:
+ steps:
+ - export QEMU_BIN QEMU_MACHINE QEMU_ARGS KERNEL_ARGS IMAGE
+ - ubuntu/scripts/qemu-system-tests.sh ${TESTS}