1job_name: mesa-deqp-{{ deqp_version }}-{{ gpu_version }} {{ pipeline_info }} 2device_type: {{ device_type }} 3context: 4 extra_nfsroot_args: " init=/init rootwait" 5timeouts: 6 job: 7 minutes: 40 8 action: 9 minutes: 10 10 actions: 11 power-off: 12 seconds: 30 13priority: 75 14visibility: public 15{% if tags %} 16{% set lavatags = tags.split(',') %} 17tags: 18{% for tag in lavatags %} 19 - {{ tag }} 20{% endfor %} 21{% endif %} 22actions: 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 %} 32 nfsrootfs: 33 url: {{ base_artifacts_url }}/lava-rootfs.tgz 34 compression: gz 35{% if dtb %} 36 dtb: 37 url: {{ base_artifacts_url }}/{{ dtb }}.dtb 38{% endif %} 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 %} 53 commands: nfs 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: deqp 65 description: "Mesa dEQP 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 78 - for i in 1 2 3; do sntp -sS pool.ntp.org && break || sleep 2; done 79 80 - modprobe amdgpu || true 81 82 - 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 88{% if env_vars %} 89 - export {{ env_vars }} 90{% endif %} 91 92 # deqp-runner.sh assumes some stuff is in pwd 93 - cd / 94 95 - wget -S --progress=dot:giga -O- {{ mesa_url }} | tar -xz 96 97 - export DEQP_NO_SAVE_RESULTS=1 98 - export DEQP_EXPECTED_FAILS=deqp-{{ gpu_version }}-fails.txt 99 - export DEQP_SKIPS=deqp-{{ gpu_version }}-skips.txt 100 - export DEQP_VER={{ deqp_version }} 101 - export LIBGL_DRIVERS_PATH=`pwd`/install/lib/dri 102 103 - "if sh /install/deqp-runner.sh; then 104 echo 'deqp: pass'; 105 else 106 echo 'deqp: fail'; 107 fi" 108 parse: 109 pattern: '(?P<test_case_id>\S*):\s+(?P<result>(pass|fail))' 110 from: inline 111 name: deqp 112 path: inline/mesa-deqp.yaml 113