Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- job_name: ltd e2e hikey
- timeouts:
- job:
- minutes: 60
- action:
- minutes: 40
- connection:
- minutes: 2
- priority: medium
- visibility: public
- protocols:
- lava-multinode:
- timeout:
- minutes: 20
- roles:
- bt-joiner:
- connection: ssh
- count: 1
- expect_role: host
- host_role: host
- request: lava-start
- timeout:
- minutes: 30
- tinyproxy:
- connection: ssh
- count: 1
- expect_role: host
- host_role: host
- request: lava-start
- timeout:
- minutes: 30
- mosquitto:
- connection: ssh
- count: 1
- expect_role: host
- host_role: host
- request: lava-start
- timeout:
- minutes: 30
- hawkbit:
- count: 1
- device_type: qemu
- context:
- arch: amd64
- timeout:
- minutes: 30
- host:
- count: 1
- device_type: hi6220-hikey
- timeout:
- minutes: 30
- actions:
- - deploy:
- role:
- - host
- authorize: ssh
- timeout:
- minutes: 15
- to: fastboot
- namespace: ltd-test
- connection: serial
- images:
- ptable:
- url: http://builds.96boards.org/snapshots/linaro-technologies/openembedded/master-upstream-dev/hikey/rpb/latest/bootloader/ptable-linux-8g.img
- fastboot:
- url: http://builds.96boards.org/snapshots/linaro-technologies/openembedded/master-upstream-dev/hikey/rpb/latest/bootloader/fip.bin
- boot:
- url: http://builds.96boards.org/snapshots/linaro-technologies/openembedded/master-upstream-dev/hikey/rpb/50/boot-0.0+AUTOINC+06e4def583-4adfdd06f1-r0-hikey-20170521005917-50.uefi.img
- system:
- url: http://builds.96boards.org/snapshots/linaro-technologies/openembedded/master-upstream-dev/hikey/rpb/50/rpb-ltd-gateway-image-hikey-20170521005917-50.rootfs.img.gz
- compression: gz
- apply-overlay: true
- # ensure that this job raises a network interface with DHCP before relying on internet access
- os: oe
- - boot:
- role:
- - host
- namespace: ltd-test
- auto_login:
- login_prompt: "hikey login:"
- username: "linaro"
- password_prompt: "Password:"
- password: "linaro"
- login_commands:
- - echo linaro | sudo -S su
- - sudo su
- - whoami
- prompts:
- - "hikey:"
- timeout:
- minutes: 5
- method: uefi-menu
- commands: fastboot
- - deploy:
- role:
- - hawkbit
- namespace: ltd-test
- timeout:
- minutes: 10
- to: tmpfs
- images:
- rootfs:
- url: http://snapshots.linaro.org/ubuntu/images/qa-kvm/latest/ubuntu-kvm-image.img.gz
- image_arg: -drive format=raw,file={rootfs}
- compression: gz
- os: debian
- - deploy:
- role:
- - bt-joiner
- connection: ssh
- namespace: ltd-test
- os: oe
- protocols:
- lava-multinode:
- - action: prepare-scp-overlay
- request: lava-wait
- # messageID matches hostID
- messageID: ipv4
- message:
- # the key of the message matches value of the host_key
- # the value of the message gets substituted
- ipaddr: $ipaddr
- timeout: # delay_start timeout
- minutes: 21
- timeout:
- minutes: 22
- to: ssh
- - deploy:
- role:
- - tinyproxy
- connection: ssh
- namespace: ltd-test
- os: oe
- protocols:
- lava-multinode:
- - action: prepare-scp-overlay
- request: lava-wait
- # messageID matches hostID
- messageID: ipv4
- message:
- # the key of the message matches value of the host_key
- # the value of the message gets substituted
- ipaddr: $ipaddr
- timeout: # delay_start timeout
- minutes: 21
- timeout:
- minutes: 22
- to: ssh
- - deploy:
- role:
- - mosquitto
- connection: ssh
- namespace: ltd-test
- os: oe
- protocols:
- lava-multinode:
- - action: prepare-scp-overlay
- request: lava-wait
- # messageID matches hostID
- messageID: ipv4
- message:
- # the key of the message matches value of the host_key
- # the value of the message gets substituted
- ipaddr: $ipaddr
- timeout: # delay_start timeout
- minutes: 21
- timeout:
- minutes: 22
- to: ssh
- - boot:
- role:
- - hawkbit
- namespace: ltd-test
- method: qemu
- media: tmpfs
- prompts:
- - 'root@linaro'
- - boot:
- role:
- - bt-joiner
- method: ssh
- namespace: ltd-test
- prompts:
- - 'hikey:'
- parameters:
- hostID: ipv4 # messageID
- host_key: ipaddr # message key
- timeout:
- minutes: 23
- - boot:
- role:
- - tinyproxy
- method: ssh
- namespace: ltd-test
- prompts:
- - 'hikey:'
- parameters:
- hostID: ipv4 # messageID
- host_key: ipaddr # message key
- timeout:
- minutes: 23
- - boot:
- role:
- - mosquitto
- method: ssh
- namespace: ltd-test
- prompts:
- - 'hikey:'
- parameters:
- hostID: ipv4 # messageID
- host_key: ipaddr # message key
- timeout:
- minutes: 23
- - test:
- role:
- - host
- namespace: ltd-test
- timeout:
- minutes: 5
- definitions:
- - from: inline
- repository:
- metadata:
- format: Lava-Test Test Definition 1.0
- name: ltd-gw-basic-test
- description: "LTD Gateway Basic Test"
- run:
- steps:
- - 'echo "PermitRootLogin yes" >> /etc/ssh/sshd_config'
- - systemctl restart sshd.socket
- - ifconfig -a
- - lava-send ipv4 ipaddr=$(lava-echo-ipv4 eth0)
- - lava-send lava_start
- - sleep 1000
- name: ltd-gw-basic-test
- path: inline/ltd-gw-tests.yaml
- - test:
- role:
- - hawkbit
- namespace: ltd-test
- timeout:
- minutes: 5
- definitions:
- - from: inline
- repository:
- metadata:
- format: Lava-Test Test Definition 1.0
- name: ltd-docker-hawkbit
- description: "Spins up Docker Container for Hawkbit"
- install:
- deps:
- - docker.io
- run:
- steps:
- - ifconfig -a
- - lava-send hawkbit_ip ipaddr=$(lava-echo-ipv4 ens3)
- - lava-test-case docker-runtime --shell docker ps
- - lava-test-case start-hawkbit --shell docker run -it -p 8080:8080 hawkbit/hawkbit-update-server
- name: ltd-docker-hawkbit
- path: inline/ltd-hawkbit-tests.yaml
- - test:
- role:
- - bt-joiner
- namespace: ltd-test
- timeout:
- minutes: 5
- definitions:
- - from: inline
- repository:
- metadata:
- format: Lava-Test Test Definition 1.0
- name: ltd-gw-bt-joiner
- description: "LTD Gateway Bluetooth Joiner Test"
- run:
- steps:
- - lava-test-case docker-start-bt-joiner --shell docker run -it --privileged --net=host --read-only --tmpfs=/var/run --tmpfs=/var/lock --tmpfs=/var/log --name bt-joiner linarotechnologies/bt-joiner:latest-arm64
- name: ltd-gw-bt-joiner-test
- path: inline/ltd-gw-tests.yaml
- - test:
- role:
- - tinyproxy
- namespace: ltd-test
- timeout:
- minutes: 5
- definitions:
- - from: inline
- repository:
- metadata:
- format: Lava-Test Test Definition 1.0
- name: ltd-gw-tinyproxy
- description: "LTD Gateway Tinyproxy Test"
- run:
- steps:
- - lava-wait hawkbit_ip
- - IPADDR=`awk -F '=' '{print $2}' /tmp/lava_multi_node_cache.txt`
- - lava-test-case docker-start-tinyproxy --shell docker run -it --net=host --read-only --tmpfs=/var/run --tmpfs=/var/log --tmpfs=/tmp --add-host=gitci.com:$IPADDR --name tinyproxy linarotechnologies/tinyproxy:latest-arm64
- name: ltd-gw-tinyproxy-test
- path: inline/ltd-gw-tests.yaml
- - test:
- role:
- - mosquitto
- namespace: ltd-test
- timeout:
- minutes: 5
- definitions:
- - from: inline
- repository:
- metadata:
- format: Lava-Test Test Definition 1.0
- name: ltd-gw-mosquitto
- description: "LTD Gateway Mosquitto Test"
- run:
- steps:
- - touch /home/linaro/mosquitto.conf
- - lava-test-case docker-start-mosquitto --shell docker run -it --net=host --read-only -v /home/linaro/mosquitto.conf:/etc/mosquitto/conf.d/mosquitto.conf --name mosquitto linarotechnologies/mosquitto:latest-arm64
- name: ltd-gw-tinyproxy-test
- path: inline/ltd-gw-tests.yaml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement