summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2017-03-03 22:08:59 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2017-04-30 21:19:04 +0000
commit71d255fa5ac2011b9a6f7e49c5a8d951df670277 (patch)
treefa0b317b0afe0fcac37b0952b9e74ba08a69fc24
parentd9a02b96ebbf689395521d95f712107bf2631867 (diff)
Enable test-run on porterboard
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>
-rw-r--r--templates/machine/porter-nogfx/test/hwtest.enable1
-rw-r--r--templates/machine/porter-nogfx/test/hwtest.short.enable1
-rw-r--r--templates/machine/porter-nogfx/test/hwtest.short.environment11
-rw-r--r--templates/machine/porter-nogfx/test/testjob_short.yaml49
4 files changed, 62 insertions, 0 deletions
diff --git a/templates/machine/porter-nogfx/test/hwtest.enable b/templates/machine/porter-nogfx/test/hwtest.enable
new file mode 100644
index 000000000..d00491fd7
--- /dev/null
+++ b/templates/machine/porter-nogfx/test/hwtest.enable
@@ -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
index 000000000..d00491fd7
--- /dev/null
+++ b/templates/machine/porter-nogfx/test/hwtest.short.enable
@@ -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
index 000000000..6cb0b9a0b
--- /dev/null
+++ b/templates/machine/porter-nogfx/test/hwtest.short.environment
@@ -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
index 000000000..2ff1ac995
--- /dev/null
+++ b/templates/machine/porter-nogfx/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
+