summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorKevin Hilman <khilman@baylibre.com>2017-06-19 23:43:05 +0000
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2017-06-29 11:08:32 +0000
commited8a31d27d5958fe6c8ce1dd0a0199011fab8577 (patch)
treeecbbcfd11b2db143a73456b442053348112e3a48 /templates
parent74d0ccd5d67a88c68dd967c95d08b220ee4741b5 (diff)
raspberrypi3-64: test: add LAVA env and job template
Change-Id: Iea65e4986f3ab7ea41bcbf98bc63be8f4a4e2eba Signed-off-by: Kevin Hilman <khilman@baylibre.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9949 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/machine/raspberrypi3-64/test/hwtest.short.environment10
-rw-r--r--templates/machine/raspberrypi3-64/test/testjob_short.yaml49
2 files changed, 59 insertions, 0 deletions
diff --git a/templates/machine/raspberrypi3-64/test/hwtest.short.environment b/templates/machine/raspberrypi3-64/test/hwtest.short.environment
new file mode 100644
index 000000000..9e2dcbd0f
--- /dev/null
+++ b/templates/machine/raspberrypi3-64/test/hwtest.short.environment
@@ -0,0 +1,10 @@
+DEVICE_TYPE=bcm2837-rpi-3-b
+DEVICE_NAME=raspberrypi3-64
+DEVICE_DTB=Image-bcm2837-rpi-3-b.dtb
+DEVICE_KERNEL=Image
+DEVICE_INITRAMFS=initramfs-netboot-image-raspberrypi3-64.ext4.gz.u-boot
+DEVICE_NBDROOT=agl-demo-platform-raspberrypi3-64.ext4.xz
+DEVICE_NBDROOT_COMPRESSION=xz
+DEVICE_BOOT_METHOD=u-boot
+DEVICE_BOOT_TYPE=booti
+#DEVICE_URL_PREFIX=https://download.automotivelinux.org/AGL
diff --git a/templates/machine/raspberrypi3-64/test/testjob_short.yaml b/templates/machine/raspberrypi3-64/test/testjob_short.yaml
new file mode 100644
index 000000000..2ff1ac995
--- /dev/null
+++ b/templates/machine/raspberrypi3-64/test/testjob_short.yaml
@@ -0,0 +1,49 @@
+# Your first LAVA JOB definition for a porter board
+device_type: @REPLACE_DEVICE_TYPE@
+job_name: AGL-short-smoke
+
+protocols:
+ lava-xnbd:
+ port: auto
+
+timeouts:
+ job:
+ minutes: 30
+ action:
+ minutes: 15
+ connection:
+ minutes: 5
+ bootloader-commands:
+ minutes: 4
+priority: medium
+visibility: public
+
+# ACTION_BLOCK
+actions:
+- deploy:
+ timeout:
+ minutes: 15
+ to: nbd
+ dtb:
+ url: '@REPLACE_URL_PREFIX@/@REPLACE_DTB@'
+ kernel:
+ url: '@REPLACE_URL_PREFIX@/@REPLACE_KERNEL@'
+ initrd:
+ url: '@REPLACE_URL_PREFIX@/@REPLACE_INITRAMFS@'
+ allow_modify: false
+ nbdroot:
+ url: '@REPLACE_URL_PREFIX@/@REPLACE_NBDROOT@'
+ compression: @REPLACE_NBDROOT_COMPRESSION@
+ os: debian
+ failure_retry: 2
+
+# BOOT_BLOCK
+- boot:
+ method: @REPLACE_BOOT_METHOD@
+ commands: nbd
+ type: @REPLACE_BOOT_TYPE@
+ prompts: ["root@@REPLACE_MACHINE@:~"]
+ auto_login:
+ login_prompt: "login:"
+ username: root
+