2020-08-27 20:18:00 +01:00
|
|
|
job_name: mesa-piglit-{{ gpu_version }} {{ pipeline_info }}
|
2020-01-28 14:19:53 +00:00
|
|
|
device_type: {{ device_type }}
|
2020-07-28 10:42:42 +01:00
|
|
|
context:
|
|
|
|
extra_nfsroot_args: " init=/init rootwait"
|
2020-01-28 14:19:53 +00:00
|
|
|
timeouts:
|
|
|
|
job:
|
|
|
|
minutes: 40
|
|
|
|
action:
|
|
|
|
minutes: 10
|
|
|
|
actions:
|
|
|
|
power-off:
|
|
|
|
seconds: 30
|
|
|
|
priority: 75
|
2021-03-23 08:35:17 +00:00
|
|
|
visibility:
|
|
|
|
group:
|
|
|
|
- "Collabora+fdo"
|
2020-01-28 14:19:53 +00:00
|
|
|
{% if tags %}
|
|
|
|
{% set lavatags = tags.split(',') %}
|
|
|
|
tags:
|
|
|
|
{% for tag in lavatags %}
|
|
|
|
- {{ tag }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
actions:
|
|
|
|
- deploy:
|
|
|
|
timeout:
|
|
|
|
minutes: 10
|
|
|
|
to: tftp
|
|
|
|
kernel:
|
|
|
|
url: {{ base_artifacts_url }}/{{ kernel_image_name }}
|
|
|
|
{% if kernel_image_type %}
|
|
|
|
{{ kernel_image_type }}
|
|
|
|
{% endif %}
|
2020-07-28 10:42:42 +01:00
|
|
|
nfsrootfs:
|
|
|
|
url: {{ base_artifacts_url }}/lava-rootfs.tgz
|
2020-01-28 14:19:53 +00:00
|
|
|
compression: gz
|
2020-07-03 09:04:20 +01:00
|
|
|
{% if dtb %}
|
2020-01-28 14:19:53 +00:00
|
|
|
dtb:
|
2020-07-03 09:04:20 +01:00
|
|
|
url: {{ base_artifacts_url }}/{{ dtb }}.dtb
|
|
|
|
{% endif %}
|
2020-01-28 14:19:53 +00:00
|
|
|
os: oe
|
|
|
|
- boot:
|
|
|
|
timeout:
|
|
|
|
minutes: 5
|
|
|
|
method: {{ boot_method }}
|
|
|
|
{% if boot_method == "fastboot" %}
|
|
|
|
{#
|
|
|
|
For fastboot, LAVA doesn't know how to unpack the rootfs/apply overlay/repack,
|
|
|
|
so we transfer the overlay over the network after boot.
|
|
|
|
#}
|
|
|
|
transfer_overlay:
|
|
|
|
download_command: wget -S --progress=dot:giga
|
|
|
|
unpack_command: tar -C / -xzf
|
|
|
|
{% else %}
|
2020-07-28 10:42:42 +01:00
|
|
|
commands: nfs
|
2020-01-28 14:19:53 +00:00
|
|
|
{% endif %}
|
|
|
|
prompts:
|
|
|
|
- 'lava-shell:'
|
|
|
|
- test:
|
|
|
|
timeout:
|
|
|
|
minutes: 60
|
|
|
|
definitions:
|
|
|
|
- repository:
|
|
|
|
metadata:
|
|
|
|
format: Lava-Test Test Definition 1.0
|
2020-08-27 20:18:00 +01:00
|
|
|
name: piglit
|
|
|
|
description: "Mesa piglit test plan"
|
2020-01-28 14:19:53 +00:00
|
|
|
os:
|
|
|
|
- oe
|
|
|
|
scope:
|
|
|
|
- functional
|
|
|
|
run:
|
|
|
|
steps:
|
|
|
|
- mount -t proc none /proc
|
|
|
|
- mount -t sysfs none /sys
|
|
|
|
- mount -t devtmpfs none /dev || echo possibly already mounted
|
|
|
|
- mkdir -p /dev/pts
|
|
|
|
- mount -t devpts devpts /dev/pts
|
|
|
|
- echo "nameserver 8.8.8.8" > /etc/resolv.conf
|
2020-07-31 05:51:47 +01:00
|
|
|
- for i in 1 2 3; do sntp -sS pool.ntp.org && break || sleep 2; done
|
2020-01-28 14:19:53 +00:00
|
|
|
|
2020-11-04 09:06:20 +00:00
|
|
|
- modprobe amdgpu || true
|
2020-01-28 14:19:53 +00:00
|
|
|
|
|
|
|
{% if env_vars %}
|
|
|
|
- export {{ env_vars }}
|
|
|
|
{% endif %}
|
2020-08-27 20:18:00 +01:00
|
|
|
# piglit/run.sh assumes some stuff is in pwd
|
2020-01-28 14:19:53 +00:00
|
|
|
- cd /
|
|
|
|
|
|
|
|
- wget -S --progress=dot:giga -O- {{ mesa_url }} | tar -xz
|
|
|
|
|
|
|
|
- export PYTHONPATH=$(python3 -c "import sys;print(\":\".join(sys.path))")
|
|
|
|
- export LIBGL_DRIVERS_PATH=`pwd`/install/lib/dri
|
2020-08-27 20:18:00 +01:00
|
|
|
- export PIGLIT_REPLAY_EXTRA_ARGS="--keep-image"
|
|
|
|
- export PIGLIT_REPLAY_REFERENCE_IMAGES_BASE_URL="/mesa-tracie-results/${CI_PROJECT_PATH}"
|
|
|
|
- export PIGLIT_REPLAY_ARTIFACTS_BASE_URL="/artifacts/${CI_PROJECT_PATH}/${CI_PIPELINE_ID}/${CI_JOB_ID}"
|
|
|
|
- export PIGLIT_REPLAY_DESCRIPTION_FILE="/install/traces-${DRIVER_NAME}.yml"
|
|
|
|
- export PIGLIT_REPLAY_DEVICE_NAME=gl-{{ gpu_version }}
|
|
|
|
- export PIGLIT_RESULTS={{ gpu_version }}-${PIGLIT_PROFILES}
|
2020-01-28 14:19:53 +00:00
|
|
|
|
2020-08-27 20:18:00 +01:00
|
|
|
- "if sh /install/piglit/run.sh; then
|
|
|
|
echo 'piglit: pass';
|
2020-01-28 14:19:53 +00:00
|
|
|
else
|
2020-08-27 20:18:00 +01:00
|
|
|
echo 'piglit: fail';
|
2020-01-28 14:19:53 +00:00
|
|
|
fi"
|
|
|
|
parse:
|
|
|
|
pattern: '(?P<test_case_id>\S*):\s+(?P<result>(pass|fail))'
|
|
|
|
from: inline
|
2020-08-27 20:18:00 +01:00
|
|
|
name: piglit
|
|
|
|
path: inline/mesa-piglit.yaml
|