test:update mesh test cases for ci test(v3.2)

add mesh test case in TC_IT_MESH_EST.yml and TC_IT_MESH_COMM.yml

add job form IT_02 to IT_08
This commit is contained in:
chenyudong 2018-12-17 19:31:19 +08:00 committed by luchangjie
parent acc882f4dd
commit 58bc6be4c0
6 changed files with 8638 additions and 414 deletions

View file

@ -1790,7 +1790,49 @@ IT_011_01:
<<: *test_template
tags:
- ESP32_IDF
- SSC_T50_1
- SSC_T1_MESH1
IT_011_02:
<<: *test_template
tags:
- ESP32_IDF
- SSC_T2_MESH1
IT_011_03:
<<: *test_template
tags:
- ESP32_IDF
- SSC_T2_MESH1
IT_011_04:
<<: *test_template
tags:
- ESP32_IDF
- SSC_T3_MESH1
IT_011_05:
<<: *test_template
tags:
- ESP32_IDF
- SSC_T6_MESH1
IT_011_06:
<<: *test_template
tags:
- ESP32_IDF
- SSC_T12_MESH1
IT_011_07:
<<: *test_template
tags:
- ESP32_IDF
- SSC_T50_MESH1
IT_011_08:
<<: *test_template
tags:
- ESP32_IDF
- SSC_T1_MESH2
IT_012_01:
<<: *test_template

View file

