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