drm-shim: Let the driver choose to overwrite the first render node.
[mesa.git] / .gitlab-ci / lava-deqp.yml.jinja2
1 job_name: mesa-deqp-{{ deqp_version }}-{{ gpu_version }} {{ pipeline_info }}
2 device_type: {{ device_type }}
3 timeouts:
4 job:
5 minutes: 40
6 action:
7 minutes: 10
8 actions:
9 power-off:
10 seconds: 30
11 priority: 75
12 visibility: public
13 {% if tags %}
14 {% set lavatags = tags.split(',') %}
15 tags:
16 {% for tag in lavatags %}
17 - {{ tag }}
18 {% endfor %}
19 {% endif %}
20 actions:
21 - deploy:
22 timeout:
23 minutes: 10
24 {% if boot_method == "fastboot" %}
25 {# fastboot has just one boot image with the dtb and rootfs packed in #}
26 to: fastboot
27 images:
28 boot:
29 url: {{ base_artifacts_url }}/{{ kernel_image_name }}
30 {% else %}
31 to: tftp
32 kernel:
33 url: {{ base_artifacts_url }}/{{ kernel_image_name }}
34 {% if kernel_image_type %}
35 {{ kernel_image_type }}
36 {% endif %}
37 ramdisk:
38 url: {{ base_artifacts_url }}/lava-rootfs-{{ arch }}.cpio.gz
39 compression: gz
40 dtb:
41 url: {{ base_artifacts_url }}/{{ device_type }}.dtb
42 {% endif %}
43 os: oe
44 - boot:
45 timeout:
46 minutes: 5
47 method: {{ boot_method }}
48 {% if boot_method == "fastboot" %}
49 {#
50 For fastboot, LAVA doesn't know how to unpack the rootfs/apply overlay/repack,
51 so we transfer the overlay over the network after boot.
52 #}
53 transfer_overlay:
54 download_command: wget -S --progress=dot:giga
55 unpack_command: tar -C / -xzf
56 {% else %}
57 commands: ramdisk
58 {% endif %}
59 prompts:
60 - 'lava-shell:'
61 - test:
62 timeout:
63 minutes: 60
64 definitions:
65 - repository:
66 metadata:
67 format: Lava-Test Test Definition 1.0
68 name: deqp
69 description: "Mesa dEQP test plan"
70 os:
71 - oe
72 scope:
73 - functional
74 run:
75 steps:
76 - mount -t proc none /proc
77 - mount -t sysfs none /sys
78 - mount -t devtmpfs none /dev || echo possibly already mounted
79 - mkdir -p /dev/pts
80 - mount -t devpts devpts /dev/pts
81
82 {% if env_vars %}
83 - export {{ env_vars }}
84 {% endif %}
85
86 # deqp-runner.sh assumes some stuff is in pwd
87 - cd /
88
89 - export DEQP_NO_SAVE_RESULTS=1
90 - 'export DEQP_RUNNER_OPTIONS="--compact-display false --shuffle false"'
91 - export DEQP_EXPECTED_FAILS=deqp-{{ gpu_version }}-fails.txt
92 - export DEQP_SKIPS=deqp-{{ gpu_version }}-skips.txt
93 - export DEQP_VER={{ deqp_version }}
94 - export LIBGL_DRIVERS_PATH=`pwd`/install/lib/dri
95
96 - "if sh /install/deqp-runner.sh; then
97 echo 'deqp: pass';
98 else
99 echo 'deqp: fail';
100 fi"
101 parse:
102 pattern: '(?P<test_case_id>\S*):\s+(?P<result>(pass|fail))'
103 from: inline
104 name: deqp
105 path: inline/mesa-deqp.yaml