pan/mdg: remove ins->br_compact and ins->branch_extended
[mesa.git] / .gitlab-ci / lava-tracie.yml.jinja2
1 job_name: mesa-tracie-{{ 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 to: tftp
25 kernel:
26 url: {{ base_artifacts_url }}/{{ kernel_image_name }}
27 {% if kernel_image_type %}
28 {{ kernel_image_type }}
29 {% endif %}
30 ramdisk:
31 url: {{ base_artifacts_url }}/lava-rootfs.cpio.gz
32 compression: gz
33 {% if dtb %}
34 dtb:
35 url: {{ base_artifacts_url }}/{{ dtb }}.dtb
36 {% endif %}
37 os: oe
38 - boot:
39 timeout:
40 minutes: 5
41 method: {{ boot_method }}
42 {% if boot_method == "fastboot" %}
43 {#
44 For fastboot, LAVA doesn't know how to unpack the rootfs/apply overlay/repack,
45 so we transfer the overlay over the network after boot.
46 #}
47 transfer_overlay:
48 download_command: wget -S --progress=dot:giga
49 unpack_command: tar -C / -xzf
50 {% else %}
51 commands: ramdisk
52 {% endif %}
53 prompts:
54 - 'lava-shell:'
55 - test:
56 timeout:
57 minutes: 60
58 definitions:
59 - repository:
60 metadata:
61 format: Lava-Test Test Definition 1.0
62 name: tracie
63 description: "Mesa tracie test plan"
64 os:
65 - oe
66 scope:
67 - functional
68 run:
69 steps:
70 - mount -t proc none /proc
71 - mount -t sysfs none /sys
72 - mount -t devtmpfs none /dev || echo possibly already mounted
73 - mkdir -p /dev/pts
74 - mount -t devpts devpts /dev/pts
75 - echo "nameserver 8.8.8.8" > /etc/resolv.conf
76 - date "+%Y%m%d %H%M" -s "{{ date }}"
77
78
79 {% if env_vars %}
80 - export {{ env_vars }}
81 {% endif %}
82 # tracie-runner.sh assumes some stuff is in pwd
83 - cd /
84
85 - wget -S --progress=dot:giga -O- {{ mesa_url }} | tar -xz
86
87 - export PYTHONPATH=$(python3 -c "import sys;print(\":\".join(sys.path))")
88 - export LIBGL_DRIVERS_PATH=`pwd`/install/lib/dri
89 - export DEVICE_NAME="gl-{{ gpu_version }}"
90
91 - "if sh /install/tracie-runner-gl.sh; then
92 echo 'tracie: pass';
93 else
94 echo 'tracie: fail';
95 fi"
96 parse:
97 pattern: '(?P<test_case_id>\S*):\s+(?P<result>(pass|fail))'
98 from: inline
99 name: tracie
100 path: inline/mesa-tracie.yaml