@ -2,181 +2,227 @@
test script: InitCondMesh
restore post cmd set:
- ''
- - 'MSSC SSC[1-<node_num>] mesh -F -o 4 -a 1'
- ['P SSC[1-<node_num>] C +MESHFLAG:OK']
- - 'MSSC SSC[1-<node_num>] mesh -F -o 5 -a 1'
- ['P SSC[1-<node_num>] C +MESHFLAG:OK']
- - 'MSSC SSC[1-<node_num>] mesh -Q -o 1'
- ['P SSC[1-<node_num>] C MESH_NETWORK']
- - 'MSSC SSC[1-<node_num>] mesh -Q -o 3'
- ['P SSC[1-<node_num>] C +MESH_CONFIG:ALL']
- - 'MSSC SSC[1-<node_num>] ram'
- ['P SSC[1-<node_num>] C +FREEHEAP:']
# - - 'MSSC SSC[1-<node_num>] mesh -Q -o 1'
# - ['P SSC[1-<node_num>] C MESH_NETWORK']
.mesh_get_device_mac: &mesh_get_device_mac
.mesh_get_all_dut_mac: &mesh_get_all_dut_mac
LIST_MERGE:
- - 'MSSC SSC[1-<node_num>] mac'
- ['R SSC[1-<node_num>] A <device_mac>:\+STAMAC:(.+)\r\n']
.mesh_check_get_tree: &mesh_check_get_tree
.mesh_check_tree_num: &mesh_check_tree_num
LIST_MERGE:
- - 'MSSC SSC[1-<node_num>] mac'
- ['P SSC[1-<node_num>] A <device_mac>:\+STAMAC:(.+)\r\n']
- - 'MSSC SSC[1-<node_num>] mesh -Q -o 2'
- ['P SSC[1-<node_num>] T <node_num>']
- ['P SSC[1-<node_num>] T topo']
- - 'MESHTREE'
- ['P PC_COM RE "MESHTREE:%%s%20nodes"%%(<node_num>)']
- ['R PC_COM RE "MESHTREE:%%s"%%(<tree_node_num>)']
.mesh_check_tree_stable: &mesh_check_tree_stable
.mesh_tree_stably: &mesh_tree_stably
LIST_MERGE:
- - 'DELAY 10'
- ['']
- - 'SSC MNODE(0) mesh -Q -o 1 -t 10'
- ['R MNODE(0) C MESH_STABLE_CHECK:PASS']
- - 'SSC MNODE(0) mesh -Q -o 1 -t <stable_check_time>'
- ['P MNODE(0) RE "MESH_NETWORK:1,%%s"%%(<node_num>)', 'P MNODE(0) C MESH_STABLE_CHECK:PASS']
.reboot_all: &reboot_all
.deinit_mesh: &deinit_mesh
LIST_MERGE:
- - 'MSSC SSC[1-<node_num>] reboot'
- ['P SSC[1-<node_num>] C !!!ready!!!']
- - 'MSSC SSC[1-<node_num>] mesh -I -o 1'
- ['P SSC[1-<node_num>] C +MESH:DEINITED']
.force_reboot: &force_reboot
.mesh_force_reboot: &mesh_force_reboot
LIST_MERGE:
- - 'FPOWERON SSC[1-<node_num>]'
- ['']
- - 'DELAY 1'
- ['']
- - 'MSSC SSC[1-<node_num>] restore'
- ['P SSC[1-<node_num>] C !!!ready!!!']
.all_nodes_mesh_config: &all_nodes_mesh_config
.mesh_config_all_duts: &mesh_config_all_duts
LIST_MERGE:
- - 'MSSC SSC[1-<node_num>] mesh -I'
- ['P SSC[1-<node_num>] C +MESH:INITED']
- - 'MSSC SSC[1-<node_num>] mesh -A -o 12 -t <duration_ms> -c <cnx_rssi> -l <select_rssi> -f <switch_rssi> -b <backoff_rssi>'
- ['P SSC[1-<node_num>] C +MESH_SET_PARENT_SWITCH:OK']
- - 'MSSC SSC[1-<node_num>] mesh -A -o 14 -t <threshold_high> -c <threshold_medium> -l <threshold_low>'
- ['P SSC[1-<node_num>] C +MESH_RSSI_THRESHOLD:OK']
- - 'MSSC SSC[1-<node_num>] mesh -A -o 9 -t <auth_mode> -s <map_password>'
- ['P SSC[1-<node_num>] C +MESH_SET_AP_AUTH_MODE:OK']
- - 'MSSC SSC[1-<node_num>] mesh -P -g <mesh_id> -s <ap_ssid> -p <ap_password> -n <ap_channel> -m <max_connect> -y <max_layer>'
- ['P SSC[1-<node_num>] C +MESH:CONFIG,OK']
- - 'MSSC SSC[1-<node_num>] meshset -M -o 0 -t <map_auth_mode> -e <map_password> -l 10'
- ['P SSC[1-<node_num>] C +MESHSET:MAP_AUTH,OK']
- - 'MSSC SSC[1-<node_num>] meshset -G -o 0 -m <mesh_id> -s <router_ssid> -p <router_password> -n
<router_channel> -b <router_bssid> -t <max_connect> -e <map_password> -i <ie_encrypt>'
- ['P SSC[1-<node_num>] C +MESHSET:CFG,OK']
- - 'MSSC SSC[1-<node_num>] meshset -L -o 0 -l <max_layer>'
- ['P SSC[1-<node_num>] C +MESHSET:MLAYER,OK']
- - 'MSSC SSC[1-<node_num>] meshset -W -o 0 -t <duration_ms> -n <cnx_rssi> -l <select_rssi> -i <switch_rssi> -k <backoff_rssi>'
- ['P SSC[1-<node_num>] C +MESHSET:SWITCH,OK']
- - 'MSSC SSC[1-<node_num>] meshset -K -o 0 -i <allow_roots>'
- ['P SSC[1-<node_num>] C +MESHSET:ALLOW_ROOTS,OK']
- - 'MSSC SSC[1-<node_num>] meshset -J -o 0 -t <assoc_expire>'
- ['P SSC[1-<node_num>] C +MESHSET:ASSOC,OK']
.root_do_connect: &root_do_connect
.mesh_set_same_ssid_softap: &mesh_set_same_ssid_softap
LIST_MERGE:
- - 'SOC SOC1 LISTEN <test_tcp_port1> <pc_ip>'
- ['R SOC_COM L OK']
- - 'SSC MNODE(0) mesh -S -o 0 -i <pc_ip> -t <test_tcp_port1>'
- ['P MNODE(0) C +CONNECT,OK']
- ['P SOC1 C +ACCEPT']
- - 'SOC SOC1 MACCEPT GSOC1'
- ['R SOC_COM L OK']
- - 'MSSC SSC[1-3] op -S -o 2'
- ['P SSC[1-3] C +MODE:OK']
- - 'MSSC SSC[1-3] ap -S -s <target_ssid> -p <target_password> -t <target_auth_enum> -n
[<router_channel>,<router_channel>,<wrong_channel>]'
- ['P SSC[1-3] C +SAP:OK']
initial condition:
- tag: ENABLED_1
- tag: MESH_DEINIT_STA
<<: *MESH_INIT_COND
initial condition detail: if mesh tree not exist, start one node first, then start others, after mesh network
established, root connect server
initial condition detail: all DUTs with mesh not inited, station mode
check cmd set:
- ''
- *mesh_check_get_tree
- *mesh_check_tree_stable
- *root_do_connect
- - MSSC SSC[1-<node_num>] mesh -Q
- - P SSC[1-<node_num>] C MESH_STATE_NONE
- - MSSC SSC[1-<node_num>] op -S -o 1
- - P SSC[1-<node_num>] C +MODE:OK
- *mesh_get_all_dut_mac
restore cmd set:
- ''
- *reboot_all
- *all_nodes_mesh_config
- - SSC SSC1 mesh -T
- - P SSC1 C +MESH:START,OK
- - DELAY 10
- - P SSC1 C MESH_EVENT_CONNECTED
- - SSC SSC[2-<node_num>] mesh -T
- - P SSC[2-<node_num>] C +MESH:START,OK
- - DELAY <delay_time>
- - ''
- *mesh_check_get_tree
- *mesh_check_tree_stable
- *root_do_connect
- - MSSC SSC[1-<node_num>] mesh -I -o 1
- - P SSC[1-<node_num>] C +MESH_DEINITED
- - MSSC SSC[1-<node_num>] op -S -o 1
- - P SSC[1-<node_num>] C +MODE:OK
- *mesh_get_all_dut_mac
force restore cmd set:
- ''
- *force_reboot
- *all_nodes_mesh_config
- - SSC SSC1 mesh -T
- - P SSC1 C +MESH:START,OK
- - DELAY 10
- - P SSC1 C MESH_EVENT_CONNECTED
- - SSC SSC[2-<node_num>] mesh -T
- - P SSC[2-<node_num>] C +MESH:START,OK
- - DELAY <delay_time>
- - ''
- *mesh_check_get_tree
- *mesh_check_tree_stable
- *root_do_connect
- tag: ENABLED_2
# - - MSSC SSC[1-<node_num>] reboot
- - FREBOOT SSC[1-<node_num>]
- - P SSC[1-<node_num>] C !!!ready!!!
- *mesh_get_all_dut_mac
- tag: MESH_INIT1
<<: *MESH_INIT_COND
initial condition detail: if mesh tree not exist, start all nodes together
initial condition detail: DUTs with mesh network already established, router....
check cmd set:
- ''
- *mesh_check_get_tree
- *mesh_check_tree_stable
- *mesh_get_all_dut_mac
- - VALUE <tree_node_num> <node_num>
- - R PC_COM L OK
- *mesh_check_tree_num
- *mesh_tree_stably
- - MSSC SSC[1-<node_num>] mesh -Q -o 3
- - P SSC[1-<node_num>] RE "MID,%%s"%%(<mesh_id>)
- P SSC[1-<node_num>] RE "MROUTER,%%s"%%(<router_ssid>)
- P SSC[1-<node_num>] RE "SWITCH_PARENT,%%s"%%(<duration_ms>)
- P SSC[1-<node_num>] C NO_SPECIFIC_SETTINGS
restore cmd set:
- ''
- *reboot_all
- *all_nodes_mesh_config
- - MSSC SSC[1-<node_num>] mesh -I -o 1
- - P SSC[1-<node_num>] C MESH_DEINITED
- - MSSC SSC[1-<node_num>] op -S -o 1
- - P SSC[1-<node_num>] C +MODE:OK
- *mesh_get_all_dut_mac
- - MSSC SSC[1-<node_num>] mesh -I
- - P SSC[1-<node_num>] C +MESH:INIT,OK
- *mesh_config_all_duts
- - MSSC SSC[1-<node_num>] mesh -T
- - P SSC[1-<node_num>] C +MESH:START,OK
- - DELAY <delay_time>
- - ''
- *mesh_check_get_tree
- *mesh_check_tree_stable
- - VALUE <tree_node_num> <node_num>
- - R PC_COM L OK
- *mesh_check_tree_num
- *mesh_tree_stably
force restore cmd set:
- ''
- *force_reboot
- *all_nodes_mesh_config
- - MSSC SSC[1-<node_num>] reboot
- - P SSC[1-<node_num>] C !!!ready!!!
- *mesh_get_all_dut_mac
- - MSSC SSC[1-<node_num>] mesh -I
- - P SSC[1-<node_num>] C +MESH:INIT,OK
- *mesh_config_all_duts
- - MSSC SSC[1-<node_num>] mesh -T
- - P SSC[1-<node_num>] C +MESH:START,OK
- - DELAY <delay_time>
- - ''
- *mesh_check_get_tree
- *mesh_check_tree_stable
- tag: ENABLED_3
- - VALUE <tree_node_num> <node_num>
- - R PC_COM L OK
- *mesh_check_tree_num
- *mesh_tree_stably
- tag: MESH_INIT_SWITCH
<<: *MESH_INIT_COND
initial condition detail: all mesh nodes configed but not started
initial condition detail: 3 duts in softAP mode with same ssid/password, all duts establish network
check cmd set:
- ''
- - SSC SSC[1-3] ap -Q
- - P SSC[1-3] RE "RE "APCONFIG:%%s"%%(<target_ssid>)
- - MSSC SSC[4-<node_num>] mac
- - R SSC[4-<node_num>] A <device_mac>:\+STAMAC:(.+)\r\n
- - VALUE <tree_node_num> <node_num>-3
- - R PC_COM L OK
- - MSSC SSC[4-<node_num>] mesh -Q -o 2
- - P SSC[4-<node_num>] T topo
- - MESHTREE
- - R PC_COM RE "TREE_TOTAL_NODES:%%s"%%(<tree_node_num>)
- - MSSC SSC[4-<node_num>] mesh -Q -o 3
- P SSC[4-<node_num>] RE "MROUTER,%%s"%%(<target_ssid>)
- - DELAY 5
- - P PC_COM C +DELAYDONE
- P SSC[4-<node_num>] NC MESH_EVENT_DISCONNECTED
restore cmd set:
- ''
- - ASSERT
- - ''
restore cmd set:
- ''
- *reboot_all
- *all_nodes_mesh_config
- *mesh_get_device_mac
force restore cmd set:
- ''
- *force_reboot
- *all_nodes_mesh_config
- *mesh_get_device_mac
- tag: DISABLED_1
- - MSSC SSC[1-<node_num>] reboot
- - P SSC[1-<node_num>] C !!!ready!!!
- *mesh_get_all_dut_mac
- *mesh_set_same_ssid_softap
- - MSSC SSC[4-<node_num>] mesh -I
- - P SSC[4-<node_num>] C +MESH:INIT,OK
- - MSSC SSC[4-<node_num>] meshset -M -o 0 -t <map_auth_mode> -e <map_password> -l 10
- - P SSC[4-<node_num>] C +MESHSET:MAP_AUTH,OK
- - MSSC SSC[4-<node_num>] meshset -G -o 0 -m <mesh_id> -s <target_ssid> -p <target_password> -n <try_channel> -h 1 -t
<max_connect> -e <map_password> -i <ie_encrypt>
- - P SSC[4-<node_num>] C +MESHSET:CFG,OK
- - MSSC SSC[4-<node_num>] meshset -L -o 0 -l <max_layer>
- - P SSC[4-<node_num>] C +MESHSET:MLAYER,OK
- - MSSC SSC[4-<node_num>] meshset -W -o 0 -t <duration_ms> -n <cnx_rssi> -l <select_rssi> -i <switch_rssi> -k <backoff_rssi>
- - P SSC[4-<node_num>] C +MESHSET:SWITCH,OK
- - MSSC SSC[4-<node_num>] meshset -K -o 0 -i <allow_roots>
- - P SSC[4-<node_num>] C +MESHSET:ALLOW_ROOTS,OK
- - MSSC SSC[4-<node_num>] mesh -T
- - P SSC[4-<node_num>] C +MESH:START,OK
- - DELAY <delay_time>
- - ''
- - VALUE <tree_node_num> <node_num>-3
- - R PC_COM L OK
- - MSSC SSC[4-<node_num>] mesh -Q -o 2
- - P SSC[4-<node_num>] T topo
- - MESHTREE
- - R PC_COM RE "TREE_TOTAL_NODES:%%s"%%(<tree_node_num>)
- - DELAY 10
- - P PC_COM C +DELAYDONE
- P SSC[4-<node_num>] NC MESH_EVENT_DISCONNECTED
- tag: MESH_NO_ROUTER
<<: *MESH_INIT_COND
initial condition detail: all mesh node in softap+sta mode, disable all mesh node
restore post cmd set:
- ''
initial condition detail: DUTs with mesh network already established, router....
check cmd set:
- ''
- *mesh_get_all_dut_mac
- - VALUE <tree_node_num> <node_num>
- - R PC_COM L OK
- *mesh_check_tree_num
- *mesh_tree_stably
- - MSSC SSC[1-<node_num>] mesh -Q -o 3
- - P SSC[1-<node_num>] RE "MID,%%s"%%(<mesh_id>)
- P SSC[1-<node_num>] C NO_ROUTER
restore cmd set:
- ''
- - ASSERT
- - ''
restore cmd set:
- ''
- *reboot_all
- - MSSC SSC[1-<node_num>] op -S -o 3
- - P SSC[1-<node_num>] C +MODE:OK
- - MSSC SSC[1-<node_num>] sta -D
- - P SSC[1-<node_num>] C +QAP:OK
- *mesh_get_device_mac
force restore cmd set:
- ''
- *force_reboot
- - MSSC SSC[1-<node_num>] op -S -o 3
- - P SSC[1-<node_num>] C +MODE:OK
- - MSSC SSC[1-<node_num>] sta -D
- - P SSC[1-<node_num>] C +QAP:OK
- *mesh_get_device_mac
- - ASSERT
- - ''
- tag: MESH_STABLE
<<: *MESH_INIT_COND
initial condition detail: DUTs with mesh network already established and stable, never restore
check cmd set:
- ''
- *mesh_get_all_dut_mac
- - MSSC SSC[1-<node_num>] mesh -Q -o 2
- - P SSC[1-<node_num>] T topo
- - MESHTREE stable
- - P PC_COM RE "MESHTREE:%%s%20nodes"%%(<node_num>)
restore cmd set:
- ''
- - ASSERT
- - ''
force restore cmd set:
- ''
- - ASSERT
- - ''

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,867 @@
.MESH_CASE: &MESH_CASE
SDK: ESP32_IDF
Test App: SSC_MESH
auto test: 'Yes'
category: Function
test point 1: basic function
initial condition: MESH_DEINIT_STA
test environment: SSC_T50_MESH1
execution time: 0.0
module: Mesh
sub module: Misc
version: v1 (2018-08-15)
CI ready: 'No'
level: Integration
allow fail: ''
.set_softap_dut1: &set_softap_dut1
LIST_MERGE:
- - 'SSC SSC1 op -S -o 2'
- ['P SSC1 C +MODE:OK']
- - 'SSC SSC1 ap -S -s <target_ssid> -p <target_password> -n <router_channel> -t <target_auth_enum>'
- ['P SSC1 C +SAP:OK']
- - 'SSC SSC1 dhcp -E -o 2'
- ['R SSC1 C +DHCP:AP,OK']
- - 'SSC SSC1 ip -S -o 2 -i 192.168.123.1'
- ['R SSC1 C +IP:OK']
- - 'SSC SSC1 dhcp -S -o 2'
- ['R SSC1 C +DHCP:AP,OK']
test cases:
- ID: MESH_MISC_0101
<<: *MESH_CASE
cmd set:
- ''
- - SSC SSC1 mesh -I
- - P SSC1 C +MESH:INIT,OK
- - SSC SSC1 meshset -G -o 0 -m <mesh_id> -s <router_ssid> -p <router_password> -n
<router_channel> -b <router_bssid> -t <max_connect> -e <map_password> -i <ie_encrypt>
- - P SSC1 C +MESHSET:CFG,OK
- - SSC SSC1 mesh -I -o 1
- - P SSC1 C +MESH:DEINIT,OK
expected result: |-
1. succeed
2. succeed
steps: |-
1. dut1 init/config mesh
2. dut1 deinit mesh
initial condition: MESH_DEINIT_STA
test environment: SSC_T1_MESH1
summary: 1 dut mesh deinit after mesh configured
test point 2: mesh deinit/stop test
CI ready: 'Yes'
- ID: MESH_MISC_0102
<<: *MESH_CASE
cmd set:
- ''
- - SSC SSC1 mesh -I
- - P SSC1 C +MESH:INIT,OK
- - SSC SSC1 meshset -G -o 0 -m <mesh_id> -s <router_ssid> -p <router_password> -n
<router_channel> -b <router_bssid> -t <max_connect> -e <map_password> -i <ie_encrypt>
- - P SSC1 C +MESHSET:CFG,OK
- - SSC SSC1 mesh -T
- - P SSC1 C +MESH:START,OK
- - DELAY 1 5
- - ''
- - SSC SSC1 mesh -I -o 1
- - P SSC1 C +MESH:DEINIT,OK
expected result: |-
1. succeed
2. succeed
steps: |-
1. dut1 start mesh
2. dut1 deinit mesh
initial condition: MESH_DEINIT_STA
test environment: SSC_T1_MESH1
summary: 1 dut mesh deinit after mesh started
test point 2: mesh deinit/stop test
CI ready: 'Yes'
- ID: MESH_MISC_0103
<<: *MESH_CASE
cmd set:
- ''
- - MSSC SSC[1-<node_num>] mesh -I
- - P SSC[1-<node_num>] C +MESH:INIT,OK
- - MSSC SSC[1-<node_num>] meshset -G -o 0 -m <mesh_id> -s <router_ssid> -p <router_password> -n
<router_channel> -b <router_bssid> -t <max_connect> -e <map_password> -i <ie_encrypt>
- - P SSC[1-<node_num>] C +MESHSET:CFG,OK
- - MSSC SSC[1-<node_num>] mesh -T
- - P SSC[1-<node_num>] C +MESH:START,OK
- - DELAY 1 5
- - ''
- - MSSC SSC[1-<node_num>] mesh -T -o 1
- - P SSC[1-<node_num>] C +MESH:STOP,OK
expected result: |-
1. succeed
2. succeed
steps: |-
1. dut1 start mesh
2. dut1 stop mesh
initial condition: MESH_DEINIT_STA
test environment: SSC_T6_MESH1
summary: 6 duts mesh stop after mesh started
test point 2: mesh deinit/stop test
CI ready: 'Yes'
- ID: MESH_MISC_0104
<<: *MESH_CASE
cmd set:
- ''
- - MSSC SSC[1-<node_num>] mesh -T -o 2
- - P SSC[1-<node_num>] C +MESH:START,OK
- - DELAY <delay_time>
- - ''
- - MSSC SSC[1-<node_num>] mesh -Q -o 2
- - P SSC[1-<node_num>] T topo
- - MESHTREE
- - R PC_COM RE "MESHTREE:%%s"%%(<node_num>)
- - SSC MNODE(0) meshsend -S -d <MNODE(0,-1)_mac> -l 1000 -c 20 -b 20 -f 2
- - P MNODE(0) C +MESHTXPKT,OK C +MESHSEND,OK
- P MNODE(0,-1) C +MESHRXPKT,OK
- - SSC MNODE(0,-1) meshsend -S -d <server_mac> -l 1000 -c 20 -b 20 -f 8
- - P MNODE(0,-1) C +MESHTXPKT,OK C +MESHSEND,OK
- P MNODE(0) C TODS_PKT,OK
- - SSC MNODE(0) mesh -R -o 1
- - P MNODE(0) C +MESHRX:STOP,OK
- - SSC MNODE(0,-1) meshsend -S -d <server_mac> -l 1000 -c 100 -b 20 -f 8
- - ''
- - DELAY 10
- - P PC_COM C DELAYDONE
- P MNODE(0,-1) C +MESHTXPKT,OK NC +MESHTXPKT,FAIL NC +MESHSEND,OK
- - SSC MNODE(0) mesh -R -o 0
- - P MNODE(0) C +MESHRX:START,OK C TODS_PKT,OK
- P MNODE(0,-1) C +MESHSEND,OK
expected result: |-
1. restart mesh and establish network
2. root send packet to leaf
3. leaf send packet tods
4. stop recv task on root
5. leaf send packet tods, blocked
5. start recv task on root, leaf send out all packet
steps: |-
1. dut1 start mesh
2. dut1 stop mesh
initial condition: MESH_INIT1
test environment: SSC_T6_MESH1
summary: mesh restart and send packet test
test point 2: mesh deinit/stop test
CI ready: 'No'
- ID: MESH_MISC_0201
<<: *MESH_CASE
cmd set:
- ''
- - SSC SSC1 mesh -I
- - P SSC1 C +MESH:INIT,OK
- - SSC SSC1 meshset -G -o 0 -m <mesh_id> -s <router_ssid> -p <router_password> -n
<router_channel> -b <router_bssid> -t <max_connect> -e <map_password> -i <ie_encrypt>
- - P SSC1 C +MESHSET:CFG,OK
- - SSC SSC1 mesh -T
- - P SSC1 C +MESH:START,OK
- - DELAY 10
- - P SSC1 C MESH_EVENT_CONNECTED,1 C MESH_EVENT_ROOT_GOT_IP
expected result: |-
1. succeed
2. succeed
steps: |-
1. start dut1 and connect to router
2. check MESH_EVENT_ROOT_GOT_IP
initial condition: MESH_DEINIT_STA
test environment: SSC_T1_MESH1
summary: MESH_EVENT_CHILD_CONNECTED and MESH_EVENT_ROOT_GOT_IP test
test point 2: mesh event test
CI ready: 'Yes'
- ID: MESH_MISC_0202
<<: *MESH_CASE
cmd set:
- ''
- - SSC SSC[1-2] mesh -I
- - P SSC[1-2] C +MESH:INIT,OK
- - SSC SSC[1-2] meshset -G -o 0 -m <mesh_id> -s <router_ssid> -p <router_password> -n
<router_channel> -b <router_bssid> -t <max_connect> -e <map_password> -i <ie_encrypt>
- - P SSC[1-2] C +MESHSET:CFG,OK
- - SSC SSC1 mesh -T
- - P SSC1 C +MESH:START,OK
- - DELAY 10
- - P SSC1 C MESH_EVENT_CONNECTED,1
- - SSC SSC2 mesh -T
- - P SSC2 C +MESH:START,OK C MESH_EVENT_CONNECTED,2
- P SSC1 C MESH_EVENT_CHILD_CONNECTED C MESH_EVENT_ROUTING_TABLE_ADD
expected result: |-
1. succeed
2. succeed
steps: |-
1. start dut1 to be root first
2. start another and check event on dut1
initial condition: MESH_DEINIT_STA
test environment: SSC_T2_MESH1
summary: MESH_EVENT_CHILD_CONNECTED and MESH_EVENT_ROUTING_TABLE_ADD test
test point 2: mesh event test
CI ready: 'Yes'
- ID: MESH_MISC_0203
<<: *MESH_CASE
cmd set:
- ''
- - SSC SSC[1-3] mesh -I
- - P SSC[1-3] C +MESH:INIT,OK
- - SSC SSC[1-3] meshset -G -o 0 -m <mesh_id2> -s <router_ssid> -p <router_password> -n
<router_channel> -b <router_bssid> -t 1 -e <map_password> -i <ie_encrypt>
- - P SSC[1-3] C +MESHSET:CFG,OK
- - SSC SSC[1-2] mesh -T
- - P SSC[1-2] C +MESH:START,OK
- - DELAY 10
- - P SSC[1-2] C MESH_EVENT_CONNECTED
- - SSC SSC3 mesh -T
- - P SSC3 C +MESH:START,OK C MESH_EVENT_CONNECTED,3
- P SSC[1-2] C MESH_EVENT_ROUTING_TABLE_ADD
expected result: |-
1. succeed
2. succeed
steps: |-
1. set max_connect=1 and two duts start mesh and establish network
2. start another and check event on dut1
initial condition: MESH_DEINIT_STA
test environment: SSC_T3_MESH1
summary: MESH_EVENT_ROUTING_TABLE_ADD test (layer3 join)
test point 2: mesh event test
CI ready: 'Yes'
#TODO: wrong password should not find MESH_EVENT_ROUTING_TABLE_ADD
- ID: MESH_MISC_0205
<<: *MESH_CASE
cmd set:
- ''
- - SSC MNODE(0,0) reboot
- - P MNODE(0,0) C !!!ready!!!
- P MNODE(0) C MESH_EVENT_CHILD_DISCONNECTED
- P MNODE(0) C MESH_EVENT_ROUTING_TABLE_REMOVE
expected result: |-
1. succeed
2. succeed
steps: |-
1. reboot root
2. layer2 disconnected and then become new root
initial condition: MESH_INIT1
test environment: SSC_T2_MESH1
summary: MESH_EVENT_CHILD_DISCONNECTED and MESH_EVENT_ROUTING_TABLE_REMOVE test
test point 2: mesh event test
CI ready: 'Yes'
- ID: MESH_MISC_0206
<<: *MESH_CASE
cmd set:
- ''
- - FREBOOT MNODE(0,0)
- - P MNODE(0,0) C !!!ready!!!
- - DELAY 10
- - P MNODE(0) C MESH_EVENT_CHILD_DISCONNECTED
- P MNODE(0) C MESH_EVENT_ROUTING_TABLE_REMOVE
expected result: |-
1. succeed
2. succeed
steps: |-
1. reboot root
2. layer2 disconnected and then become new root
initial condition: MESH_INIT1
test environment: SSC_T2_MESH1
summary: MESH_EVENT_CHILD_DISCONNECTED and MESH_EVENT_ROUTING_TABLE_REMOVE test (power reset)
test point 2: mesh event test
CI ready: 'Yes'
- ID: MESH_MISC_0207
<<: *MESH_CASE
cmd set:
- ''
- - SSC MNODE(0,0) mesh -I -o 1
- - P MNODE(0,0) C MESH:DEINIT,OK
- P MNODE(0) C MESH_EVENT_CHILD_DISCONNECTED
- P MNODE(0) C MESH_EVENT_ROUTING_TABLE_REMOVE
expected result: |-
1. succeed
2. succeed
steps: |-
1. reboot root
2. layer2 disconnected and then become new root
initial condition: MESH_INIT1
test environment: SSC_T2_MESH1
summary: MESH_EVENT_CHILD_DISCONNECTED and MESH_EVENT_ROUTING_TABLE_REMOVE test (mesh deinit)
test point 2: mesh event test
CI ready: 'Yes'
- ID: MESH_MISC_0208
<<: *MESH_CASE
cmd set:
- ''
- - SSC MNODE(0,0,0) reboot
- - P MNODE(0,0,0) C !!!ready!!!
- P MNODE(0,0) C MESH_EVENT_ROUTING_TABLE_REMOVE
- P MNODE(0) C MESH_EVENT_ROUTING_TABLE_REMOVE
expected result: |-
1. succeed
2. succeed
steps: |-
1. reboot root
2. layer2 disconnected and then become new root
initial condition: MESH_INIT1
test environment: SSC_T12_MESH1
summary: MESH_EVENT_ROUTING_TABLE_REMOVE test (layer3 leave)
test point 2: mesh event test
CI ready: 'Yes'
- ID: MESH_MISC_0209
<<: *MESH_CASE
cmd set:
- ''
- - LOOP 2 1 "[1,0]" "[1,0]"
- - ''
- - SSC MNODE(0) mesh -O -t {%d}
- - P MNODE(0) C +MESH_POST_STATE,OK
- P SSC[1-<node_num>] C MESH_EVENT_TODS_STATE,{%d}
- - SSC MNODE(0) mesh -O -t 0
- - P MNODE(0) C +MESH_POST_STATE,OK
- - DELAY 5
- - P PC_COM C DELAYDONE
- P SSC[1-<node_num>] NC MESH_EVENT_TODS_STATE
expected result: |-
1. succeed
2. succeed
3. succeed
steps: |-
1. establish mesh network
2. root post toDS state
3. check MESH_EVENT_TODS_STATE on all dut
initial condition: MESH_INIT1
test environment: SSC_T2_MESH1
summary: MESH_EVENT_TODS_STATE test when root post state
test point 2: mesh event test
CI ready: 'Yes'
- ID: MESH_MISC_0210
<<: *MESH_CASE
cmd set:
- ''
- - SSC SSC[1-2] mesh -I
- - P SSC[1-2] C +MESH:INIT,OK
- - SSC SSC[1-2] meshset -G -o 0 -m <mesh_id> -s <router_ssid> -p <router_password> -n
<router_channel> -b <router_bssid> -t <max_connect> -e <map_password> -i <ie_encrypt>
- - P SSC[1-2] C +MESHSET:CFG,OK
- - SSC SSC1 mesh -T
- - P SSC1 C +MESH:START,OK
- - DELAY 10
- - P SSC1 C MESH_EVENT_CONNECTED,1 C MESH_EVENT_ROOT_GOT_IP
- - SSC SSC1 mesh -O -t 1
- - P SSC1 C +MESH_POST_STATE,OK
- P SSC1 C MESH_EVENT_TODS_STATE,1
- - SSC SSC2 mesh -T
- - P SSC2 C +MESH:START,OK MESH_EVENT_CONNECTED,2
- P SSC2 C MESH_EVENT_TODS_STATE,1
- - SSC SSC1 reboot
- - P SSC2 C MESH_EVENT_DISCONNECTED
- P SSC2 C MESH_EVENT_NETWORK_STATE,1
expected result: |-
1. succeed
2. succeed
3. succeed
steps: |-
1. establish mesh network
2. root post toDS state
3. check MESH_EVENT_TODS_STATE on all dut
initial condition: MESH_DEINIT_STA
test environment: SSC_T2_MESH1
summary: MESH_EVENT_TODS_STATE test when layer2 connected and root disappear
test point 2: mesh event test
CI ready: 'Yes'
# TODO: not work on v3.1
- ID: MESH_MISC_0211
<<: *MESH_CASE
cmd set:
- ''
- - LOOP 2 1 "[1,0]" "[1,0]"
- - ''
- - SSC MNODE(0) mesh -O -t {%d}
- - P MNODE(0) C +MESH_POST_STATE,OK
- P SSC[1-<node_num>] C MESH_EVENT_TODS_STATE,{%d}
expected result: |-
1. succeed
2. succeed
3. succeed
steps: |-
1. establish mesh network
2. root post toDS state
3. check MESH_EVENT_TODS_STATE on all duts
initial condition: MESH_INIT1
test environment: SSC_T50_MESH1
summary: multiple nodes, MESH_EVENT_TODS_STATE test
test point 2: mesh event test
CI ready: 'No'
- ID: MESH_MISC_0212
<<: *MESH_CASE
cmd set:
- ''
- - SSC SSC1 mesh -I
- - P SSC1 C +MESH:INIT,OK
- - SSC SSC1 meshset -G -o 0 -m <mesh_id> -s <router_ssid> -p <router_password> -n
<router_channel> -b <router_bssid> -t <max_connect> -e <map_password> -i <ie_encrypt>
- - P SSC1 C +MESHSET:CFG,OK
- - SSC SSC1 mesh -T
- - P SSC1 C MESH_EVENT_STARTED
- - DELAY 5
- - ''
- - SSC SSC1 mesh -T -o 1
- - P SSC1 C MESH_EVENT_STOPPED
expected result: |-
1. succeed
2. succeed
steps: |-
1. dut1 start mesh
2. check MESH_EVENT_STARTED on dut1
2. dut1 stop mesh
2. check MESH_EVENT_STOPPED on dut1
initial condition: MESH_DEINIT_STA
test environment: SSC_T1_MESH1
summary: MESH_EVENT_STARTED and MESH_EVENT_STOPPED test
test point 2: mesh event test
CI ready: 'Yes'
- ID: MESH_MISC_0213
<<: *MESH_CASE
cmd set:
- ''
- - SSC SSC1 mesh -I
- - P SSC1 C +MESH:INIT,OK
- - SSC SSC1 meshset -G -o 0 -m <mesh_id> -s <router_ssid> -p <router_password> -n
<wrong_channel> -b <router_bssid> -t <max_connect> -e <map_password> -i <ie_encrypt>
- - P SSC1 C +MESHSET:CFG,OK
- - SSC SSC1 mesh -T
- - P SSC1 C +MESH:START,OK
- - DELAY 10
- - P SSC1 C MESH_EVENT_NO_PARENT_FOUND
expected result: |-
1. succeed
2. succeed
steps: |-
1. dut1 start mesh
2. check MESH_EVENT_STARTED on dut1
2. dut1 stop mesh
2. check MESH_EVENT_STOPPED on dut1
initial condition: MESH_DEINIT_STA
test environment: SSC_T1_MESH1
summary: MESH_EVENT_NO_PARENT_FOUND test
test point 2: mesh event test
CI ready: 'Yes'
- ID: MESH_MISC_0214
<<: *MESH_CASE
cmd set:
- ''
- - SSC SSC1 mesh -I
- - P SSC1 C +MESH:INIT,OK
- - SSC SSC1 meshset -G -o 0 -m <mesh_id> -s <router_ssid> -p <router_password> -n
<router_channel> -b <router_bssid> -t <max_connect> -e <map_password> -i <ie_encrypt>
- - P SSC1 C +MESHSET:CFG,OK
- - SSC SSC1 meshset -O -o 0 -n 0 -t 0
- - P SSC1 C +MESHSET:SELF_ORG,OK
- - SSC SSC1 mesh -T
- - P SSC1 C +MESH:START,OK
- - SSC SSC1 sta -S -n <router_channel>
- - P SSC1 C MESH_EVENT_SCAN_DONE
expected result: |-
1. succeed
2. succeed
steps: |-
1. dut1 start mesh self_organized=false
2. wifi scan
2. check MESH_EVENT_SCAN_DONE on dut1
initial condition: MESH_DEINIT_STA
test environment: SSC_T1_MESH1
summary: MESH_EVENT_SCAN_DONE test
test point 2: mesh event test
CI ready: 'No'
#TODO: need discussion
- ID: MESH_MISC_0215
<<: *MESH_CASE
cmd set:
- ''
- - SSC MNODE(0) mesh -W -o 1
- - P MNODE(0) C +MESH:VOTE,OK
- P SSC[1-<node_num>] C MESH_EVENT_VOTE_STARTED
- - DELAY 10
- - P SSC[1-<node_num>] C MESH_EVENT_VOTE_STOPPED
expected result: |-
1. succeed
2. succeed
steps: |-
1. root vote
2. check all duts start vote
initial condition: MESH_INIT1
test environment: SSC_T6_MESH1
summary: MESH_EVENT_VOTE_STARTED and MESH_EVENT_VOTE_STOPPED test
test point 2: mesh event test
CI ready: 'No'
- ID: MESH_MISC_0216
<<: *MESH_CASE
cmd set:
- ''
- - SSC MNODE(0) mesh -W -o 1
- - P MNODE(0) C +MESH:VOTE,OK
- P SSC[1-<node_num>] C MESH_EVENT_VOTE_STARTED
- - SSC MNODE(0) reboot
- - P MNODE(0) !!!ready!!!
- - DELAY 30
- - ''
- - SSC SSC[1-<node_num>] mesh -W -o 2
- - P SSC[1-<node_num>] C VOTE_START_STOP_EQUAL
expected result: |-
1. succeed
2. succeed
steps: |-
1. dut1 start mesh self_organized=false
2. wifi scan
2. check MESH_EVENT_SCAN_DONE on dut1
initial condition: MESH_INIT1
test environment: SSC_T50_MESH1
summary: multiple nodes, MESH_EVENT VOTE_STARTED and VOTE_STOPPED equal test
test point 2: mesh event test
CI ready: 'No'
#TODO: need discussion
- ID: MESH_MISC_0217
<<: *MESH_CASE
cmd set:
- ''
- - SSC MNODE(0) mesh -W -o 1
- - P MNODE(0) C +MESH:VOTE,OK
- P SSC[1-<node_num>] C MESH_EVENT_VOTE_STARTED
- - DELAY 10
- - P SSC[1-<node_num>] C MESH_EVENT_VOTE_STOPPED
expected result: |-
1. succeed
2. succeed
steps: |-
1. root vote
2. check all duts start vote
initial condition: MESH_INIT1
test environment: SSC_T50_MESH1
summary: multiple nodes, MESH_EVENT_VOTE_STARTED and MESH_EVENT_VOTE_STOPPED test
test point 2: mesh event test
- ID: MESH_MISC_0218
<<: *MESH_CASE
cmd set:
- ''
- - SSC MNODE(0) meshset -X -o 0 -i 1
- - P MNODE(0) C +MESHSET:FIX_ROOT,OK
- P SSC[1-<node_num>] C MESH_EVENT_ROOT_FIXED,1
- - SSC MNODE(0) meshset -X -o 0 -i 0
- - P MNODE(0) C +MESHSET:FIX_ROOT,OK
- P SSC[1-<node_num>] C MESH_EVENT_ROOT_FIXED,0
expected result: |-
1. succeed
2. succeed
steps: |-
1. set root fix on root
2. check all duts MESH_EVENT_ROOT_FIXED
initial condition: MESH_INIT1
test environment: SSC_T6_MESH1
summary: stable network, MESH_EVENT_ROOT_FIXED test
test point 2: mesh event test
CI ready: 'Yes'
- ID: MESH_MISC_0219
<<: *MESH_CASE
cmd set:
- ''
- - SSC SSC[1-2] mesh -I
- - P SSC[1-2] C +MESH:INIT,OK
- - SSC SSC[1-2] meshset -G -o 0 -m <mesh_id> -s <router_ssid> -p <router_password> -n
<router_channel> -b <router_bssid> -t <max_connect> -e <map_password> -i <ie_encrypt>
- - P SSC[1-2] C +MESHSET:CFG,OK
- - SSC SSC1 mesh -T
- - P SSC1 C +MESH:START,OK
- P SSC1 C MESH_EVENT_CONNECTED,1 C MESH_EVENT_ROOT_GOT_IP
- - SSC SSC1 meshset -X -o 0 -i 1
- - P SSC1 C +MESHSET:FIX_ROOT,OK C MESH_EVENT_ROOT_FIXED,1
- - SSC SSC2 mesh -T
- - P SSC2 C +MESH:START,OK
- P SSC2 C MESH_EVENT_CONNECTED,2 C MESH_EVENT_ROOT_FIXED,1
expected result: |-
1. succeed
2. succeed
3. succeed
4. succeed
steps: |-
1. set dut1 fix root first
2. dut2 connected with dut1
3. check MESH_EVENT_ROOT_FIXED on dut2
initial condition: MESH_DEINIT_STA
test environment: SSC_T2_MESH1
summary: MESH_EVENT_ROOT_FIXED when connected with parent
test point 2: mesh event test
CI ready: 'Yes'
- ID: MESH_MISC_0220
<<: *MESH_CASE
cmd set:
- ''
- - SSC MNODE(0) meshset -X -o 0 -i 1
- - P MNODE(0) C +MESHSET:FIX_ROOT,OK
- P SSC[1-<node_num>] C MESH_EVENT_ROOT_FIXED,1
- - SSC MNODE(0) meshset -X -o 0 -i 0
- - P MNODE(0) C +MESHSET:FIX_ROOT,OK
- P SSC[1-<node_num>] C MESH_EVENT_ROOT_FIXED,0
expected result: |-
1. succeed
2. succeed
steps: |-
1. set root fix on root
2. check all duts MESH_EVENT_ROOT_FIXED
initial condition: MESH_INIT1
test environment: SSC_T50_MESH1
summary: multiple nodes, MESH_EVENT_ROOT_FIXED test
test point 2: mesh event test
CI ready: 'No'
- ID: MESH_MISC_0221
<<: *MESH_CASE
cmd set:
- ''
- - SSC SSC[1-2] mesh -I
- - P SSC[1-2] C +MESH:INIT,OK
- - SSC SSC[1-2] meshset -G -o 0 -m <mesh_id> -s <router_ssid> -p <router_password> -n
<router_channel> -b <router_bssid> -t <max_connect> -e <map_password> -i <ie_encrypt>
- - P SSC[1-2] C +MESHSET:CFG,OK
- - SSC SSC1 mesh -T
- - P SSC1 C +MESH:START,OK
- P SSC1 C MESH_EVENT_CONNECTED,1 C MESH_EVENT_ROOT_GOT_IP
- - SSC SSC1 ap -Q
- - R SSC1 A <meshap_ssid>:\+APCONFIG:(\w+),
- - SSC SSC2 meshset -U -o 0 -m <mesh_id2> -s <meshap_ssid> -p <map_password> -n <router_channel> -t 2 -l 2
- - P SSC2 C +MESHSET:PARENT,OK
- - SSC SSC2 mesh -T
- - P SSC2 C +MESH:START,OK
- P SSC2 C MESH_EVENT_DISCONNECTED,103
expected result: |-
1. succeed
2. succeed
3. succeed
4. succeed
steps: |-
1. mesh init/config
2. start dut1 and check it connected with router
3. dut2 parent set to dut1 with wrong mesh_id
4. start dut2 and check disconnected rason DIFF_ID
test environment: SSC_T2_MESH1
summary: test MESH_EVENT_DISCONNECTED, reason DIFF_ID(103)
test point 2: mesh event test
CI ready: 'Yes'
- ID: MESH_MISC_0301
<<: *MESH_CASE
cmd set:
- ''
- - SOC SOC1 LISTEN <test_tcp_port1>
- - R SOC_COM L OK
- - SSC MNODE(0) soc -B -t TCP -p <test_tcp_port1>
- - P MNODE(0) A <sock_id>:\+BIND:(\d+),OK
- - SSC MNODE(0) soc -C -s <sock_id> -i <pc_ip> -p <test_tcp_port1>
- - P MNODE(0) RE \+CONNECT:\d+,OK
- - SOC SOC1 ACCEPT SOC2
- - R SOC_COM L OK
- - SSC MNODE(0) soc -S -s <sock_id> -l 1460 -n 10 -j 20
- - P MNODE(0) RE \+SEND:\d+,OK
- - SOC SOC2 SEND 1460
- - R MNODE(0) SL <sock_id>+1460
expected result: |-
1. succeed
2. succeed
steps: |-
1. root connect to pc
2. root send pecket to pc
initial condition: MESH_INIT1
test environment: SSC_T1_MESH2
summary: use socket TCP between root and pc
test point 2: socket after mesh start
- ID: MESH_MISC_0302
<<: *MESH_CASE
cmd set:
- ''
- - SOC SOC1 BIND <test_udp_port1> <pc_ip>
- - R SOC_COM L OK
- - SSC MNODE(0) ip -Q
- - P MNODE(0) A <sta_ip>:\+STAIP:(\d+.\d+.\d+.\d+)
- - SSC MNODE(0) soc -B -t UDP -i <sta_ip> -p <test_udp_port1>
- - P MNODE(0) A <sock1>:\+BIND:(\d+),OK
- - SSC MNODE(0) soc -S -s <sock1> -l 1460 -n 10 -i <pc_ip> -p <test_udp_port1> -j 20
- - P MNODE(0) RE \+SEND:\d+,OK
- P SOC1 UL 14600
- - DELAY 5
- ''
- - SOC SOC1 SENDTO 1460 <test_udp_port1> <sta_ip>
- - R MNODE(0) RE "RECVFROM:%%s,1460,%%s,%%u"%%(<sock1>,<pc_ip>,<test_udp_port1>)
expected result: |-
1. succeed
2. succeed
steps: |-
1. root connect to pc
2. root send pecket to pc
initial condition: MESH_INIT1
test environment: SSC_T1_MESH2
summary: use socket UDP between root and pc
test point 2: socket after mesh start
CI ready: 'No'
- ID: MESH_MISC_0303
<<: *MESH_CASE
cmd set:
- ''
- *set_softap_dut1
- - SSC SSC2 mesh -I
- - P SSC2 C +MESH:INIT,OK
- - SSC SSC2 meshset -G -o 0 -m <mesh_id> -s <target_ssid> -p <target_password> -n
<router_channel> -t <max_connect> -e <map_password> -i <ie_encrypt>
- - P SSC2 C +MESHSET:CFG,OK
- - SSC SSC2 mesh -T
- - P SSC2 C +MESH:START,OK
- P SSC2 C MESH_EVENT_CONNECTED,1 C MESH_EVENT_ROOT_GOT_IP
- - SSC SSC1 ip -Q
- - P SSC1 A <ssc1_ip>:\+APIP:(\d+.\d+.\d+.\d+)
- - SSC SSC[1-2] soc -T
- - P SSC[1-2] C +CLOSEALL
- - SSC SSC1 soc -B -t TCP -p <test_tcp_port1>
- - P SSC1 A <sock_id>:\+BIND:(\d+),OK
- - SSC SSC1 soc -L -s <sock_id>
- - P SSC1 RE \+LISTEN:\d+,OK
- - SSC SSC2 soc -B -t TCP
- - P SSC2 A <client_sock>:\+BIND:(\d+),OK
- - SSC SSC2 soc -C -s <client_sock> -i <ssc1_ip> -p <test_tcp_port1>
- - P SSC2 RE \+CONNECT:\d+,OK
- P SSC1 A <server_sock>:\+ACCEPT:(\d+)
- - SSC SSC1 soc -S -s <server_sock> -l 1460 -n 10
- - P SSC1 RE \+SEND:\d+,OK
- - SSC SSC2 soc -S -s <client_sock> -l 1460 -n 10
- - P SSC2 RE \+SEND:\d+,OK
expected result: |-
1. succeed
2. succeed
steps: |-
1. set dut1 softAP
2. dut2 start mesh and connect to dut1
3. use TCP between dut1 and dut2
initial condition: MESH_DEINIT_STA
test environment: SSC_T2_MESH1
summary: use socket TCP between root and esp32 softAP
test point 2: socket after mesh start
CI ready: 'Yes'
- ID: MESH_MISC_0304
<<: *MESH_CASE
cmd set:
- ''
- *set_softap_dut1
- - SSC SSC2 mesh -I
- - P SSC2 C +MESH:INIT,OK
- - SSC SSC2 meshset -G -o 0 -m <mesh_id> -s <target_ssid> -p <target_password> -n
<router_channel> -t <max_connect> -e <map_password> -i <ie_encrypt>
- - P SSC2 C +MESHSET:CFG,OK
- - SSC SSC2 mesh -T
- - P SSC2 C +MESH:START,OK
- P SSC2 C MESH_EVENT_CONNECTED,1 C MESH_EVENT_ROOT_GOT_IP
- - SSC SSC1 ip -Q
- - P SSC1 A <ssc1_ip>:\+APIP:(\d+.\d+.\d+.\d+)
- - SSC SSC2 ip -Q
- - P SSC2 A <ssc2_ip>:\+STAIP:(\d+.\d+.\d+.\d+)
- - SSC SSC[1-2] soc -T
- - P SSC[1-2] C +CLOSEALL
- - SSC SSC1 soc -B -t UDP -i <ssc1_ip> -p <test_udp_port1>
- - P SSC1 A <sock1>:\+BIND:(\d+),OK
- - SSC SSC2 soc -B -t UDP -i <ssc2_ip> -p <test_udp_port1>
- - P SSC2 A <sock2>:\+BIND:(\d+),OK
- - SSC SSC1 soc -S -s <sock1> -l 1460 -n 10 -i <ssc2_ip> -p <test_udp_port1>
- - P SSC1 RE \+SEND:\d+,OK
- - SSC SSC2 soc -S -s <sock2> -l 1460 -n 10 -i <ssc1_ip> -p <test_udp_port1>
- - P SSC2 RE \+SEND:\d+,OK
expected result: |-
1. succeed
2. succeed
3. succeed
steps: |-
1. set dut1 softAP
2. dut2 start mesh and connect to dut1
3. use UDP between dut1 and dut2
initial condition: MESH_DEINIT_STA
test environment: SSC_T2_MESH1
summary: use socket UDP between root and esp32 softAP
test point 2: socket after mesh start
CI ready: 'Yes'
- ID: MESH_MISC_5001
<<: *MESH_CASE
category: Stress
cmd set:
- ''
- - SSC SSC1 ram
- - R SSC1 C +FREEHEAP
- - LOOP 300 8
- - ''
- - SSC SSC1 mesh -I
- - P SSC1 C +MESH:INIT,OK
- - SSC SSC1 meshset -G -o 0 -m <mesh_id> -s <router_ssid> -p <router_password> -n
<router_channel> -b <router_bssid> -t <max_connect> -e <map_password> -i <ie_encrypt>
- - P SSC1 C +MESHSET:CFG,OK
- - SSC SSC1 mesh -T
- - P SSC1 C +MESH:START,OK
- - SSC SSC1 ram
- - R SSC1 C +FREEHEAP
- - DELAY 1 15
- - ''
- - SSC SSC1 mesh -T -o 1
- - P SSC1 C +MESH:STOP,OK
- - DELAY 2
- - ''
- - SSC SSC1 ram
- - R SSC1 C +FREEHEAP
expected result: |-
1. succeed
2. succeed
3. succeed
4. succeed
5. succeed
6. succeed
7. succeed
steps: |-
1. mesh init
2. mesh config
3. mesh start
4. check heap size
5. mesh stop
6. check heap size
7. loop
initial condition: MESH_DEINIT_STA
test environment: SSC_T1_MESH1
summary: cycle calling mesh_stop/mesh_start, check heap size
test point 2: mesh deinit/stop test
- ID: MESH_MISC_5002
<<: *MESH_CASE
category: Stress
cmd set:
- ''
- - SSC SSC[1-6] ram
- - R SSC[1-6] C +FREEHEAP
- - LOOP 200 8
- - ''
- - SSC SSC[1-6] mesh -I
- - P SSC[1-6] C +MESH:INIT,OK
- - SSC SSC[1-6] meshset -G -o 0 -m <mesh_id> -s <router_ssid> -p <router_password> -n
<router_channel> -b <router_bssid> -t <max_connect> -e <map_password> -i <ie_encrypt>
- - P SSC[1-6] C +MESHSET:CFG,OK
- - SSC SSC[1-6] mesh -T
- - P SSC[1-6] C +MESH:START,OK
- - SSC SSC[1-6] ram
- - R SSC[1-6] C +FREEHEAP
- - DELAY 5 30
- - ''
- - SSC SSC[1-6] mesh -T -o 1
- - P SSC[1-6] C +MESH:STOP,OK
- - DELAY 2
- - ''
- - SSC SSC[1-6] ram
- - R SSC[1-6] C +FREEHEAP
expected result: |-
1. succeed
2. succeed
3. succeed
4. succeed
steps: |-
1. all duts start mesh
2. check heap size
3. mesh stop and check heap size
4. loop
initial condition: MESH_DEINIT_STA
test environment: SSC_T6_MESH1
summary: 6 duts cycle eatablish network and stop mesh, check heap size
test point 2: mesh deinit/stop test

