Enable test-run on porterboard 35/8635/6
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Fri, 3 Mar 2017 21:08:59 +0000 (22:08 +0100)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Sun, 30 Apr 2017 21:19:04 +0000 (21:19 +0000)
This adds the necessary templates to run the CI boot tests also on the
Renesas gen2 'porter'.

Change-Id: I2fee98d3acde704fc0762898c4785c897b9eaaf8
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/8635
Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Stéphane Desneux <stephane.desneux@iot.bzh>
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>

templates/machine/porter-nogfx/test/hwtest.enable [new file with mode: 0644]
templates/machine/porter-nogfx/test/hwtest.short.enable [new file with mode: 0644]
templates/machine/porter-nogfx/test/hwtest.short.environment [new file with mode: 0644]
templates/machine/porter-nogfx/test/testjob_short.yaml [new file with mode: 0644]

diff --git a/templates/machine/porter-nogfx/test/hwtest.enable b/templates/machine/porter-nogfx/test/hwtest.enable
new file mode 100644 (file)
index 0000000..d00491f
--- /dev/null
@@ -0,0 +1 @@
+1
diff --git a/templates/machine/porter-nogfx/test/hwtest.short.enable b/templates/machine/porter-nogfx/test/hwtest.short.enable
new file mode 100644 (file)
index 0000000..d00491f
--- /dev/null
@@ -0,0 +1 @@
+1
diff --git a/templates/machine/porter-nogfx/test/hwtest.short.environment b/templates/machine/porter-nogfx/test/hwtest.short.environment
new file mode 100644 (file)
index 0000000..6cb0b9a
--- /dev/null
@@ -0,0 +1,11 @@
+DEVICE_TYPE=renesas-porter-uboot
+DEVICE_NAME=porter
+DEVICE_DTB=uImage-r8a7791-porter.dtb
+DEVICE_KERNEL=uImage
+DEVICE_INITRAMFS=initramfs-netboot-image-porter.ext4.gz.u-boot
+DEVICE_NBDROOT=core-image-minimal-porter.ext4.xz
+DEVICE_NBDROOT_COMPRESSION=xz
+DEVICE_BOOT_METHOD=u-boot
+DEVICE_BOOT_TYPE=bootm
+#DEVICE_URL_PREFIX=https://download.automotivelinux.org/AGL
+#
\ No newline at end of file
diff --git a/templates/machine/porter-nogfx/test/testjob_short.yaml b/templates/machine/porter-nogfx/test/testjob_short.yaml
new file mode 100644 (file)
index 0000000..2ff1ac9
--- /dev/null
@@ -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
+