summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2017-07-24 14:31:08 +0100
committerAlex Bennée <alex.bennee@linaro.org>2017-07-24 14:31:08 +0100
commitf893242a670e57721be4bd4316590633ecf8a36e (patch)
tree290fc011ad8083deb5493e6736cbe6d77980913e
parentabd68b9288ddc1b3d1279f5eaacbc124f6a9b8cd (diff)
example: kvm-virt-hacking-session
-rw-r--r--examples/kvm-virt-hacking-session.yaml61
1 files changed, 61 insertions, 0 deletions
diff --git a/examples/kvm-virt-hacking-session.yaml b/examples/kvm-virt-hacking-session.yaml
new file mode 100644
index 0000000..2a7f353
--- /dev/null
+++ b/examples/kvm-virt-hacking-session.yaml
@@ -0,0 +1,61 @@
+device_type: qemu
+job_name: KVM VIRT Hacking Session
+
+timeouts:
+ job:
+ minutes: 15
+ action:
+ minutes: 5
+ connection:
+ minutes: 2
+priority: medium
+visibility: public
+
+# context allows specific values to be overridden or included
+context:
+ # tell the qemu template which architecture is being tested
+ # the template uses that to ensure that qemu-system-x86_64 is executed.
+ arch: amd64
+ netdevice: tap
+
+metadata:
+ docs-source: Hacking Session
+ docs-filename: kvm-virt-hacking-session.yaml
+
+# ACTION_BLOCK
+actions:
+- deploy:
+ timeout:
+ minutes: 5
+ to: tmpfs
+ images:
+ rootfs:
+ image_arg: -drive format=raw,file={rootfs}
+ url: https://images.validation.linaro.org/kvm/standard/stretch-2.img.gz
+ compression: gz
+ os: debian
+
+# BOOT_BLOCK
+- boot:
+ timeout:
+ minutes: 2
+ method: qemu
+ media: tmpfs
+ prompts: ["root@debian:"]
+ auto_login:
+ login_prompt: "login:"
+ username: root
+
+- test:
+ failure_retry: 3
+ name: kvm-basic-hacking-session
+ timeout:
+ minutes: 5
+ definitions:
+ - repository: https://git.linaro.org/lava-team/hacking-session.git
+ from: git
+ path: hacking-session-debian.yaml
+ name: hacking
+ parameters:
+ "IRC_USER": "ajb-linaro"
+ "PUB_KEY": `(format "\"%s\"" (s-trim (shell-command-to-string "cat ~/.ssh/id_rsa.pub")))`