Commit 6cc87bd3 authored by Frédéric Dalleau's avatar Frédéric Dalleau

Create profiles for nfsroot testing

Currently the lava artefacts are built separately than the Apertis
standard images. The image testing profiles can't be used because
the lava artefacts may not be built already when the image tests
are submitted.
Add specific profiles for the lava artefacts tests.
Create one lava profile per arch which is based on the
apertis-minimal-<arch>-<board>
Signed-off-by: 's avatarFrédéric Dalleau <frederic.dalleau@collabora.com>
parent 634e4305
job_name: Nfsroot tests on {{release_version}} {{pretty}} {{image_date}}
device_type: {{device_type}}
priority: medium
{% macro kernel_type(arch) -%}
{% if arch == 'arm64' -%}
image
{%- else -%}
zimage
{%- endif %}
{%- endmacro %}
visibility: {{visibility}}
notify:
callback:
url: https://lavaphabbridge.apertis.org/
method: POST
dataset: results
content-type: json
token: lava-phab-bridge
criteria:
status: finished
timeouts:
job:
minutes: 180
action:
minutes: 120
connections:
overlay-unpack:
minutes: 20
context:
kernel_start_message: '.*'
metadata:
source: https://gitlab.apertis.org/infrastructure/apertis-tests
image.version: '{{image_date}}'
image.release: '{{release_version}}'
image.arch: '{{arch}}'
image.board: '{{board}}'
image.type: '{{image_type}}'
actions:
- deploy:
namespace: nfsboot
timeout:
minutes: 15
to: tftp
kernel:
url: {{baseurl}}/{{imgpath}}/{{image_date}}/{{arch}}/nfs/vmlinuz
type: {{kernel_type(arch)}}
nfsrootfs:
url: {{baseurl}}/{{imgpath}}/{{image_date}}/{{arch}}/nfs/apertis-nfs-{{arch}}.tar.gz
compression: gz
ramdisk:
url: {{baseurl}}/{{imgpath}}/{{image_date}}/{{arch}}/nfs/initrd.img
compression: gz
os: ubuntu
{% if needs_dtb -%}
dtb:
url: {{baseurl}}/{{imgpath}}/{{image_date}}/{{arch}}/nfs/dtbs/{{dtb_root}}{{device_type}}.dtb
{%- endif %}
- boot:
namespace: nfsboot
timeout:
minutes: 15
method: {{boot_method}}
commands: nfs
transfer_overlay:
download_command: export SHELL=/bin/sh; sudo mount -o remount,rw / ; cd /tmp ; busybox wget
unpack_command: sudo tar -C / -xf
auto_login:
login_prompt: 'apertis-nfs login:'
username: nfsuser
password_prompt: 'Password:'
password: nfsuser
login_commands:
- sudo su
prompts:
- 'nfsuser@apertis:'
- '\$ '
- '\# '
- test:
timeout:
minutes: 3
namespace: nfsboot
name: nfsroot-simple-boot
definitions:
- repository: https://gitlab.apertis.org/tests/apertis-test-cases.git
revision: 'apertis/v2019pre'
from: git
path: test-cases/nfsroot-simple-boot.yaml
name: nfsroot-simple-boot
......@@ -27,6 +27,11 @@ profiles:
variables:
pretty: "Minnowboard turbot using minimal image"
image_type: minimal
- name: apertis-nfs-amd64-uefi
templates: [ group-nfs-tpl.yaml ]
variables:
pretty: "Amd64 nfsroot"
image_type: minimal
- name: apertis-target-amd64-uefi
variables:
pretty: "Minnowboard turbot using target image"
......@@ -86,6 +91,19 @@ profiles:
- run bootcmd_mmc0
needs_dtb: true
dtb_root: "renesas/"
- name: apertis-nfs-arm64-uboot
templates: [ group-nfs-tpl.yaml ]
variables:
pretty: "ARM64 using minimal image"
device_type: r8a7796-m3ulcb
arch: arm64
image_type: minimal
board: uboot
boot_method: u-boot
boot_commands:
- run bootcmd_mmc0
needs_dtb: true
dtb_root: "renesas/"
- name: apertis_ostree-minimal-arm64-uboot
templates: [ group-minimal-standalone-tpl.yaml,
group-apparmor-standalone-tpl.yaml,
......@@ -143,6 +161,18 @@ profiles:
boot_commands:
- run bootcmd_mmc0
needs_dtb: true
- name: apertis-nfs-armhf-uboot
templates: [ group-nfs-tpl.yaml ]
variables:
pretty: "i.MX6 Sabrelite using minimal image"
device_type: imx6q-sabrelite
arch: armhf
image_type: minimal
board: uboot
boot_method: u-boot
boot_commands:
- run bootcmd_mmc0
needs_dtb: true
- name: apertis-target-armhf-uboot
variables:
pretty: "i.MX6 Sabrelite using target image"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment