Tomeu Vizoso | fcd8308 | 2019-12-18 16:11:33 +0100 | [diff] [blame] | 1 | job_name: mesa-deqp-{{ deqp_version }}-{{ gpu_version }} {{ pipeline_info }} |
Tomeu Vizoso | 22d9764 | 2019-12-17 11:50:14 +0100 | [diff] [blame] | 2 | device_type: {{ device_type }} |
Tomeu Vizoso | 1541ef6 | 2020-07-28 11:42:42 +0200 | [diff] [blame] | 3 | context: |
| 4 | extra_nfsroot_args: " init=/init rootwait" |
Tomeu Vizoso | cc6bbf6 | 2019-04-29 16:33:22 +0000 | [diff] [blame] | 5 | timeouts: |
| 6 | job: |
| 7 | minutes: 40 |
| 8 | action: |
| 9 | minutes: 10 |
| 10 | actions: |
| 11 | power-off: |
| 12 | seconds: 30 |
Tomeu Vizoso | 7b01f72 | 2019-09-18 16:03:36 +0200 | [diff] [blame] | 13 | priority: 75 |
Tomeu Vizoso | cc6bbf6 | 2019-04-29 16:33:22 +0000 | [diff] [blame] | 14 | visibility: public |
Neil Armstrong | dde7340 | 2019-09-20 15:43:19 +0200 | [diff] [blame] | 15 | {% if tags %} |
Neil Armstrong | bbdb4b1 | 2020-03-05 15:19:15 +0100 | [diff] [blame] | 16 | {% set lavatags = tags.split(',') %} |
Neil Armstrong | dde7340 | 2019-09-20 15:43:19 +0200 | [diff] [blame] | 17 | tags: |
Neil Armstrong | bbdb4b1 | 2020-03-05 15:19:15 +0100 | [diff] [blame] | 18 | {% for tag in lavatags %} |
Neil Armstrong | dde7340 | 2019-09-20 15:43:19 +0200 | [diff] [blame] | 19 | - {{ tag }} |
| 20 | {% endfor %} |
| 21 | {% endif %} |
Tomeu Vizoso | cc6bbf6 | 2019-04-29 16:33:22 +0000 | [diff] [blame] | 22 | actions: |
| 23 | - deploy: |
| 24 | timeout: |
Tomeu Vizoso | 0efc0f8 | 2019-09-06 16:17:26 +0200 | [diff] [blame] | 25 | minutes: 10 |
Tomeu Vizoso | cc6bbf6 | 2019-04-29 16:33:22 +0000 | [diff] [blame] | 26 | to: tftp |
| 27 | kernel: |
Tomeu Vizoso | dab0134 | 2019-05-03 17:48:48 +0200 | [diff] [blame] | 28 | url: {{ base_artifacts_url }}/{{ kernel_image_name }} |
Tomeu Vizoso | 22d9764 | 2019-12-17 11:50:14 +0100 | [diff] [blame] | 29 | {% if kernel_image_type %} |
Tomeu Vizoso | 6397dff | 2019-10-06 08:49:56 -0700 | [diff] [blame] | 30 | {{ kernel_image_type }} |
Tomeu Vizoso | 22d9764 | 2019-12-17 11:50:14 +0100 | [diff] [blame] | 31 | {% endif %} |
Tomeu Vizoso | 1541ef6 | 2020-07-28 11:42:42 +0200 | [diff] [blame] | 32 | nfsrootfs: |
| 33 | url: {{ base_artifacts_url }}/lava-rootfs.tgz |
Tomeu Vizoso | cc6bbf6 | 2019-04-29 16:33:22 +0000 | [diff] [blame] | 34 | compression: gz |
Tomeu Vizoso | 6c8b921 | 2020-07-03 10:04:20 +0200 | [diff] [blame] | 35 | {% if dtb %} |
Tomeu Vizoso | cc6bbf6 | 2019-04-29 16:33:22 +0000 | [diff] [blame] | 36 | dtb: |
Tomeu Vizoso | 6c8b921 | 2020-07-03 10:04:20 +0200 | [diff] [blame] | 37 | url: {{ base_artifacts_url }}/{{ dtb }}.dtb |
| 38 | {% endif %} |
Tomeu Vizoso | cc6bbf6 | 2019-04-29 16:33:22 +0000 | [diff] [blame] | 39 | os: oe |
| 40 | - boot: |
| 41 | timeout: |
| 42 | minutes: 5 |
Tomeu Vizoso | 6397dff | 2019-10-06 08:49:56 -0700 | [diff] [blame] | 43 | method: {{ boot_method }} |
Eric Anholt | 5865944 | 2020-01-28 16:20:38 -0800 | [diff] [blame] | 44 | {% 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 Vizoso | 1541ef6 | 2020-07-28 11:42:42 +0200 | [diff] [blame] | 53 | commands: nfs |
Eric Anholt | 5865944 | 2020-01-28 16:20:38 -0800 | [diff] [blame] | 54 | {% endif %} |
Tomeu Vizoso | cc6bbf6 | 2019-04-29 16:33:22 +0000 | [diff] [blame] | 55 | prompts: |
Eric Anholt | 54dbb55 | 2020-02-19 10:22:02 -0800 | [diff] [blame] | 56 | - 'lava-shell:' |
Tomeu Vizoso | cc6bbf6 | 2019-04-29 16:33:22 +0000 | [diff] [blame] | 57 | - test: |
| 58 | timeout: |
Tomeu Vizoso | 0efc0f8 | 2019-09-06 16:17:26 +0200 | [diff] [blame] | 59 | minutes: 60 |
Tomeu Vizoso | cc6bbf6 | 2019-04-29 16:33:22 +0000 | [diff] [blame] | 60 | definitions: |
| 61 | - repository: |
| 62 | metadata: |
| 63 | format: Lava-Test Test Definition 1.0 |
Tomeu Vizoso | 555c0de | 2019-09-18 16:43:30 +0200 | [diff] [blame] | 64 | name: deqp |
| 65 | description: "Mesa dEQP test plan" |
Tomeu Vizoso | cc6bbf6 | 2019-04-29 16:33:22 +0000 | [diff] [blame] | 66 | os: |
| 67 | - oe |
| 68 | scope: |
| 69 | - functional |
| 70 | run: |
| 71 | steps: |
| 72 | - mount -t proc none /proc |
| 73 | - mount -t sysfs none /sys |
Eric Anholt | 5865944 | 2020-01-28 16:20:38 -0800 | [diff] [blame] | 74 | - mount -t devtmpfs none /dev || echo possibly already mounted |
Tomeu Vizoso | cc6bbf6 | 2019-04-29 16:33:22 +0000 | [diff] [blame] | 75 | - mkdir -p /dev/pts |
| 76 | - mount -t devpts devpts /dev/pts |
Tomeu Vizoso | dcd171f | 2020-04-01 13:07:46 +0200 | [diff] [blame] | 77 | - echo "nameserver 8.8.8.8" > /etc/resolv.conf |
Tomeu Vizoso | cf8a8b7 | 2020-07-31 06:51:47 +0200 | [diff] [blame] | 78 | - for i in 1 2 3; do sntp -sS pool.ntp.org && break || sleep 2; done |
Tomeu Vizoso | dcd171f | 2020-04-01 13:07:46 +0200 | [diff] [blame] | 79 | |
Tomeu Vizoso | 6c9cf84 | 2020-08-19 09:55:47 +0200 | [diff] [blame] | 80 | # amdgpu failed to find its firmware during boot, rebind |
| 81 | - echo 0000:00:01.0 > /sys/bus/pci/drivers/amdgpu/bind || true |
Tomeu Vizoso | d62dd8b | 2019-12-13 10:20:23 +0100 | [diff] [blame] | 82 | |
Tomeu Vizoso | 22d9764 | 2019-12-17 11:50:14 +0100 | [diff] [blame] | 83 | {% if env_vars %} |
| 84 | - export {{ env_vars }} |
| 85 | {% endif %} |
| 86 | |
Tomeu Vizoso | 92f3c51 | 2020-03-24 12:58:30 +0100 | [diff] [blame] | 87 | # deqp-runner.sh assumes some stuff is in pwd |
| 88 | - cd / |
| 89 | |
Tomeu Vizoso | dcd171f | 2020-04-01 13:07:46 +0200 | [diff] [blame] | 90 | - wget -S --progress=dot:giga -O- {{ mesa_url }} | tar -xz |
| 91 | |
Tomeu Vizoso | d62dd8b | 2019-12-13 10:20:23 +0100 | [diff] [blame] | 92 | - export DEQP_NO_SAVE_RESULTS=1 |
Eric Anholt | a9e6a3e | 2020-04-17 12:28:58 -0700 | [diff] [blame] | 93 | - 'export DEQP_RUNNER_OPTIONS="--shuffle false"' |
Tomeu Vizoso | 22d9764 | 2019-12-17 11:50:14 +0100 | [diff] [blame] | 94 | - export DEQP_EXPECTED_FAILS=deqp-{{ gpu_version }}-fails.txt |
| 95 | - export DEQP_SKIPS=deqp-{{ gpu_version }}-skips.txt |
Tomeu Vizoso | d62dd8b | 2019-12-13 10:20:23 +0100 | [diff] [blame] | 96 | - export DEQP_VER={{ deqp_version }} |
| 97 | - export LIBGL_DRIVERS_PATH=`pwd`/install/lib/dri |
| 98 | |
Tomeu Vizoso | 92f3c51 | 2020-03-24 12:58:30 +0100 | [diff] [blame] | 99 | - "if sh /install/deqp-runner.sh; then |
Tomeu Vizoso | d62dd8b | 2019-12-13 10:20:23 +0100 | [diff] [blame] | 100 | echo 'deqp: pass'; |
| 101 | else |
| 102 | echo 'deqp: fail'; |
| 103 | fi" |
Tomeu Vizoso | cc6bbf6 | 2019-04-29 16:33:22 +0000 | [diff] [blame] | 104 | parse: |
Tomeu Vizoso | 76af465 | 2019-08-15 10:41:21 +0200 | [diff] [blame] | 105 | pattern: '(?P<test_case_id>\S*):\s+(?P<result>(pass|fail))' |
Tomeu Vizoso | cc6bbf6 | 2019-04-29 16:33:22 +0000 | [diff] [blame] | 106 | from: inline |
| 107 | name: deqp |
Tomeu Vizoso | 6397dff | 2019-10-06 08:49:56 -0700 | [diff] [blame] | 108 | path: inline/mesa-deqp.yaml |