Skip to content

Commit 497894d

Browse files
committed
ci: add rb1 test job template
Add LAVA test job for RB1. The job only does minimal flashing and boot test. Signed-off-by: Milosz Wasilewski <[email protected]>
1 parent d0c9691 commit 497894d

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

ci/lava/qrb2210-rb1/boot.yaml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
actions:
2+
- deploy:
3+
images:
4+
image:
5+
headers:
6+
Authentication: Q_GITHUB_TOKEN
7+
url: "{{BUILD_DOWNLOAD_URL}}"
8+
postprocess:
9+
docker:
10+
image: ghcr.io/foundriesio/lava-lmp-sign:main
11+
steps:
12+
- export IMAGE_PATH=$PWD
13+
- cp overlay*.tar.gz overlay.tar.gz
14+
- echo "OVERLAY=overlay.tar.gz" >> $IMAGE_PATH/flash.settings
15+
- echo "OVERLAY_PATH=/home/" >> $IMAGE_PATH/flash.settings
16+
- echo "STORAGE=emmc" >> $IMAGE_PATH/flash.settings
17+
- echo "ROOTFS_IMAGE=disk-sdcard.img2" >> $IMAGE_PATH/flash.settings
18+
- echo "DEVICE_TYPE=debian-rb1" >> $IMAGE_PATH/flash.settings
19+
- cat $IMAGE_PATH/flash.settings
20+
timeout:
21+
minutes: 5
22+
to: downloads
23+
- deploy:
24+
images:
25+
image:
26+
url: downloads://{{BUILD_FILE_NAME}}
27+
settings:
28+
url: downloads://flash.settings
29+
overlay:
30+
url: downloads://overlay.tar.gz
31+
timeout:
32+
minutes: 5
33+
to: flasher
34+
- boot:
35+
auto_login:
36+
login_prompt: 'login:'
37+
username: debian
38+
password_prompt: 'Password'
39+
password: debian
40+
login_commands:
41+
- sudo su
42+
method: minimal
43+
prompts:
44+
- root@debian
45+
- debian@debian
46+
timeout:
47+
minutes: 3
48+
- test:
49+
definitions:
50+
- from: git
51+
name: "smoke-test"
52+
path: automated/linux/smoke/smoke.yaml
53+
repository: https://github.com/linaro/test-definitions.git
54+
parameters:
55+
SKIP_INSTALL: "True"
56+
TESTS: "pwd, uname -a, ip a"
57+
- command:
58+
name: network_turn_on
59+
context:
60+
lava_test_results_dir: /home/lava-%s
61+
test_character_delay: 10
62+
device_type: qrb2210-rb1
63+
job_name: boot test (rb1) {{GITHUB_RUN_ID}}
64+
metadata:
65+
build-commit: '{{GITHUB_SHA}}'
66+
priority: 50
67+
timeouts:
68+
job:
69+
minutes: 15
70+
visibility: public

0 commit comments

Comments
 (0)