View file

@ -130,6 +130,20 @@ test environment:
PC has 1 WiFi NIC.
1 SSC DUT connect with PC by UART.
AP todo IOT test are placed near SSC1.
- tag: SSC_T1_MESH1
Special: Y
<<: *TEST_ENV
Target Count: 1
test environment detail: |-
1 SSC target connect with PC by UART.
A router with fixed channel nearby
- tag: SSC_T1_MESH2
<<: *TEST_ENV
Special: Y
Target Count: 1
test environment detail: |-
1 SSC target connect with PC by UART.
PC has 1 wired NIC connected to a fixed channel Router.
- tag: SSC_T1_InitData
<<: *TEST_ENV
Special: Y
@ -287,6 +301,13 @@ test environment:
test environment detail: |
refer to figure.
2 SSC DUT connect with PC by UART. Put 1 DUT board to temperature box.
- tag: SSC_T2_MESH1
<<: *TEST_ENV
Special: Y
Target Count: 2
test environment detail: |-
2 SSC target connect with PC by UART.
A router with fixed channel nearby
- tag: SSC_T3_1
<<: *TEST_ENV
Special: N
@ -295,6 +316,12 @@ test environment:
PC has 1 wired NIC connected to AP.
PC has 1 WiFi NIC.
3 SSC DUT connect with PC by UART.
- tag: SSC_T3_2
<<: *TEST_ENV
Special: N
Target Count: 3
test environment detail: |-
3 SSC DUT connect with PC by UART.
- tag: SSC_T3_PhyMode
<<: *TEST_ENV
PC OS: 'linux'
@ -304,6 +331,20 @@ test environment:
PC has one WiFi NIC support capture wlan packet using libpcap.
Set 4 AP with (HT20, channel1), (HT20, channel2), (HT40, channel1), (HT40, channel2).
Put 4 APs near SSC DUTs.
- tag: SSC_T3_MESH1
<<: *TEST_ENV
Special: Y
Target Count: 3
test environment detail: |-
3 SSC target connect with PC by UART.
A router with fixed channel nearby
- tag: SSC_T3_MESH2
<<: *TEST_ENV
Special: Y
Target Count: 3
test environment detail: |-
3 SSC target connect with PC by UART.
PC has 1 wired NIC connected to a fixed channel Router.
- tag: SSC_T5_1
<<: *TEST_ENV
Target Count: 5
@ -323,6 +364,20 @@ test environment:
PC has 1 wired NIC connected to AP.
PC has 1 WiFi NIC.
6 SSC DUT connect with PC by UART.
- tag: SSC_T6_MESH1
<<: *TEST_ENV
Special: Y
Target Count: 6
test environment detail: |-
6 SSC target connect with PC by UART.
A router with fixed channel nearby
- tag: SSC_T6_MESH2
<<: *TEST_ENV
Special: Y
Target Count: 6
test environment detail: |-
6 SSC target connect with PC by UART.
PC has 1 wired NIC connected to a fixed channel Router.
- tag: SSC_T1_DNS
<<: *TEST_ENV
Target Count: 1
@ -336,6 +391,20 @@ test environment:
PC has 1 wired NIC connect to Common AP.
Several AP are placed near AT DUT.
Several smart phone installed test APK are placed near SSC DUT.
- tag: SSC_T12_MESH1
<<: *TEST_ENV
Special: Y
Target Count: 12
test environment detail: |-
12 SSC target connect with PC by UART.
A router with fixed channel nearby
- tag: SSC_T12_MESH2
<<: *TEST_ENV
Special: Y
Target Count: 12
test environment detail: |-
12 SSC target connect with PC by UART.
PC has 1 wired NIC connected to a fixed channel Router.
- tag: SSC_T20_1
<<: *TEST_ENV
Special: Y
@ -360,6 +429,13 @@ test environment:
PC has 1 wired NIC connected to AP.
PC has 1 WiFi NIC.
50 SSC DUT connect with PC by UART.
- tag: SSC_T50_MESH1
<<: *TEST_ENV
Special: Y
Target Count: 50
test environment detail: |-
50 SSC target connect with PC by UART.
A router with fixed channel nearby
- tag: SSC_T60_1
<<: *TEST_ENV
Special: Y
@ -384,3 +460,15 @@ test environment:
PC has 1 wired NIC connected to AP.
PC has 1 WiFi NIC.
100 SSC DUT connect with PC by UART.
- tag: SSC_T50_MESH1
<<: *TEST_ENV
Special: Y
Target Count: 50
test environment detail: |-
50 SSC target connect with PC by UART.
- tag: SSC_T100_MESH1
<<: *TEST_ENV
Special: Y
Target Count: 100
test environment detail: |-
100 SSC target connect with PC by UART.