boot
deploy
test
Jobs specify high-level details only
LAVA ‘knows’ the low-level details
1 device_type: bcm2836-rpi-2-b
2 job_name: boot test
3 visibility: public
4
5 timeouts:
6 job:
7 minutes: 10
8
9 actions:
10 - deploy: …
11 - boot: …
12 - test: …
1 - deploy:
2 to: tftp
3 kernel:
4 url: https://server.org/path/to/zImage
5 type: zimage
6 dtb:
7 url: https://server.org/path/to/raspberry-pi-2b.dtb
8 ramdisk:
9 url: https://server.org/path/to/ramdisk-armhf.cpio.gz
10 compression: gz
11 os: oe
1 - boot:
2 method: u-boot
3 commands: ramdisk
4 auto_login:
5 login_prompt: 'root login:'
6 username: root
7 prompts: ['# ']
1 - test:
2 timeout:
3 minutes: 15
4 name: sanity-check
5 definitions:
6 - repository: https://git.server.org/tests/tests
7 revision: master
8 from: git
9 path: sanity-check.yaml
10 name: sanity-check
1 - deploy:
2 namespace: system
3 timeout:
4 minutes: 20
5 to: usb
6 device: sd-card
7 tool:
8 prompts: ['copying time: [0-9ms\.\ ]+,
9 copying speed [0-9\.]+ MiB\/sec']
10 images:
11 image:
12 url: "https://…/apertis_18.09-target-arm64-\
13 uboot_20180801.0.img.gz"
14 bmap:
15 url: "https://…/apertis_18.09-target-arm64-\
16 uboot_20180801.0.img.bmap"
1 os: ubuntu
2 writer:
3 tool: /usr/bin/bmaptool
4 options: copy {DOWNLOAD_URL} {DEVICE}
5 prompt: 'bmaptool: info'
1 metadata:
2 name: check-dbus-services
3 format: "Lava-Test-Shell Test Definition 1.0"
4 description: "Sanity-check all installed D-Bus services"
5 maintainer: "simon.mcvittie@collabora.co.uk"
6 scope:
7 - functional
8 devices:
9 - i386
10 environment:
11 - lava-test-shell
1 install:
2 deps:
3 - apertis-tests
4 - dbus-tests
1 run:
2 steps:
3 - common/run-test-in-systemd --user=user
4 dbus/check-dbus-services
5 - common/run-test-in-systemd dbus/check-dbus-services
1 parse:
2 pattern: 'RESULT:(?P<result>\w+):(?P<test_case_id>[^:]+):'
3 # LAVA doesn't seem to have the concept of
4 # an expected failure, so calling it skipped
5 # is the next best thing
6 fixupdict:
7 xfail: skip
Table of Contents | t |
---|---|
Exposé | ESC |
Full screen slides | e |
Presenter View | p |
Source Files | s |
Slide Numbers | n |
Toggle screen blanking | b |
Show/hide slide context | c |
Notes | 2 |
Help | h |