From a1c76d665ae055d209bc47b71dfb3e6c2cd1bf73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan-Simon=20M=C3=B6ller?= Date: Mon, 1 May 2017 14:20:44 +0200 Subject: [PATCH] Enable lava test-run on vayu board MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This adds the necessary templates to run the CI boot tests also on the TI dra7xx-evm 'vayu'. Change-Id: I9e6303c30bd68db91f5b36b2984f6ef91fa4297d Signed-off-by: Jan-Simon Möller Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9295 ci-image-build: Jenkins Job builder account Tested-by: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account --- templates/machine/dra7xx-evm/test/hwtest.enable | 1 + .../machine/dra7xx-evm/test/hwtest.short.enable | 1 + .../dra7xx-evm/test/hwtest.short.environment | 11 +++++ .../machine/dra7xx-evm/test/testjob_short.yaml | 51 ++++++++++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 templates/machine/dra7xx-evm/test/hwtest.enable create mode 100644 templates/machine/dra7xx-evm/test/hwtest.short.enable create mode 100644 templates/machine/dra7xx-evm/test/hwtest.short.environment create mode 100644 templates/machine/dra7xx-evm/test/testjob_short.yaml diff --git a/templates/machine/dra7xx-evm/test/hwtest.enable b/templates/machine/dra7xx-evm/test/hwtest.enable new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/templates/machine/dra7xx-evm/test/hwtest.enable @@ -0,0 +1 @@ +1 diff --git a/templates/machine/dra7xx-evm/test/hwtest.short.enable b/templates/machine/dra7xx-evm/test/hwtest.short.enable new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/templates/machine/dra7xx-evm/test/hwtest.short.enable @@ -0,0 +1 @@ +1 diff --git a/templates/machine/dra7xx-evm/test/hwtest.short.environment b/templates/machine/dra7xx-evm/test/hwtest.short.environment new file mode 100644 index 000000000..2db9ab26e --- /dev/null +++ b/templates/machine/dra7xx-evm/test/hwtest.short.environment @@ -0,0 +1,11 @@ +DEVICE_TYPE=ti-vayu-uboot +DEVICE_NAME=dra7xx-evm +DEVICE_DTB=zImage-dra7-evm-lcd-lg.dtb +DEVICE_KERNEL=zImage +DEVICE_INITRAMFS=initramfs-netboot-image-dra7xx-evm.ext4.gz +DEVICE_NBDROOT=agl-demo-platform-dra7xx-evm.ext4.xz +DEVICE_NBDROOT_COMPRESSION=xz +DEVICE_BOOT_METHOD=u-boot +DEVICE_BOOT_TYPE=bootz +#DEVICE_URL_PREFIX=https://download.automotivelinux.org/AGL +# \ No newline at end of file diff --git a/templates/machine/dra7xx-evm/test/testjob_short.yaml b/templates/machine/dra7xx-evm/test/testjob_short.yaml new file mode 100644 index 000000000..304cc8a6b --- /dev/null +++ b/templates/machine/dra7xx-evm/test/testjob_short.yaml @@ -0,0 +1,51 @@ +# Your first LAVA JOB definition for a vayu 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 + failure_retry: 2 + + -- 2.16.6