blob: 639f1d1f40e88d38efdb7fd53f5d358ccbc19417 [file] [log] [blame]
Tomeu Vizosofcd83082019-12-18 16:11:33 +01001job_name: mesa-deqp-{{ deqp_version }}-{{ gpu_version }} {{ pipeline_info }}
Tomeu Vizoso22d97642019-12-17 11:50:14 +01002device_type: {{ device_type }}
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +00003timeouts:
4 job:
5 minutes: 40
6 action:
7 minutes: 10
8 actions:
9 power-off:
10 seconds: 30
Tomeu Vizoso7b01f722019-09-18 16:03:36 +020011priority: 75
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000012visibility: public
Neil Armstrongdde73402019-09-20 15:43:19 +020013{% if tags %}
Neil Armstrongbbdb4b12020-03-05 15:19:15 +010014{% set lavatags = tags.split(',') %}
Neil Armstrongdde73402019-09-20 15:43:19 +020015tags:
Neil Armstrongbbdb4b12020-03-05 15:19:15 +010016{% for tag in lavatags %}
Neil Armstrongdde73402019-09-20 15:43:19 +020017 - {{ tag }}
18{% endfor %}
19{% endif %}
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000020actions:
21- deploy:
22 timeout:
Tomeu Vizoso0efc0f82019-09-06 16:17:26 +020023 minutes: 10
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000024 to: tftp
25 kernel:
Tomeu Vizosodab01342019-05-03 17:48:48 +020026 url: {{ base_artifacts_url }}/{{ kernel_image_name }}
Tomeu Vizoso22d97642019-12-17 11:50:14 +010027{% if kernel_image_type %}
Tomeu Vizoso6397dff2019-10-06 08:49:56 -070028 {{ kernel_image_type }}
Tomeu Vizoso22d97642019-12-17 11:50:14 +010029{% endif %}
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000030 ramdisk:
Tomeu Vizosodcd171f2020-04-01 13:07:46 +020031 url: {{ base_artifacts_url }}/lava-rootfs.cpio.gz
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000032 compression: gz
Tomeu Vizoso6c8b9212020-07-03 10:04:20 +020033{% if dtb %}
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000034 dtb:
Tomeu Vizoso6c8b9212020-07-03 10:04:20 +020035 url: {{ base_artifacts_url }}/{{ dtb }}.dtb
36{% endif %}
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000037 os: oe
38- boot:
39 timeout:
40 minutes: 5
Tomeu Vizoso6397dff2019-10-06 08:49:56 -070041 method: {{ boot_method }}
Eric Anholt58659442020-01-28 16:20:38 -080042{% 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 %}
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000051 commands: ramdisk
Eric Anholt58659442020-01-28 16:20:38 -080052{% endif %}
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000053 prompts:
Eric Anholt54dbb552020-02-19 10:22:02 -080054 - 'lava-shell:'
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000055- test:
56 timeout:
Tomeu Vizoso0efc0f82019-09-06 16:17:26 +020057 minutes: 60
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000058 definitions:
59 - repository:
60 metadata:
61 format: Lava-Test Test Definition 1.0
Tomeu Vizoso555c0de2019-09-18 16:43:30 +020062 name: deqp
63 description: "Mesa dEQP test plan"
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000064 os:
65 - oe
66 scope:
67 - functional
68 run:
69 steps:
70 - mount -t proc none /proc
71 - mount -t sysfs none /sys
Eric Anholt58659442020-01-28 16:20:38 -080072 - mount -t devtmpfs none /dev || echo possibly already mounted
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000073 - mkdir -p /dev/pts
74 - mount -t devpts devpts /dev/pts
Tomeu Vizosodcd171f2020-04-01 13:07:46 +020075 - echo "nameserver 8.8.8.8" > /etc/resolv.conf
76 - date "+%Y%m%d %H%M" -s "{{ date }}"
77
Tomeu Vizosod62dd8b2019-12-13 10:20:23 +010078
Tomeu Vizoso22d97642019-12-17 11:50:14 +010079{% if env_vars %}
80 - export {{ env_vars }}
81{% endif %}
82
Tomeu Vizoso92f3c512020-03-24 12:58:30 +010083 # deqp-runner.sh assumes some stuff is in pwd
84 - cd /
85
Tomeu Vizosodcd171f2020-04-01 13:07:46 +020086 - wget -S --progress=dot:giga -O- {{ mesa_url }} | tar -xz
87
Tomeu Vizosod62dd8b2019-12-13 10:20:23 +010088 - export DEQP_NO_SAVE_RESULTS=1
Eric Anholta9e6a3e2020-04-17 12:28:58 -070089 - 'export DEQP_RUNNER_OPTIONS="--shuffle false"'
Tomeu Vizoso22d97642019-12-17 11:50:14 +010090 - export DEQP_EXPECTED_FAILS=deqp-{{ gpu_version }}-fails.txt
91 - export DEQP_SKIPS=deqp-{{ gpu_version }}-skips.txt
Tomeu Vizosod62dd8b2019-12-13 10:20:23 +010092 - export DEQP_VER={{ deqp_version }}
93 - export LIBGL_DRIVERS_PATH=`pwd`/install/lib/dri
94
Tomeu Vizoso92f3c512020-03-24 12:58:30 +010095 - "if sh /install/deqp-runner.sh; then
Tomeu Vizosod62dd8b2019-12-13 10:20:23 +010096 echo 'deqp: pass';
97 else
98 echo 'deqp: fail';
99 fi"
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +0000100 parse:
Tomeu Vizoso76af4652019-08-15 10:41:21 +0200101 pattern: '(?P<test_case_id>\S*):\s+(?P<result>(pass|fail))'
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +0000102 from: inline
103 name: deqp
Tomeu Vizoso6397dff2019-10-06 08:49:56 -0700104 path: inline/mesa-deqp.yaml