blob: 660ecfd6535c545e48361d9e9bb733b5b91aae93 [file] [log] [blame]
Rohan Garg087be7e2020-01-28 15:19:53 +01001job_name: mesa-tracie-{{ gpu_version }} {{ pipeline_info }}
2device_type: {{ device_type }}
Tomeu Vizoso1541ef62020-07-28 11:42:42 +02003context:
4 extra_nfsroot_args: " init=/init rootwait"
Rohan Garg087be7e2020-01-28 15:19:53 +01005timeouts:
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 %}
Tomeu Vizoso1541ef62020-07-28 11:42:42 +020032 nfsrootfs:
33 url: {{ base_artifacts_url }}/lava-rootfs.tgz
Rohan Garg087be7e2020-01-28 15:19:53 +010034 compression: gz
Tomeu Vizoso6c8b9212020-07-03 10:04:20 +020035{% if dtb %}
Rohan Garg087be7e2020-01-28 15:19:53 +010036 dtb:
Tomeu Vizoso6c8b9212020-07-03 10:04:20 +020037 url: {{ base_artifacts_url }}/{{ dtb }}.dtb
38{% endif %}
Rohan Garg087be7e2020-01-28 15:19:53 +010039 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 Vizoso1541ef62020-07-28 11:42:42 +020053 commands: nfs
Rohan Garg087be7e2020-01-28 15:19:53 +010054{% 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 Vizosocf8a8b72020-07-31 06:51:47 +020078 - for i in 1 2 3; do sntp -sS pool.ntp.org && break || sleep 2; done
Rohan Garg087be7e2020-01-28 15:19:53 +010079
Tomeu Vizoso1541ef62020-07-28 11:42:42 +020080 # amdgpu failed to find its firmware during boot, rebind
81 - echo 0000:00:01.0 > /sys/bus/pci/drivers/amdgpu/bind || true
Rohan Garg087be7e2020-01-28 15:19:53 +010082
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