blob: dab89c527e68b5a921cca9ed4ad4f2047e7e369e [file] [log] [blame]
Chris Kay3d807882022-08-31 16:00:02 +01001device_type: n1sdp
2job_name: tf-n1sdp
3timeouts:
4 job:
5 minutes: 30
6
Paul Sokolovsky9675e6b2022-12-07 20:43:48 +03007priority: ${LAVA_PRIORITY:-medium}
Chris Kay3d807882022-08-31 16:00:02 +01008visibility: public
9context:
10 extra_nfsroot_args: ',vers=3'
11 extra_kernel_args: rootwait
12actions:
13#
14# Any firmware bundle deployed must be configured to boot automatically without
15# intervention. This means "PMIC_FORCE" must be set "TRUE" in the config file
16# to be deployed.
17#
18#
19# Deploy a firmware bundle with the customised "uefi.bin" installed. This
20# enables an EFI network driver, allowing us to force a TFTP boot from GRUB (assuming cobbler is setup)
21#
22- deploy:
23 namespace: recovery
24 to: flasher
25 images:
26 recovery_image:
27 url: http://files.oss.arm.com/downloads/lava/health-checks/n1sdp/4/n1sdp-board-firmware-force-netboot.zip
28 compression: zip
29
30- deploy:
31 namespace: debian
32 to: tftp
33 os: debian
34 kernel:
35 url: http://files.oss.arm.com/downloads/lava/health-checks/n1sdp/4/debian/linux
36 type: image
37 ramdisk:
38 url: http://files.oss.arm.com/downloads/lava/health-checks/n1sdp/4/debian/ramdisk.img
39 nfsrootfs:
40 url: http://files.oss.arm.com/downloads/lava/health-checks/n1sdp/4/debian/debian-buster-arm64-rootfs.tar.xz
41 compression: xz
42
43- boot:
44 namespace: recovery
45 timeout:
46 minutes: 3
47 method: minimal
48 parameters:
49 kernel-start-message: ''
50 prompts: ['Cmd>']
51
52- boot:
53 namespace: uart1
54 method: new_connection
55 connection: uart1
56
57- boot:
58 namespace: debian
59 connection-namespace: uart1
60 timeout:
61 minutes: 5
62 method: grub
63 commands: nfs
64 prompts:
65 - '/ # '
66
67- test:
68 namespace: debian
69 timeout:
70 minutes: 5
71 definitions:
72 - repository:
73 metadata:
74 format: Lava-Test Test Definition 1.0
75 name: device-network
76 description: '"Test device network connection"'
77 os:
78 - debian
79 scope:
80 - functional
81 run:
82 steps:
83 - apt -q update
84 - apt -q install -y iputils-ping
85 - ping -c 5 www.arm.com || lava-test-raise "Device failed to reach a remote host"
86 - hostname -I
87 from: inline
88 name: device-network
89 path: inline/device-network.yaml
90
91- test:
92 namespace: debian
93 timeout:
94 minutes: 5
95 definitions:
96 - repository:
97 metadata:
98 format: Lava-Test Test Definition 1.0
99 name: install-dependancies
100 description: '"Install dependancies for secondary media deployment"'
101 os:
102 - debian
103 scope:
104 - functional
105 run:
106 steps:
107 - apt-get update -q
108 - apt-get install -qy wget
109 from: inline
110 name: install-dependancies
111 path: inline/install-dependancies.yaml
112
113- deploy:
114 namespace: secondary_media
115 connection-namespace: uart1
116 timeout:
117 minutes: 10
118 to: usb
119 os: busybox
120 images:
121 image:
122 url: "$n1sdp_prebuilts/busybox.img"
123 uniquify: false
124 device: usb_storage_device
125 download:
126 tool: /usr/bin/wget
127 prompt: HTTP request sent, awaiting response
128 options: --no-check-certificate --no-proxy --connect-timeout=30 -S --progress=dot:giga -O - {DOWNLOAD_URL}
129
130#
131# Deploy the primary board firmware bundle (this time without the additinal
132# network driver).
133#
134- deploy:
135 namespace: recovery
136 to: flasher
137 images:
138 recovery_image:
139 url: $recovery_img_url
140 compression: zip
141
142#
143# Do not verify the flash second time around as cached serial output on the
144# connection will immediately match the prompt.
145#
146- boot:
147 namespace: secondary_media
148 timeout:
149 minutes: 10
150 method: minimal
151 prompts:
152 - '/ #'
153 transfer_overlay:
154 download_command: wget -S
155 unpack_command: tar -C / -xzf
156
157- test:
158 namespace: secondary_media
159 timeout:
160 minutes: 5
161 definitions:
162 - repository:
163 metadata:
164 format: Lava-Test Test Definition 1.0
165 name: linux-console-test-in-deployed-image
166 description: '"Run LAVA test steps inside the deployed image"'
167 os:
168 - oe
169 scope:
170 - functional
171 run:
172 steps:
173 - fdisk -l
174 - ip addr show
175 - cat /proc/cpuinfo
176 from: inline
177 name: linux-console-test
178 path: inline/linux-console-test.yaml