From 71d255fa5ac2011b9a6f7e49c5a8d951df670277 Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Fri, 3 Mar 2017 22:08:59 +0100 Subject: Enable test-run on porterboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/8635 Reviewed-by: Matt Ranostay ci-image-build: Jenkins Job builder account Reviewed-by: Stéphane Desneux Tested-by: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account --- templates/machine/porter-nogfx/test/hwtest.enable | 1 + .../machine/porter-nogfx/test/hwtest.short.enable | 1 + .../porter-nogfx/test/hwtest.short.environment | 11 +++++ .../machine/porter-nogfx/test/testjob_short.yaml | 49 ++++++++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 templates/machine/porter-nogfx/test/hwtest.enable create mode 100644 templates/machine/porter-nogfx/test/hwtest.short.enable create mode 100644 templates/machine/porter-nogfx/test/hwtest.short.environment create mode 100644 templates/machine/porter-nogfx/test/testjob_short.yaml 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 + -- cgit 1.2.3-korg