blob: 8fa95ff1f8127e93f28016a9557d13fe6db91209 [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 Vizoso1541ef62020-07-28 11:42:42 +02003context:
4 extra_nfsroot_args: " init=/init rootwait"
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +00005timeouts:
6 job:
7 minutes: 40
8 action:
9 minutes: 10
10 actions:
11 power-off:
12 seconds: 30
Tomeu Vizoso7b01f722019-09-18 16:03:36 +020013priority: 75
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000014visibility: public
Neil Armstrongdde73402019-09-20 15:43:19 +020015{% if tags %}
Neil Armstrongbbdb4b12020-03-05 15:19:15 +010016{% set lavatags = tags.split(',') %}
Neil Armstrongdde73402019-09-20 15:43:19 +020017tags:
Neil Armstrongbbdb4b12020-03-05 15:19:15 +010018{% for tag in lavatags %}
Neil Armstrongdde73402019-09-20 15:43:19 +020019 - {{ tag }}
20{% endfor %}
21{% endif %}
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000022actions:
23- deploy:
24 timeout:
Tomeu Vizoso0efc0f82019-09-06 16:17:26 +020025 minutes: 10
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000026 to: tftp
27 kernel:
Tomeu Vizosodab01342019-05-03 17:48:48 +020028 url: {{ base_artifacts_url }}/{{ kernel_image_name }}
Tomeu Vizoso22d97642019-12-17 11:50:14 +010029{% if kernel_image_type %}
Tomeu Vizoso6397dff2019-10-06 08:49:56 -070030 {{ kernel_image_type }}
Tomeu Vizoso22d97642019-12-17 11:50:14 +010031{% endif %}
Tomeu Vizoso1541ef62020-07-28 11:42:42 +020032 nfsrootfs:
33 url: {{ base_artifacts_url }}/lava-rootfs.tgz
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000034 compression: gz
Tomeu Vizoso6c8b9212020-07-03 10:04:20 +020035{% if dtb %}
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000036 dtb:
Tomeu Vizoso6c8b9212020-07-03 10:04:20 +020037 url: {{ base_artifacts_url }}/{{ dtb }}.dtb
38{% endif %}
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000039 os: oe
40- boot:
41 timeout:
42 minutes: 5
Tomeu Vizoso6397dff2019-10-06 08:49:56 -070043 method: {{ boot_method }}
Eric Anholt58659442020-01-28 16:20:38 -080044{% if boot_method == "fastboot" %}
45{#
46 For fastboot, LAVA doesn't know how to unpack the rootfs/apply overlay/repack,
47 so we transfer the overlay over the network after boot.
48#}
49 transfer_overlay:
50 download_command: wget -S --progress=dot:giga
51 unpack_command: tar -C / -xzf
52{% else %}
Tomeu Vizoso1541ef62020-07-28 11:42:42 +020053 commands: nfs
Eric Anholt58659442020-01-28 16:20:38 -080054{% endif %}
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000055 prompts:
Eric Anholt54dbb552020-02-19 10:22:02 -080056 - 'lava-shell:'
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000057- test:
58 timeout:
Tomeu Vizoso0efc0f82019-09-06 16:17:26 +020059 minutes: 60
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000060 definitions:
61 - repository:
62 metadata:
63 format: Lava-Test Test Definition 1.0
Tomeu Vizoso555c0de2019-09-18 16:43:30 +020064 name: deqp
65 description: "Mesa dEQP test plan"
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000066 os:
67 - oe
68 scope:
69 - functional
70 run:
71 steps:
72 - mount -t proc none /proc
73 - mount -t sysfs none /sys
Eric Anholt58659442020-01-28 16:20:38 -080074 - mount -t devtmpfs none /dev || echo possibly already mounted
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +000075 - mkdir -p /dev/pts
76 - mount -t devpts devpts /dev/pts
Tomeu Vizosodcd171f2020-04-01 13:07:46 +020077 - echo "nameserver 8.8.8.8" > /etc/resolv.conf
Tomeu Vizosocf8a8b72020-07-31 06:51:47 +020078 - for i in 1 2 3; do sntp -sS pool.ntp.org && break || sleep 2; done
Tomeu Vizosodcd171f2020-04-01 13:07:46 +020079
Tomeu Vizoso60c57292020-11-04 10:06:20 +010080 - modprobe amdgpu || true
Tomeu Vizosod62dd8b2019-12-13 10:20:23 +010081
Tomeu Vizoso0747f212020-10-05 15:57:58 +020082 - DEVFREQ_GOVERNOR=`find /sys/devices -name governor | grep gpu || true`
83 - echo performance > $DEVFREQ_GOVERNOR || true
84
85 - GPU_AUTOSUSPEND=`find /sys/devices -name autosuspend_delay_ms | grep gpu | head -1`
86 - echo -1 > $GPU_AUTOSUSPEND || true
87
Tomeu Vizoso22d97642019-12-17 11:50:14 +010088{% if env_vars %}
89 - export {{ env_vars }}
90{% endif %}
91
Tomeu Vizoso92f3c512020-03-24 12:58:30 +010092 # deqp-runner.sh assumes some stuff is in pwd
93 - cd /
94
Tomeu Vizosodcd171f2020-04-01 13:07:46 +020095 - wget -S --progress=dot:giga -O- {{ mesa_url }} | tar -xz
96
Tomeu Vizosod62dd8b2019-12-13 10:20:23 +010097 - export DEQP_NO_SAVE_RESULTS=1
Tomeu Vizoso22d97642019-12-17 11:50:14 +010098 - export DEQP_EXPECTED_FAILS=deqp-{{ gpu_version }}-fails.txt
99 - export DEQP_SKIPS=deqp-{{ gpu_version }}-skips.txt
Tomeu Vizosod62dd8b2019-12-13 10:20:23 +0100100 - export DEQP_VER={{ deqp_version }}
101 - export LIBGL_DRIVERS_PATH=`pwd`/install/lib/dri
102
Tomeu Vizoso92f3c512020-03-24 12:58:30 +0100103 - "if sh /install/deqp-runner.sh; then
Tomeu Vizosod62dd8b2019-12-13 10:20:23 +0100104 echo 'deqp: pass';
105 else
106 echo 'deqp: fail';
107 fi"
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +0000108 parse:
Tomeu Vizoso76af4652019-08-15 10:41:21 +0200109 pattern: '(?P<test_case_id>\S*):\s+(?P<result>(pass|fail))'
Tomeu Vizosocc6bbf62019-04-29 16:33:22 +0000110 from: inline
111 name: deqp
Tomeu Vizoso6397dff2019-10-06 08:49:56 -0700112 path: inline/mesa-deqp.yaml