Rohan Garg | 087be7e | 2020-01-28 15:19:53 +0100 | [diff] [blame] | 1 | job_name: mesa-tracie-{{ gpu_version }} {{ pipeline_info }} |
| 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" |
Rohan Garg | 087be7e | 2020-01-28 15:19:53 +0100 | [diff] [blame] | 5 | timeouts: |
| 6 | job: |
| 7 | minutes: 40 |
| 8 | action: |
| 9 | minutes: 10 |
| 10 | actions: |
| 11 | power-off: |
| 12 | seconds: 30 |
| 13 | priority: 75 |
| 14 | visibility: public |
| 15 | {% if tags %} |
| 16 | {% set lavatags = tags.split(',') %} |
| 17 | tags: |
| 18 | {% for tag in lavatags %} |
| 19 | - {{ tag }} |
| 20 | {% endfor %} |
| 21 | {% endif %} |
| 22 | actions: |
| 23 | - deploy: |
| 24 | timeout: |
| 25 | minutes: 10 |
| 26 | to: tftp |
| 27 | kernel: |
| 28 | url: {{ base_artifacts_url }}/{{ kernel_image_name }} |
| 29 | {% if kernel_image_type %} |
| 30 | {{ kernel_image_type }} |
| 31 | {% endif %} |
Tomeu Vizoso | 1541ef6 | 2020-07-28 11:42:42 +0200 | [diff] [blame] | 32 | nfsrootfs: |
| 33 | url: {{ base_artifacts_url }}/lava-rootfs.tgz |
Rohan Garg | 087be7e | 2020-01-28 15:19:53 +0100 | [diff] [blame] | 34 | compression: gz |
Tomeu Vizoso | 6c8b921 | 2020-07-03 10:04:20 +0200 | [diff] [blame] | 35 | {% if dtb %} |
Rohan Garg | 087be7e | 2020-01-28 15:19:53 +0100 | [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 %} |
Rohan Garg | 087be7e | 2020-01-28 15:19:53 +0100 | [diff] [blame] | 39 | os: oe |
| 40 | - boot: |
| 41 | timeout: |
| 42 | minutes: 5 |
| 43 | method: {{ boot_method }} |
| 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 |
Rohan Garg | 087be7e | 2020-01-28 15:19:53 +0100 | [diff] [blame] | 54 | {% endif %} |
| 55 | prompts: |
| 56 | - 'lava-shell:' |
| 57 | - test: |
| 58 | timeout: |
| 59 | minutes: 60 |
| 60 | definitions: |
| 61 | - repository: |
| 62 | metadata: |
| 63 | format: Lava-Test Test Definition 1.0 |
| 64 | name: tracie |
| 65 | description: "Mesa tracie test plan" |
| 66 | os: |
| 67 | - oe |
| 68 | scope: |
| 69 | - functional |
| 70 | run: |
| 71 | steps: |
| 72 | - mount -t proc none /proc |
| 73 | - mount -t sysfs none /sys |
| 74 | - mount -t devtmpfs none /dev || echo possibly already mounted |
| 75 | - mkdir -p /dev/pts |
| 76 | - mount -t devpts devpts /dev/pts |
| 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 |
Rohan Garg | 087be7e | 2020-01-28 15:19:53 +0100 | [diff] [blame] | 79 | |
Tomeu Vizoso | 1541ef6 | 2020-07-28 11:42:42 +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 |
Rohan Garg | 087be7e | 2020-01-28 15:19:53 +0100 | [diff] [blame] | 82 | |
| 83 | {% if env_vars %} |
| 84 | - export {{ env_vars }} |
| 85 | {% endif %} |
| 86 | # tracie-runner.sh assumes some stuff is in pwd |
| 87 | - cd / |
| 88 | |
| 89 | - wget -S --progress=dot:giga -O- {{ mesa_url }} | tar -xz |
| 90 | |
| 91 | - export PYTHONPATH=$(python3 -c "import sys;print(\":\".join(sys.path))") |
| 92 | - export LIBGL_DRIVERS_PATH=`pwd`/install/lib/dri |
| 93 | - export DEVICE_NAME="gl-{{ gpu_version }}" |
| 94 | |
| 95 | - "if sh /install/tracie-runner-gl.sh; then |
| 96 | echo 'tracie: pass'; |
| 97 | else |
| 98 | echo 'tracie: fail'; |
| 99 | fi" |
| 100 | parse: |
| 101 | pattern: '(?P<test_case_id>\S*):\s+(?P<result>(pass|fail))' |
| 102 | from: inline |
| 103 | name: tracie |
| 104 | path: inline/mesa-tracie.yaml |