aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Harkin <ryan.harkin@linaro.org>2020-03-05 15:13:17 +0000
committerRyan Harkin <ryan.harkin@linaro.org>2020-07-15 11:24:01 +0100
commit175bd6491d7c02be2108064eae7f80d829d969a2 (patch)
tree2f648bee745b4fc8ec6aeedc16de4fa996176e2a
parentc42634f5da54c16927f219c8f4d8a38a71904620 (diff)
iperf: add soca9 and lces2 templates
-rw-r--r--automated/linux/iperf/lces2.yaml148
-rw-r--r--automated/linux/iperf/soca9.yaml104
2 files changed, 252 insertions, 0 deletions
diff --git a/automated/linux/iperf/lces2.yaml b/automated/linux/iperf/lces2.yaml
new file mode 100644
index 0000000..f10106f
--- /dev/null
+++ b/automated/linux/iperf/lces2.yaml
@@ -0,0 +1,148 @@
+job_name: lces2-iperf
+timeouts:
+ job:
+ minutes: 60
+ action:
+ minutes: 3
+ connection:
+ minutes: 5
+priority: medium
+visibility: public
+
+metadata:
+ iperf-version: v3
+
+protocols:
+ lava-multinode:
+ roles:
+ server:
+ device_type: rzn1d
+ count: 1
+ timeout:
+ minutes: 30
+ client:
+ device_type: rzn1d
+ count: 1
+ timeout:
+ minutes: 30
+
+actions:
+
+####################
+# Deploy QSPI images
+####################
+- deploy:
+ namespace: dfu-firmware
+ role:
+ - server
+ - client
+ to: tmpfs
+ images:
+ sf_fsbl:
+ image_arg: --alt sf_fsbl --download {sf_fsbl}
+ url: https://snapshots.linaro.org/openembedded/schneider/rmh-warrior-4.9/rzn1d/39/dip/rzn1d-snarc-fsbl-fip-linaro-rel-2019.09-warrior.2-rc1-5-g7b14672.spkg
+ sf_trustedfw:
+ image_arg: --alt sf_trustedfw --download {sf_trustedfw}
+ url: https://snapshots.linaro.org/openembedded/schneider/rmh-warrior-4.9/rzn1d/39/dip/optee/optee-os-linaro-rel-2019.09-warrior.2-rc1-5-g7b14672.itb
+ sf_uboot0:
+ image_arg: --alt sf_uboot0 --download {sf_uboot0}
+ url: https://snapshots.linaro.org/openembedded/schneider/rmh-warrior-4.9/rzn1d/39/dip/ubootfitImage-linaro-rel-2019.09-warrior.2-rc1-5-g7b14672-rzn1d.itb
+ sf_uboot1:
+ image_arg: --alt sf_uboot1 --download {sf_uboot1}
+ url: https://snapshots.linaro.org/openembedded/schneider/rmh-warrior-4.9/rzn1d/39/dip/ubootfitImage-linaro-rel-2019.09-warrior.2-rc1-5-g7b14672-rzn1d.itb
+- command:
+ namespace: dfu-firmware
+ role:
+ - server
+ - client
+ name: set_boot_to_nand
+- boot:
+ namespace: dfu-firmware
+ role:
+ - server
+ - client
+ method: dfu
+ timeout:
+ minutes: 10
+- command:
+ namespace: test
+ role:
+ - server
+ - client
+ name: set_boot_to_qspi
+
+###############
+# TFTP/NFS
+###############
+- deploy:
+ namespace: test-nfs
+ role:
+ - server
+ - client
+ timeout:
+ minutes: 15
+ to: tftp
+ os: oe
+ kernel:
+ url: https://snapshots.linaro.org/openembedded/schneider/rmh-warrior-4.9/rzn1d/39/dip/zImage--4.9.215+git0+bee8587291-r4.0-rzn1-snarc-20200303124623.bin
+ type: zimage
+ dtb:
+ url: https://snapshots.linaro.org/openembedded/schneider/rmh-warrior-4.9/rzn1d/39/dip/rzn1d400-snarc-bestla--4.9.215+git0+bee8587291-r4.0-rzn1-snarc-20200303124623.dtb
+ nfsrootfs:
+ url: https://snapshots.linaro.org/openembedded/schneider/rmh-warrior-4.9/rzn1d/39/dip/dip-image-dev-rzn1-snarc-linaro-rel-2019.09-warrior.2-rc1-5-g7b14672-39.rootfs.tar.bz2
+ compression: bz2
+- boot:
+ namespace: test-nfs
+ connection-namespace: dfu-firmware
+ timeout:
+ minutes: 20
+ method: u-boot
+ commands:
+ - setenv autoload no
+ - dhcp
+ - dhcp
+ - env print
+ - setenv serverip {SERVER_IP}
+ - tftp {KERNEL_ADDR} {KERNEL}
+ - tftp {DTB_ADDR} {DTB}
+ - setenv bootargs 'console=ttyS0,115200n8 root=/dev/nfs rw nfsroot={NFS_SERVER_IP}:{NFSROOTFS},tcp,hard,intr,vers=3
+ rootwait coherent_pool=2M ip=dhcp'
+ - '{BOOTX}'
+ auto_login:
+ login_prompt: 'login:'
+ username: root
+ prompts:
+ - 'root@snarc-soca9:'
+ - 'root@rzn1-snarc:'
+
+- test:
+ role:
+ - server
+ timeout:
+ minutes: 30
+ definitions:
+ - repository: https://github.com/omnium21/test-definitions.git
+ branch: linaro
+ from: git
+ path: automated/linux/iperf/iperf-server.yaml
+ name: iperf3-test
+ parameters:
+ SERVER_ETHERNET_DEVICE: eth1
+
+- test:
+ role:
+ - client
+ timeout:
+ minutes: 30
+ definitions:
+ - repository: https://github.com/omnium21/test-definitions.git
+ branch: linaro
+ from: git
+ path: automated/linux/iperf/iperf-client.yaml
+ name: iperf3-test
+ parameters:
+ AFFINITY: "-A 0"
+ REVERSE: "-R"
+ # The MSG ID and KEY should be the same as the ones sent by lava-send above
+ MSG_ID: server-ready
+ MSG_KEY: ipaddr
diff --git a/automated/linux/iperf/soca9.yaml b/automated/linux/iperf/soca9.yaml
new file mode 100644
index 0000000..84496ae
--- /dev/null
+++ b/automated/linux/iperf/soca9.yaml
@@ -0,0 +1,104 @@
+job_name: soca9-iperf
+timeouts:
+ job:
+ minutes: 60
+ action:
+ minutes: 3
+ connection:
+ minutes: 5
+priority: medium
+visibility: public
+
+metadata:
+ iperf-version: v3
+
+protocols:
+ lava-multinode:
+ roles:
+ server:
+ device_type: soca9
+ count: 1
+ timeout:
+ minutes: 30
+ client:
+ device_type: soca9
+ count: 1
+ timeout:
+ minutes: 30
+
+actions:
+
+
+
+##################
+# Deploy WIC image
+##################
+- deploy:
+ role:
+ - server
+ - client
+ timeout:
+ minutes: 20
+ to: flasher
+ images:
+ image:
+ url: https://snapshots.linaro.org/openembedded/schneider/rmh-warrior-4.19/soca9/36/dip/dip-image-dev-snarc-soca9-linaro-rel-2019.09-warrior.1-41-g5ce40b7-36.rootfs.wic.bz2
+ compression: bz2
+ layout:
+ url: https://snapshots.linaro.org/openembedded/schneider/rmh-warrior-4.19/soca9/36/dip/dip-image-dev-snarc-soca9-linaro-rel-2019.09-warrior.1-41-g5ce40b7-36.rootfs.wic.bmap
+
+
+###################
+# dip-image-dev.wic
+###################
+# We already flashed the SDcard WIC image in the deploy step at the begging of this test run
+- boot:
+ role:
+ - server
+ - client
+ timeout:
+ minutes: 10
+ method: u-boot
+ commands:
+ - run linux_sd
+ auto_login:
+ login_prompt: "login:"
+ username: root
+ prompts:
+ - "root@snarc-soca9:"
+ - "root@rzn1-snarc:"
+ transfer_overlay:
+ download_command: udhcpc -i eth1 -n || udhcpc -i eth0 -n; wget
+ unpack_command: tar --touch -C / -xzf
+
+- test:
+ role:
+ - server
+ timeout:
+ minutes: 30
+ definitions:
+ - repository: https://github.com/omnium21/test-definitions.git
+ branch: linaro
+ from: git
+ path: automated/linux/iperf/iperf-server.yaml
+ name: iperf3-test
+ parameters:
+ SERVER_ETHERNET_DEVICE: eth1
+
+- test:
+ role:
+ - client
+ timeout:
+ minutes: 30
+ definitions:
+ - repository: https://github.com/omnium21/test-definitions.git
+ branch: linaro
+ from: git
+ path: automated/linux/iperf/iperf-client.yaml
+ name: iperf3-test
+ parameters:
+ AFFINITY: "-A 0"
+ REVERSE: "-R"
+ # The MSG ID and KEY should be the same as the ones sent by lava-send above
+ MSG_ID: server-ready
+ MSG_KEY: ipaddr