From ce9878ce717c1b3b28a76b86a104b454c95d75c8 Mon Sep 17 00:00:00 2001 From: huchaoru Date: Tue, 17 Apr 2018 16:28:00 +0800 Subject: [PATCH] modify test case to support ipv6 --- .gitlab-ci.yml | 24 + .../idf_test/integration_test/KnownIssues | 10 +- .../integration_test/TC_IT_TCPIP_TCP.yml | 594 ++++++++++-------- .../integration_test/TC_IT_TCPIP_UDP.yml | 200 +++++- 4 files changed, 558 insertions(+), 270 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f2ab2c847..c6488637d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1731,6 +1731,18 @@ IT_006_05: - ESP32_IDF - SSC_T1_6 +IT_006_06: + <<: *test_template + tags: + - ESP32_IDF + - SSC_T1_6 + +IT_006_07: + <<: *test_template + tags: + - ESP32_IDF + - SSC_T1_6 + IT_007_01: <<: *test_template tags: @@ -1743,6 +1755,12 @@ IT_007_02: - ESP32_IDF - SSC_T1_7 +IT_007_03: + <<: *test_template + tags: + - ESP32_IDF + - SSC_T1_7 + IT_008_01: <<: *test_template tags: @@ -1773,6 +1791,12 @@ IT_012_01: - ESP32_IDF - SSC_T1_9 +IT_012_02: + <<: *test_template + tags: + - ESP32_IDF + - SSC_T1_9 + IT_013_01: <<: *test_template tags: diff --git a/components/idf_test/integration_test/KnownIssues b/components/idf_test/integration_test/KnownIssues index 996980b34..6749b9471 100644 --- a/components/idf_test/integration_test/KnownIssues +++ b/components/idf_test/integration_test/KnownIssues @@ -7,11 +7,6 @@ TCPIP_ICMP_0101_01 # Bug or not stable cases -# Wifi - -# Wifi heap size issue -WIFI_CONN_1101 - # Wifi scan issue WIFI_SCAN_0303 WIFI_SCAN_0303_01 @@ -43,9 +38,14 @@ TCPIP_IGMP_0202_01 TCPIP_IGMP_0204 TCPIP_IGMP_0204_01 +# TCP +TCPIP_TCP_0401_01_02 + # UDP TCPIP_UDP_0103 TCPIP_UDP_0103_01 +TCPIP_UDP_0103_02 +TCPIP_UDP_0103_01_02 # BLE diff --git a/components/idf_test/integration_test/TC_IT_TCPIP_TCP.yml b/components/idf_test/integration_test/TC_IT_TCPIP_TCP.yml index a6a127f35..6caeda062 100644 --- a/components/idf_test/integration_test/TC_IT_TCPIP_TCP.yml +++ b/components/idf_test/integration_test/TC_IT_TCPIP_TCP.yml @@ -11,16 +11,16 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP -i 0.0.0.0 -p 0 - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - P SSC1 RE CONNECT:\d+,OK - P SOC1 C +ACCEPT - - SSC SSC1 soc -B -t TCP -i 0.0.0.0 -p 0 - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i 123.456.678.789 -p + - - SSC SSC1 soc -C -s -i 123.456.678.789 -p - - P SSC1 RE CONNECT:\d+,ERROR - - SSC SSC1 soc -C -s -i -p - - P SSC1 RE CONNECT:\d+,ERROR @@ -36,11 +36,11 @@ test cases: level: Integration module: TCPIP steps: |- - 1.PC上建立TCP 监听 test_tcp_port1 + 1.PC上建立TCP 监听 random_port 2.target1上创建TCP socket,bind到本地ip 0.0.0.0,本地端口 0 - 3.target1上使用步骤2创建的socket,去连接 PC的ip,test_tcp_port1 + 3.target1上使用步骤2创建的socket,去连接 PC的ip,random_port 4.target1上创建TCP socket,bind到本地ip 0.0.0.0,本地端口 0 - 5.target1上使用步骤4创建的socket,去连接不存在的ip,test_tcp_port1 + 5.target1上使用步骤4创建的socket,去连接不存在的ip,random_port 6.target1上使用步骤2创建的socket,去连接 PC的ip,远端端口不存在。 sub module: TCP summary: STA mode, connect test. use different ip, port @@ -102,11 +102,11 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SOC SOC1 ACCEPT SOC2 - - R SOC_COM L OK @@ -131,7 +131,7 @@ test cases: level: Integration module: TCPIP steps: | - 1. PC上建立TCP 监听 test_tcp_port1 + 1.PC上建立TCP 监听 test_tcp_port1 2.target1上创建TCP socket 3.target1上使用步骤2创建的socket,去连接 PC的ip,test_tcp_port1 4.PC与target1 创建好TCP 连接,有ACCEPT @@ -156,23 +156,23 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -D -s -h B - - R SSC1 RE SHUTDOWN:\d+,OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -D -s -h W - - R SSC1 RE SHUTDOWN:\d+,OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -D -s -h R - - R SSC1 RE SHUTDOWN:\d+,OK @@ -192,15 +192,15 @@ test cases: level: Integration module: TCPIP steps: |- - 1. PC上建立TCP 监听 test_tcp_port1 + 1. PC上建立TCP 监听 random_port 2.target1上创建TCP socket - 3.target1上使用步骤2创建的socket,去连接 PC的ip,test_tcp_port1,PC有ACCEPT + 3.target1上使用步骤2创建的socket,去连接 PC的ip,random_port,PC有ACCEPT 4.target1 shutdown socket1 B 5.target1上创建TCP socket - 6.target1上使用步骤5创建的socket,去连接 PC的ip,test_tcp_port1,PC有ACCEPT + 6.target1上使用步骤5创建的socket,去连接 PC的ip,random_port,PC有ACCEPT 7.target1 shutdown socket2 W 8.target1上创建TCP socket - 9.target1上使用步骤8创建的socket,去连接 PC的ip,test_tcp_port1,PC有ACCEPT + 9.target1上使用步骤8创建的socket,去连接 PC的ip,random_port,PC有ACCEPT 10.target1 shutdown socket3 R sub module: TCP summary: STA mode, shutdown basic test @@ -220,7 +220,7 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK @@ -238,13 +238,13 @@ test cases: - - R SSC1 RE CLOSE:\d+,OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -T -s - - R SSC1 RE CLOSE:\d+,OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -D -s - - R SSC1 RE SHUTDOWN:\d+,OK @@ -270,11 +270,11 @@ test cases: initial condition: STAM2 level: Integration module: TCPIP - steps: "1.PC上建立TCP 监听 test_tcp_port1\n2.target1上创建TCP socket1\n3.target1关闭socket1\n4.target1上创建TCP + steps: "1.PC上建立TCP 监听 random_port\n2.target1上创建TCP socket1\n3.target1关闭socket1\n4.target1上创建TCP socket 端口随机\n5.target1上使用步骤4创建的socket1,去监听\n6.PC CONNECT, ,tcp 连接创建成功,创建socket2 \n7.target1关闭socket1\n8.target1关闭socket2\n9.target1上创建TCP - socket1\n10.target1上使用步骤10创建的socket1,去连接 PC的ip,test_tcp_port1,PC有ACCEPT\n11.target1关闭socket1\n12.target1上创建TCP - socket1\n13.target1上使用步骤13创建的socket1,去连接 PC的ip,test_tcp_port1,PC有ACCEPT\n14.target1shutdown + socket1\n10.target1上使用步骤10创建的socket1,去连接 PC的ip,random_port,PC有ACCEPT\n11.target1关闭socket1\n12.target1上创建TCP + socket1\n13.target1上使用步骤13创建的socket1,去连接 PC的ip,random_port,PC有ACCEPT\n14.target1shutdown socket1\n15.target1关闭socket1" sub module: TCP summary: STA mode, close for different types of TCP sockets test @@ -294,27 +294,27 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK execution time: 0.0 expected result: |- @@ -333,17 +333,17 @@ test cases: level: Integration module: TCPIP steps: |- - 1.PC上建立TCP 监听 test_tcp_port1 + 1.PC上建立TCP 监听 random_port 2.target1上创建TCP socket1 - 3.target1上使用步骤2创建的socket1,去连接 PC的ip,test_tcp_port1,PC有ACCEPT + 3.target1上使用步骤2创建的socket1,去连接 PC的ip,random_port,PC有ACCEPT 4.target1上创建TCP socket2 - 5.target1上使用步骤4创建的socket2,去连接 PC的ip,test_tcp_port1,PC有ACCEPT + 5.target1上使用步骤4创建的socket2,去连接 PC的ip,random_port,PC有ACCEPT 6.target1上创建TCP socket3 - 7.target1上使用步骤6创建的socket3,去连接 PC的ip,test_tcp_port1,PC有ACCEPT + 7.target1上使用步骤6创建的socket3,去连接 PC的ip,random_port,PC有ACCEPT 8.target1上创建TCP socket4 - 9.target1上使用步骤8创建的socket4,去连接 PC的ip,test_tcp_port1,PC有ACCEPT + 9.target1上使用步骤8创建的socket4,去连接 PC的ip,random_port,PC有ACCEPT 10.target1上创建TCP socket5 - 11.target1上使用步骤10创建的socket5,去连接 PC的ip,test_tcp_port1,PC有ACCEPT + 11.target1上使用步骤10创建的socket5,去连接 PC的ip,random_port,PC有ACCEPT sub module: TCP summary: STA mode, create max TCP sockets test test environment: SSC_T1_6 @@ -475,16 +475,16 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP -i 0.0.0.0 -p 0 - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - P SSC1 RE CONNECT:\d+,OK - P SOC1 C +ACCEPT - - SSC SSC1 soc -B -t TCP -i 0.0.0.0 -p 0 - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i 123.456.678.789 -p + - - SSC SSC1 soc -C -s -i 123.456.678.789 -p - - P SSC1 RE CONNECT:\d+,ERROR - - SSC SSC1 soc -C -s -i -p - - P SSC1 RE CONNECT:\d+,ERROR @@ -500,11 +500,11 @@ test cases: level: Integration module: TCPIP steps: |- - 1.PC上建立TCP 监听 test_tcp_port1 + 1.PC上建立TCP 监听 random_port 2.target1上创建TCP socket,bind到本地ip 0.0.0.0,本地端口 0 - 3.target1上使用步骤2创建的socket,去连接 PC的ip,test_tcp_port1 + 3.target1上使用步骤2创建的socket,去连接 PC的ip,random_port 4.target1上创建TCP socket,bind到本地ip 0.0.0.0,本地端口 0 - 5.target1上使用步骤4创建的socket,去连接不存在的ip,test_tcp_port1 + 5.target1上使用步骤4创建的socket,去连接不存在的ip,random_port 6.target1上使用步骤2创建的socket,去连接 PC的ip,远端端口不存在。 sub module: TCP summary: AP mode, connect test. use different ip, port @@ -566,11 +566,11 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SOC SOC1 ACCEPT SOC2 - - R SOC_COM L OK @@ -620,23 +620,23 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -D -s -h B - - R SSC1 RE SHUTDOWN:\d+,OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -D -s -h W - - R SSC1 RE SHUTDOWN:\d+,OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -D -s -h R - - R SSC1 RE SHUTDOWN:\d+,OK @@ -656,15 +656,15 @@ test cases: level: Integration module: TCPIP steps: |- - 1. PC上建立TCP 监听 test_tcp_port1 + 1. PC上建立TCP 监听 random_port 2.target1上创建TCP socket - 3.target1上使用步骤2创建的socket,去连接 PC的ip,test_tcp_port1,PC有ACCEPT + 3.target1上使用步骤2创建的socket,去连接 PC的ip,random_port,PC有ACCEPT 4.target1 shutdown socket1 B 5.target1上创建TCP socket - 6.target1上使用步骤5创建的socket,去连接 PC的ip,test_tcp_port1,PC有ACCEPT + 6.target1上使用步骤5创建的socket,去连接 PC的ip,random_port,PC有ACCEPT 7.target1 shutdown socket2 W 8.target1上创建TCP socket - 9.target1上使用步骤8创建的socket,去连接 PC的ip,test_tcp_port1,PC有ACCEPT + 9.target1上使用步骤8创建的socket,去连接 PC的ip,random_port,PC有ACCEPT 10.target1 shutdown socket3 R sub module: TCP summary: AP mode, shutdown basic test @@ -684,7 +684,7 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK @@ -702,13 +702,13 @@ test cases: - - R SSC1 RE CLOSE:\d+,OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -T -s - - R SSC1 RE CLOSE:\d+,OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -D -s - - R SSC1 RE SHUTDOWN:\d+,OK @@ -734,11 +734,11 @@ test cases: initial condition: APM2 level: Integration module: TCPIP - steps: "1.PC上建立TCP 监听 test_tcp_port1\n2.target1上创建TCP socket1\n3.target1关闭socket1\n4.target1上创建TCP + steps: "1.PC上建立TCP 监听 random_port\n2.target1上创建TCP socket1\n3.target1关闭socket1\n4.target1上创建TCP socket 端口随机\n5.target1上使用步骤4创建的socket1,去监听\n6.PC CONNECT, ,tcp 连接创建成功,创建socket2 \n7.target1关闭socket1\n8.target1关闭socket2\n9.target1上创建TCP - socket1\n10.target1上使用步骤10创建的socket1,去连接 PC的ip,test_tcp_port1,PC有ACCEPT\n11.target1关闭socket1\n12.target1上创建TCP - socket1\n13.target1上使用步骤13创建的socket1,去连接 PC的ip,test_tcp_port1,PC有ACCEPT\n14.target1shutdown + socket1\n10.target1上使用步骤10创建的socket1,去连接 PC的ip,random_port,PC有ACCEPT\n11.target1关闭socket1\n12.target1上创建TCP + socket1\n13.target1上使用步骤13创建的socket1,去连接 PC的ip,random_port,PC有ACCEPT\n14.target1shutdown socket1\n15.target1关闭socket1" sub module: TCP summary: AP mode, close for different types of TCP sockets test @@ -758,27 +758,27 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK execution time: 0.0 expected result: |- @@ -797,17 +797,17 @@ test cases: level: Integration module: TCPIP steps: |- - 1.PC上建立TCP 监听 test_tcp_port1 + 1.PC上建立TCP 监听 random_port 2.target1上创建TCP socket1 - 3.target1上使用步骤2创建的socket1,去连接 PC的ip,test_tcp_port1,PC有ACCEPT + 3.target1上使用步骤2创建的socket1,去连接 PC的ip,random_port,PC有ACCEPT 4.target1上创建TCP socket2 - 5.target1上使用步骤4创建的socket2,去连接 PC的ip,test_tcp_port1,PC有ACCEPT + 5.target1上使用步骤4创建的socket2,去连接 PC的ip,random_port,PC有ACCEPT 6.target1上创建TCP socket3 - 7.target1上使用步骤6创建的socket3,去连接 PC的ip,test_tcp_port1,PC有ACCEPT + 7.target1上使用步骤6创建的socket3,去连接 PC的ip,random_port,PC有ACCEPT 8.target1上创建TCP socket4 - 9.target1上使用步骤8创建的socket4,去连接 PC的ip,test_tcp_port1,PC有ACCEPT + 9.target1上使用步骤8创建的socket4,去连接 PC的ip,random_port,PC有ACCEPT 10.target1上创建TCP socket5 - 11.target1上使用步骤10创建的socket5,去连接 PC的ip,test_tcp_port1,PC有ACCEPT + 11.target1上使用步骤10创建的socket5,去连接 PC的ip,random_port,PC有ACCEPT sub module: TCP summary: AP mode, create max TCP sockets test test environment: SSC_T1_7 @@ -875,29 +875,29 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t UDP -i 0.0.0.0 -p - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - P SSC1 RE CONNECT:\d+,ERROR - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - SSC SSC1 soc -L -s - - R SSC1 RE LISTEN:\d+,OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - P SSC1 RE CONNECT:\d+,ERROR - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - P SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -D -s -h B - - P SSC1 RE SHUTDOWN:\d+,OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - P SSC1 RE CONNECT:\d+,ERROR - - SSC SSC1 soc -T - - R SSC1 C +CLOSEALL - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - P SSC1 RE CONNECT:\d+,ERROR execution time: 0.0 expected result: |- @@ -917,18 +917,18 @@ test cases: level: Integration module: TCPIP steps: |- - 1.PC上建立TCP 监听 test_tcp_port1 + 1.PC上建立TCP 监听 random_port 2.target1上创建UDP传输socket,bind到本地ip 0.0.0.0, - 3.target1上使用步骤2创建的socket,去连接 PC的ip, + 3.target1上使用步骤2创建的socket,去连接 PC的ip, 4.target1上创建TCP socket 5.target1上使用步骤4创建的socket,创建TCP 监听 - 6.target1上使用步骤4创建的socket,去连接 PC的ip, + 6.target1上使用步骤4创建的socket,去连接 PC的ip, 7.target1上创建TCP socket - 8.target1上使用步骤7创建的socket,去连接 PC的ip, + 8.target1上使用步骤7创建的socket,去连接 PC的ip, 9.target1上关闭步骤7创建的socket - 10.target1上使用步骤7创建的socket,去连接 PC的ip, + 10.target1上使用步骤7创建的socket,去连接 PC的ip, 11.target1上关闭所有创建的socket - 12.target1上使用步骤2创建的socket,去连接 PC的ip, + 12.target1上使用步骤2创建的socket,去连接 PC的ip, sub module: TCP summary: STA mode, connect test. use socket in state that can't connect test environment: SSC_T1_6 @@ -947,7 +947,7 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t UDP -p - - R SSC1 A :BIND:(\d+),OK @@ -955,7 +955,7 @@ test cases: - - R SSC1 RE LISTEN:\d+,ERROR - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -L -s - - R SSC1 RE LISTEN:\d+,ERROR @@ -980,11 +980,11 @@ test cases: level: Integration module: TCPIP steps: |- - 1.PC上建立TCP 监听 test_tcp_port1 + 1.PC上建立TCP 监听 random_port 2.target1上创建UDP传输socket,bind到本地ip 0.0.0.0, 3.target1上使用步骤2创建的socket,去建立TCP 监听 4.target1上创建TCP socket - 5.target1上使用步骤4创建的socket,去连接 PC的ip, + 5.target1上使用步骤4创建的socket,去连接 PC的ip, 6.target1上使用步骤4创建的socket,创建TCP 监听 7.target1上shutdown 步骤4的socket 8.target1上使用步骤4创建的socket,创建TCP 监听 @@ -1007,7 +1007,7 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t UDP -p - - R SSC1 A :BIND:(\d+),OK @@ -1017,7 +1017,7 @@ test cases: - - R SSC1 A :BIND:(\d+),OK - - SSC SSC1 soc -S -s - - R SSC1 RE SEND:\d+,ERROR - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -D -s - - R SSC1 RE SHUTDOWN:\d+,OK @@ -1040,7 +1040,7 @@ test cases: level: Integration module: TCPIP steps: |- - 1.PC上建立TCP 监听 test_tcp_port1 + 1.PC上建立TCP 监听 random_port 2.target1上创建UDP传输socket1, 3.target1上使用步骤2创建的socket1,去发送数据 4.target1上创建TCP socket2 @@ -1067,11 +1067,11 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP -w 0 - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SOC SOC1 ACCEPT SOC2 - - R SOC_COM L OK @@ -1093,9 +1093,9 @@ test cases: level: Integration module: TCPIP steps: |- - 1. PC上建立TCP 监听 test_tcp_port1 + 1. PC上建立TCP 监听 random_port 2.target1上创建TCP socket - 3.target1上使用步骤2创建的socket,去连接 PC的ip,test_tcp_port1 + 3.target1上使用步骤2创建的socket,去连接 PC的ip,random_port 4.PC与target1 创建好TCP 连接,有ACCEPT 5.target上不进行recv 6.PC send 100 * 1460 data to target, @@ -1118,15 +1118,15 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP -i - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -B -t TCP -i - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -D -s - - R SSC1 RE SHUTDOWN:\d+,OK @@ -1137,7 +1137,7 @@ test cases: - - SOC SOC2 CONNECT - - R SSC1 A :ACCEPT:(\d+),\d+,.+,\d+ - - SSC SSC1 soc -I - - - P SSC1 RE "SOCINFO:%%s,2,%%s,\d+,%%s,%%d"%%(,,,) + - - P SSC1 RE "SOCINFO:%%s,2,%%s,\d+,%%s,%%d"%%(,,,) - P SSC1 RE "SOCINFO:%%s,82,.+,%%d"%%(,) - P SSC1 RE "SOCINFO:%%s,2,%%s,%%d,%%s,\d+"%%(,,,) execution time: 0.0 @@ -1151,17 +1151,17 @@ test cases: 7.OK 8.OK 9.PC OK, target1 +ACCEPT:3,2,,port - 10.+SOCINFO:,,, - +SOCINFO:,,, + 10.+SOCINFO:,,, + +SOCINFO:,,, +SOCINFO:, +SOCINFO:,,, +SOCINF0ALL initial condition: STAM2 level: Integration module: TCPIP - steps: "1.PC上建立TCP 监听 test_tcp_port1\n2.target1上创建TCP socket1,本地ip target_ip\n3.target1上使用步骤2创建的socket1,去连接 - PC的ip,test_tcp_port1,PC有ACCEPT\n4.target1上创建TCP socket2,本地ip target_ip\n5.target1上使用步骤4创建的socket2,去连接 - PC的ip,test_tcp_port1,PC有ACCEPT\n6.target1 shutdown socket2 \n7.target1上创建TCP socket3,本地端口random_port\n8.target1上使用步骤7创建的socket3,去监听\n9.PC + steps: "1.PC上建立TCP 监听 random_port\n2.target1上创建TCP socket1,本地ip target_ip\n3.target1上使用步骤2创建的socket1,去连接 + PC的ip,random_port,PC有ACCEPT\n4.target1上创建TCP socket2,本地ip target_ip\n5.target1上使用步骤4创建的socket2,去连接 + PC的ip,random_port,PC有ACCEPT\n6.target1 shutdown socket2 \n7.target1上创建TCP socket3,本地端口random_port\n8.target1上使用步骤7创建的socket3,去监听\n9.PC CONNECT, ,tcp 连接创建成功,创建socket4 \n10.target1 查询the socket information" sub module: TCP @@ -1182,29 +1182,29 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t UDP -i 0.0.0.0 -p - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - P SSC1 RE CONNECT:\d+,ERROR - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - SSC SSC1 soc -L -s - - R SSC1 RE LISTEN:\d+,OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - P SSC1 RE CONNECT:\d+,ERROR - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - P SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -D -s -h B - - P SSC1 RE SHUTDOWN:\d+,OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - P SSC1 RE CONNECT:\d+,ERROR - - SSC SSC1 soc -T - - R SSC1 C +CLOSEALL - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - P SSC1 RE CONNECT:\d+,ERROR execution time: 0.0 expected result: |- @@ -1224,18 +1224,18 @@ test cases: level: Integration module: TCPIP steps: |- - 1.PC上建立TCP 监听 test_tcp_port1 + 1.PC上建立TCP 监听 random_port 2.target1上创建UDP传输socket,bind到本地ip 0.0.0.0, - 3.target1上使用步骤2创建的socket,去连接 PC的ip, + 3.target1上使用步骤2创建的socket,去连接 PC的ip, 4.target1上创建TCP socket 5.target1上使用步骤4创建的socket,创建TCP 监听 - 6.target1上使用步骤4创建的socket,去连接 PC的ip, + 6.target1上使用步骤4创建的socket,去连接 PC的ip, 7.target1上创建TCP socket - 8.target1上使用步骤7创建的socket,去连接 PC的ip, + 8.target1上使用步骤7创建的socket,去连接 PC的ip, 9.target1上关闭步骤7创建的socket - 10.target1上使用步骤7创建的socket,去连接 PC的ip, + 10.target1上使用步骤7创建的socket,去连接 PC的ip, 11.target1上关闭所有创建的socket - 12.target1上使用步骤2创建的socket,去连接 PC的ip, + 12.target1上使用步骤2创建的socket,去连接 PC的ip, sub module: TCP summary: AP mode, connect test. use socket in state that can't connect test environment: SSC_T1_7 @@ -1254,7 +1254,7 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t UDP -p - - R SSC1 A :BIND:(\d+),OK @@ -1262,7 +1262,7 @@ test cases: - - R SSC1 RE LISTEN:\d+,ERROR - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -L -s - - R SSC1 RE LISTEN:\d+,ERROR @@ -1287,11 +1287,11 @@ test cases: level: Integration module: TCPIP steps: |- - 1.PC上建立TCP 监听 test_tcp_port1 + 1.PC上建立TCP 监听 random_port 2.target1上创建UDP传输socket,bind到本地ip 0.0.0.0, 3.target1上使用步骤2创建的socket,去建立TCP 监听 4.target1上创建TCP socket - 5.target1上使用步骤4创建的socket,去连接 PC的ip, + 5.target1上使用步骤4创建的socket,去连接 PC的ip, 6.target1上使用步骤4创建的socket,创建TCP 监听 7.target1上shutdown 步骤4的socket 8.target1上使用步骤4创建的socket,创建TCP 监听 @@ -1314,11 +1314,11 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP -w 0 - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SOC SOC1 ACCEPT SOC2 - - R SOC_COM L OK @@ -1339,9 +1339,9 @@ test cases: level: Integration module: TCPIP steps: |- - 1. PC上建立TCP 监听 test_tcp_port1 + 1. PC上建立TCP 监听 random_port 2.target1上创建TCP socket - 3.target1上使用步骤2创建的socket,去连接 PC的ip,test_tcp_port1 + 3.target1上使用步骤2创建的socket,去连接 PC的ip,random_port 4.PC与target1 创建好TCP 连接,有ACCEPT 5.target停止调用recv 6.PC send 100 * 1460 data to 8266, @@ -1364,15 +1364,15 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP -i - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -B -t TCP -i - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -D -s - - R SSC1 RE SHUTDOWN:\d+,OK @@ -1383,7 +1383,7 @@ test cases: - - SOC SOC2 CONNECT 0 - - R SSC1 A :ACCEPT:(\d+),\d+,.+,\d+ - - SSC SSC1 soc -I - - - P SSC1 RE "SOCINFO:%%s,2,%%s,\d+,%%s,%%d"%%(,,,) + - - P SSC1 RE "SOCINFO:%%s,2,%%s,\d+,%%s,%%d"%%(,,,) - P SSC1 RE "SOCINFO:%%s,82,.+,%%d"%%(,) - P SSC1 RE "SOCINFO:%%s,2,%%s,%%d,%%s,\d+"%%(,,,) execution time: 0.0 @@ -1397,17 +1397,17 @@ test cases: 7.OK 8.OK 9.PC OK, target1 +ACCEPT:3,2,,port - 10.+SOCINFO:,,, - +SOCINFO:,,, + 10.+SOCINFO:,,, + +SOCINFO:,,, +SOCINFO:, +SOCINFO:,,, +SOCINF0ALL initial condition: APM2 level: Integration module: TCPIP - steps: "1.PC上建立TCP 监听 test_tcp_port1\n2.target1上创建TCP socket1,本地ip target_ip\n3.target1上使用步骤2创建的socket1,去连接 - PC的ip,test_tcp_port1,PC有ACCEPT\n4.target1上创建TCP socket2,本地ip target_ip\n5.target1上使用步骤4创建的socket2,去连接 - PC的ip,test_tcp_port1,PC有ACCEPT\n6.target1 shutdown socket2 \n7.target1上创建TCP socket3,本地端口random_port\n8.target1上使用步骤7创建的socket3,去监听\n9.PC + steps: "1.PC上建立TCP 监听 random_port\n2.target1上创建TCP socket1,本地ip target_ip\n3.target1上使用步骤2创建的socket1,去连接 + PC的ip,random_port,PC有ACCEPT\n4.target1上创建TCP socket2,本地ip target_ip\n5.target1上使用步骤4创建的socket2,去连接 + PC的ip,random_port,PC有ACCEPT\n6.target1 shutdown socket2 \n7.target1上创建TCP socket3,本地端口random_port\n8.target1上使用步骤7创建的socket3,去监听\n9.PC CONNECT, ,tcp 连接创建成功,创建socket4 \n10.target1 查询the socket information" sub module: TCP @@ -2179,11 +2179,11 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SOC SOC1 ACCEPT SOC2 - - R SOC_COM L OK @@ -2203,9 +2203,9 @@ test cases: level: Integration module: TCPIP steps: |- - 1.PC上建立TCP 监听 test_tcp_port1 + 1.PC上建立TCP 监听 random_port 2.target1上创建TCP socket1 - 3.target1上使用步骤2创建的socket1,去连接 PC的ip,test_tcp_port1 + 3.target1上使用步骤2创建的socket1,去连接 PC的ip,random_port 4.PC与target1创建好TCP 连接,有ACCEPT 5.断开与AP 连接 6.8266往PC上发送5字节数据 @@ -2227,11 +2227,11 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SOC SOC1 ACCEPT SOC2 - - R SOC_COM L OK @@ -2251,9 +2251,9 @@ test cases: level: Integration module: TCPIP steps: |- - 1.PC上建立TCP 监听 test_tcp_port1 + 1.PC上建立TCP 监听 random_port 2.target1上创建TCP socket1 - 3.target1上使用步骤2创建的socket1,去连接 PC的ip,test_tcp_port1 + 3.target1上使用步骤2创建的socket1,去连接 PC的ip,random_port 4.PC与target1创建好TCP 连接,有ACCEPT 5.断开与AP 连接 6.关闭建立的socket1连接 @@ -2275,11 +2275,11 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SOC SOC1 ACCEPT SOC2 - - R SOC_COM L OK @@ -2298,8 +2298,8 @@ test cases: initial condition: STAM2 level: Integration module: TCPIP - steps: "1.PC上建立TCP 监听 test_tcp_port1\n2.target1上创建TCP socket1\n3.target1上使用步骤2创建的socket1,去连接 - PC的ip,test_tcp_port1\n4.PC与target1创建好TCP 连接,有ACCEPT\n5.修改8266的Mode为softAP mode + steps: "1.PC上建立TCP 监听 random_port\n2.target1上创建TCP socket1\n3.target1上使用步骤2创建的socket1,去连接 + PC的ip,random_port\n4.PC与target1创建好TCP 连接,有ACCEPT\n5.修改8266的Mode为softAP mode \n6.8266往PC上发送5字节数据" sub module: TCP summary: do TCP send after mode changed @@ -2319,11 +2319,11 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SOC SOC1 ACCEPT SOC2 - - R SOC_COM L OK @@ -2342,8 +2342,8 @@ test cases: initial condition: STAM2 level: Integration module: TCPIP - steps: "1.PC上建立TCP 监听 test_tcp_port1\n2.target1上创建TCP socket1\n3.target1上使用步骤2创建的socket1,去连接 - PC的ip,test_tcp_port1\n4.PC与target1创建好TCP 连接,有ACCEPT\n5.修改8266的Mode为softAP mode + steps: "1.PC上建立TCP 监听 random_port\n2.target1上创建TCP socket1\n3.target1上使用步骤2创建的socket1,去连接 + PC的ip,random_port\n4.PC与target1创建好TCP 连接,有ACCEPT\n5.修改8266的Mode为softAP mode \n6.关闭建立的socket1连接" sub module: TCP summary: close TCP socket after mode changed @@ -2363,11 +2363,11 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SOC SOC1 ACCEPT SOC2 - - R SOC_COM L OK @@ -2389,9 +2389,9 @@ test cases: level: Integration module: TCPIP steps: |- - 1.PC上建立TCP 监听 test_tcp_port1 + 1.PC上建立TCP 监听 random_port 2.target1上创建TCP socket1 - 3.target1上使用步骤2创建的socket1,去连接 PC的ip,test_tcp_port1 + 3.target1上使用步骤2创建的socket1,去连接 PC的ip,random_port 4.PC与target1创建好TCP 连接,有ACCEPT 5.PC 网卡 disable 6.target1上使用socket1发送数据,等待 90 分钟 @@ -2413,11 +2413,11 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SOC SOC1 ACCEPT SOC2 - - R SOC_COM L OK @@ -2436,8 +2436,8 @@ test cases: initial condition: STAM2 level: Integration module: TCPIP - steps: "1.PC上建立TCP 监听 test_tcp_port1\n2.target1上创建TCP socket1\n3.target1上使用步骤2创建的socket1,去连接 - PC的ip,test_tcp_port1\n4.PC与target1创建好TCP 连接,有ACCEPT\n5.PC上网卡禁止掉 \n6.关闭建立的socket1连接" + steps: "1.PC上建立TCP 监听 random_port\n2.target1上创建TCP socket1\n3.target1上使用步骤2创建的socket1,去连接 + PC的ip,random_port\n4.PC与target1创建好TCP 连接,有ACCEPT\n5.PC上网卡禁止掉 \n6.关闭建立的socket1连接" sub module: TCP summary: close TCP socket after PC NIC disabled test environment: SSC_T1_6 @@ -2451,16 +2451,16 @@ test cases: 8266_RTOS ESP32_IDF Test App: SSC - allow fail: '1/2' + allow fail: '' auto test: 'Yes' category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SOC SOC1 ACCEPT SOC2 - - R SOC_COM L OK @@ -2485,8 +2485,8 @@ test cases: initial condition: STAM2 level: Integration module: TCPIP - steps: "1.PC上建立TCP 监听 test_tcp_port1\n2.target1上创建TCP socket1\n3.target1上使用步骤2创建的socket1,去连接 - PC的ip,test_tcp_port1\n4.PC与target1创建好TCP 连接,有ACCEPT\n5.关闭8266的DHCP 1\n6.设置sta + steps: "1.PC上建立TCP 监听 random_port\n2.target1上创建TCP socket1\n3.target1上使用步骤2创建的socket1,去连接 + PC的ip,random_port\n4.PC与target1创建好TCP 连接,有ACCEPT\n5.关闭8266的DHCP 1\n6.设置sta ip \n7.查询sta ip 地址是否生效\n8.8266往PC上发送5字节数据" sub module: TCP summary: do TCP send after IP changed @@ -2506,11 +2506,11 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SOC SOC1 ACCEPT SOC2 - - R SOC_COM L OK @@ -2535,8 +2535,8 @@ test cases: initial condition: STAM2 level: Integration module: TCPIP - steps: "1.PC上建立TCP 监听 test_tcp_port1\n2.target1上创建TCP socket1\n3.target1上使用步骤2创建的socket1,去连接 - PC的ip,test_tcp_port1\n4.PC与target1创建好TCP 连接,有ACCEPT\n5.关闭8266的DHCP 1\n6.设置sta + steps: "1.PC上建立TCP 监听 random_port\n2.target1上创建TCP socket1\n3.target1上使用步骤2创建的socket1,去连接 + PC的ip,random_port\n4.PC与target1创建好TCP 连接,有ACCEPT\n5.关闭8266的DHCP 1\n6.设置sta ip \n7.查询sta ip 地址是否生效\n8.关闭建立的socket1连接" sub module: TCP summary: close TCP socket after IP changed @@ -2556,11 +2556,11 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SOC SOC1 ACCEPT SOC2 - - R SOC_COM L OK @@ -2583,9 +2583,9 @@ test cases: level: Integration module: TCPIP steps: |- - 1.PC上建立TCP 监听 test_tcp_port1 + 1.PC上建立TCP 监听 random_port 2.target1上创建TCP socket1 - 3.target1上使用步骤2创建的socket1,去连接 PC的ip,test_tcp_port1 + 3.target1上使用步骤2创建的socket1,去连接 PC的ip,random_port 4.PC与target1创建好TCP 连接,有ACCEPT 5.target1上创建TCP socket2 6.8266往PC socket2上发送5字节数据 @@ -2608,11 +2608,11 @@ test cases: category: Function cmd set: - '' - - - SOC SOC1 LISTEN + - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - R SSC1 RE CONNECT:\d+,OK - - SOC SOC1 ACCEPT SOC2 - - R SOC_COM L OK @@ -2635,9 +2635,9 @@ test cases: level: Integration module: TCPIP steps: |- - 1.PC上建立TCP 监听 test_tcp_port1 + 1.PC上建立TCP 监听 random_port 2.target1上创建TCP socket1 - 3.target1上使用步骤2创建的socket1,去连接 PC的ip,test_tcp_port1 + 3.target1上使用步骤2创建的socket1,去连接 PC的ip,random_port 4.PC与target1创建好TCP 连接,有ACCEPT 5.target1上创建TCP socket2 6.关闭socket1 连接 @@ -2667,7 +2667,7 @@ test cases: - - R PC_COM C +NIC_START:OK - - SSC SSC1 soc -B -t TCP - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -C -s -i -p + - - SSC SSC1 soc -C -s -i -p - - '' - - DELAY 10 - - R SSC1 RE CONNECT:\d+,ERROR @@ -2697,8 +2697,6 @@ test cases: category: Function cmd set: - '' - - - PING -c 1 - - - R PC_COM C +PING - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP @@ -2727,22 +2725,20 @@ test cases: 6.OK 7.OK 8.OK - 9.OK - 10.等待30s + 9.等待30s initial condition: STAM2 level: Integration module: TCPIP steps: |- - 1.PING - 2.PC上建立TCP 监听 random_port - 3.target1上创建TCP socket - 4.target1上步骤3创建的socket设置so_keepalive属性 - 5.target1上步骤3创建的socket设置so_keepidle参数 - 6.target1上步骤3创建的socket设置so_keepintvl参数 - 7.target1上步骤3创建的socket设置so_keepcnt参数 - 8.target1上使用步骤7具有so_keepalive属性及参数的socket,去连接 PC的ip,random_port - 9.PC上网卡禁止掉 - 10.等待30s + 1.PC上建立TCP 监听 random_port + 2.target1上创建TCP socket + 3.target1上步骤3创建的socket设置so_keepalive属性 + 4.target1上步骤3创建的socket设置so_keepidle参数 + 5.target1上步骤3创建的socket设置so_keepintvl参数 + 6.target1上步骤3创建的socket设置so_keepcnt参数 + 7.target1上使用步骤7具有so_keepalive属性及参数的socket,去连接 PC的ip,random_port + 8.PC上网卡禁止掉 + 9.等待30s sub module: TCP summary: Test socket with so_keepalive option test environment: SSC_T1_6 @@ -2760,9 +2756,9 @@ test cases: category: Function cmd set: - '' - - - SSC SSC1 soc -B -t TCP -i -p + - - SSC SSC1 soc -B -t TCP -i -p - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -B -t TCP -i -p + - - SSC SSC1 soc -B -t TCP -i -p - - R SSC1 C +BIND:ERROR execution time: 0.0 expected result: |- @@ -2816,15 +2812,13 @@ test cases: level: Integration module: TCPIP steps: |- - 1.find esp-idf/components/lwip/include/lwip/lwip/opt.h file, make "#define SO_REUSE 1" instead of "#define SO_REUSE 0" - 2.switch to esp-idf/SSC, run "./gen_misc_ng.sh SSC_OPTION" and "make flash", then run the test case normally - 3.PC上建立TCP 监听 random_port - 4.target1上创建TCP socket,bind test_tcp_port2 - 5.target1上使用步骤4创建的socket,去连接 PC的ip,random_port - 6.关闭socket - 7.target1上创建TCP socket,bind test_tcp_port2 - 8.target1上建立TCP 监听 - 9.关闭socket + 1.PC上建立TCP 监听 random_port + 2.target1上创建TCP socket,bind test_tcp_port2 + 3.target1上使用步骤4创建的socket,去连接 PC的ip,random_port + 4.关闭socket + 5.target1上创建TCP socket,bind test_tcp_port2 + 6.target1上建立TCP 监听 + 7.关闭socket sub module: TCP summary: Test socket with so_reuseaddr option opened that close TCP connection not react immediately on ESP32 @@ -2841,9 +2835,9 @@ test cases: category: Function cmd set: - '' - - - SSC SSC1 soc -B -t TCP -i -p + - - SSC SSC1 soc -B -t TCP -i -p - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -B -t TCP -i -p + - - SSC SSC1 soc -B -t TCP -i -p - - R SSC1 A :BIND:(\d+),OK execution time: 0.0 expected result: |- @@ -2853,10 +2847,8 @@ test cases: level: Integration module: TCPIP steps: |- - 1.find esp-idf/components/lwip/include/lwip/lwip/opt.h file, make "#define SO_REUSE 1" instead of "#define SO_REUSE 0" - 2.switch to esp-idf/SSC, run "./gen_misc_ng.sh SSC_OPTION" and "make flash", then run the test case normally - 3.target1上创建TCP socket,bind test_udp_port1 - 4.target1上创建TCP socket,bind test_udp_port1 + 1.target1上创建TCP socket,bind test_udp_port1 + 2.target1上创建TCP socket,bind test_udp_port1 sub module: TCP summary: Test socket with so_reuseaddr option opened that build two tcp sockets by binding same ip and port on ESP32 @@ -2936,8 +2928,6 @@ test cases: category: Function cmd set: - '' - - - PING -c 1 - - - R PC_COM C +PING - - SOC SOC1 LISTEN - - R SOC_COM L OK - - SSC SSC1 soc -B -t TCP @@ -2960,20 +2950,18 @@ test cases: 4.OK 5.OK 6.OK - 7.OK - 8.CLOSED + 7.CLOSED initial condition: STAM2 level: Integration module: TCPIP steps: |- - 1.PING - 2.PC上建立TCP 监听 random_port - 3.target1上创建TCP socket - 4.target1上使用步骤3创建的socket,去连接 PC的ip,random_port - 5.PC与target1 创建好TCP 连接,有ACCEPT - 6.PC send 5 bytes to target1 - 7.target1上对步骤3创建的socket设置so_rcvtimeo属性 - 8.PC send 5 bytes to target1 + 1.PC上建立TCP 监听 random_port + 2.target1上创建TCP socket + 3.target1上使用步骤3创建的socket,去连接 PC的ip,random_port + 4.PC与target1 创建好TCP 连接,有ACCEPT + 5.PC send 5 bytes to target1 + 6.target1上对步骤3创建的socket设置so_rcvtimeo属性 + 7.PC send 5 bytes to target1 sub module: TCP summary: Test socket with so_rcvtimeo option test environment: SSC_T1_6 @@ -3079,13 +3067,13 @@ test cases: - '' - - SOC SOC1 LISTEN - - R SOC_COM L OK - - - SSC SSC1 soc -B -t TCP -i -p + - - SSC SSC1 soc -B -t TCP -i -p - - R SSC1 A :BIND:(\d+),OK - - SSC SSC1 soc -C -s -i -p - - P SSC1 RE CONNECT:\d+,OK - - SSC SSC1 soc -T - - R SSC1 C CLOSEALL - - - SSC SSC1 soc -B -t TCP -i -p + - - SSC SSC1 soc -B -t TCP -i -p - - R SSC1 A :BIND:(\d+),OK - - SSC SSC1 soc -L -s - - P SSC1 RE LISTEN:\d+,OK @@ -3105,10 +3093,10 @@ test cases: 2.switch to ESP8266_RTOS_SDK/third_party, run "./make_lib.sh lwip" risc,then continuely run "ll ../lib" 3.switch to ESP8266_RTOS_SDK/SSC, run "./gen_misc_rtos.sh SSC", then run the test case normally 4.PC上建立TCP 监听 random_port - 5.target1上创建TCP socket,bind test_tcp_port1 + 5.target1上创建TCP socket,bind random_port 6.target1上使用步骤5创建的socket,去连接 PC的ip,random_port 7.关闭socket - 8.target1上创建TCP socket,bind test_tcp_port1 + 8.target1上创建TCP socket,bind random_port 9.target1上建立TCP 监听 sub module: TCP summary: Test socket with so_reuseaddr option opened that close TCP connection not @@ -3126,9 +3114,9 @@ test cases: category: Function cmd set: - '' - - - SSC SSC1 soc -B -t TCP -i -p + - - SSC SSC1 soc -B -t TCP -i -p - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -B -t TCP -i -p + - - SSC SSC1 soc -B -t TCP -i -p - - R SSC1 A :BIND:(\d+),OK execution time: 0.0 expected result: |- @@ -3141,8 +3129,8 @@ test cases: 1.find ESP8266_RTOS_SDK/include/lwip/lwip/opt.h file, make "#define SO_REUSE 1" instead of "#define SO_REUSE 0" 2.switch to ESP8266_RTOS_SDK/third_party, run "./make_lib.sh lwip" risc,then continuely run "ll ../lib" 3.switch to ESP8266_RTOS_SDK/SSC, run "./gen_misc_rtos.sh SSC", then run the test case normally - 4.target1上创建TCP socket,bind test_udp_port1 - 5.target1上创建TCP socket,bind test_udp_port1 + 4.target1上创建TCP socket,bind test_tcp_port2 + 5.target1上创建TCP socket,bind test_tcp_port2 sub module: TCP summary: Test socket with so_reuseaddr option opened that build two tcp sockets by binding same ip and port on 8266_RTOS @@ -3273,8 +3261,6 @@ test cases: category: Function cmd set: - '' - - - PING -c 1 - - - R PC_COM C +PING - - SSC SSC1 soc -B -t TCP -i -p - - R SSC1 A :BIND:(\d+),OK - - SSC SSC1 soc -L -s @@ -3289,24 +3275,22 @@ test cases: - - R SSC1 C CLOSE execution time: 0.0 expected result: |- - 1.PING + 1.OK 2.OK 3.OK - 4.OK - 5.PC TCP client accept - 6.ERROR - 7.CLOSE + 4.PC TCP client accept + 5.ERROR + 6.CLOSE initial condition: STAM2 level: Integration module: TCPIP steps: |- - 1.PING - 2.target1上创建TCP socket,bind random_port - 3.target1上使用步骤2创建的socket1,建立TCP 监听 - 4.target1上对步骤2创建的socket设置 MaxConnectNum属性 + 1.target1上创建TCP socket,bind random_port + 2.target1上使用步骤2创建的socket1,建立TCP 监听 + 3.target1上对步骤2创建的socket设置 MaxConnectNum属性 + 4.PC TCP 连接到target1 , 5.PC TCP 连接到target1 , - 6.PC TCP 连接到target1 , - 7.关闭socket + 6.关闭socket sub module: TCP summary: Test socket with MaxConnectNum option test environment: SSC_T1_6 @@ -3322,8 +3306,6 @@ test cases: category: Function cmd set: - '' - - - PING -c 1 - - - R PC_COM C +PING - - SSC SSC1 soc -B -t TCP -i -p - - R SSC1 A :BIND:(\d+),OK - - SSC SSC1 socopt -S -s -k Registtime -o 20 @@ -3339,19 +3321,17 @@ test cases: 1.OK 2.OK 3.OK - 4.OK - 5.PC TCP client accept - 6.等待30s + 4.PC TCP client accept + 5.等待30s initial condition: STAM2 level: Integration module: TCPIP steps: |- - 1.PING - 2.target1上创建TCP socket,bind test_tcp_port1 - 3.target1上对步骤2创建的socket设置 Registtime 属性 - 4.target1上使用步骤3具有Registtime属性的socket1,建立TCP 监听 - 5.PC TCP 连接到target1 , - 6.等待30s + 1.target1上创建TCP socket,bind test_tcp_port1 + 2.target1上对步骤2创建的socket设置 Registtime 属性 + 3.target1上使用步骤3具有Registtime属性的socket1,建立TCP 监听 + 4.PC TCP 连接到target1 , + 5.等待30s sub module: TCP summary: Test socket with Registtime option test environment: SSC_T1_6 @@ -3450,9 +3430,9 @@ test cases: category: Function cmd set: - '' - - - SSC SSC1 soc -B -t TCP -i -p + - - SSC SSC1 soc -B -t TCP -i -p - - R SSC1 A :BIND:(\d+),OK - - - SSC SSC1 soc -B -t TCP -i -p + - - SSC SSC1 soc -B -t TCP -i -p - - R SSC1 A :BIND:(\d+),OK execution time: 0.0 expected result: |- @@ -3462,8 +3442,8 @@ test cases: level: Integration module: TCPIP steps: |- - 1.target1上创建TCP socket,bind test_udp_port1 - 2.target1上创建TCP socket,bind test_udp_port1 + 1.target1上创建TCP socket,bind test_tcp_port1 + 2.target1上创建TCP socket,bind test_tcp_port1 sub module: TCP summary: Test socket with so_reuseaddr option opened that build two tcp sockets by binding same ip and port on 8266_NonOS @@ -3523,7 +3503,7 @@ test cases: - - dummy - - test_time = 720 - - '' - - - server_port = "" + - - server_port = "" - - '' - - server_echo = True - - '' @@ -3603,7 +3583,7 @@ test cases: - - '' - - test_count = 0xFFFFFF - - '' - - - server_port = "" + - - server_port = "" - - '' - - server_port_2 = "" - - '' @@ -4203,6 +4183,112 @@ test cases: test point 1: stress test point 2: TCP stress test version: v1 (2016-8-15) +- CI ready: 'Yes' + ID: TCPIP_TCP_5801 + SDK: 'ESP32_IDF' + Test App: SSC + auto test: 'Yes' + category: Stress + cmd set: + - TCPStress/TCPSendRecvIPv6 + - - send_len = 1460 + - [dummy] + - - test_time = 300 + - [''] + - - duplex = True + - [''] + - - conn_num = 5 + - [''] + - - send_delay = 20 + - [''] + execution time: 12.0 + expected result: |- + 1. succeed + 2. succeed + 3. all TCP connection not disconnected + initial condition: T2_1 + level: Integration + module: TCPIP + steps: |- + 1. sta connect to softap + 2. create multiple tcp connection + 3. do send/recv on all tcp connections + sub module: TCP + summary: TCP send/recv stress test with TCPSendRecvIPv6 + test environment: SSC_T2_5 + test point 1: stress + test point 2: TCP stress test(IPv6) + version: v2 (2016-11-15) +- CI ready: 'Yes' + ID: TCPIP_TCP_5802 + SDK: 'ESP32_IDF' + Test App: SSC + auto test: 'Yes' + category: Stress + cmd set: + - TCPStress/TCPSoftAPSTASendRecvIPv6 + - - send_len = 1460 + - [dummy] + - - test_time = 300 + - [''] + - - conn_num = 5 + - [''] + - - duplex = True + - [''] + - - send_delay = 20 + - [''] + execution time: 12.0 + expected result: |- + 1. succeed + 2. succeed + 3. all TCP connection not disconnected + initial condition: T3_1 + level: Integration + module: TCPIP + steps: |- + 1. sta connect to softap + 2. create multiple tcp connection + 3. do send/recv on all tcp connections + sub module: TCP + summary: TCP send/recv stress test with TCPSoftAPSTASendRecvIPv6 + test environment: SSC_T3_1 + test point 1: stress + test point 2: TCP stress test(IPv6) + version: v2 (2016-11-15) +- CI ready: 'Yes' + ID: TCPIP_TCP_5803 + SDK: 'ESP32_IDF' + Test App: SSC + auto test: 'Yes' + category: Stress + cmd set: + - TCPStress/TCPDataValidationIPv6 + - - test_time = 300 + - [dummy] + - - tx_enable = True + - [''] + - - rx_enable = True + - [''] + - - conn_num = 5 + - [''] + - - send_len = 1024 + - [''] + execution time: 24.0 + expected result: |- + 1. succeed + 2. verify reciveid data on target and PC succeed + initial condition: STAAP2 + level: Integration + module: TCPIP + steps: |- + 1. create TCP connection + 2. send specified pattern on both direction + sub module: TCP + summary: TCP send/recv data validation with TCPDataValidationIPv6 + test environment: SSC_T1_6 + test point 1: stress + test point 2: TCP stress test(IPv6) + version: v2 (2016-11-15) - CI ready: 'No' ID: TCPIP_TCP_6001 SDK: ESP32_IDF, 8266_NonOS, 8266_RTOS @@ -4231,7 +4317,7 @@ test cases: send_delay 4. repeat step 2-3 sub module: TCP summary: TCP send receive delay stable test - test environment: SSC_T1_1 + test environment: SSC_T1_6 test point 1: Stable test point 2: TCP send receive stable test version: v1 (2017-04-21) diff --git a/components/idf_test/integration_test/TC_IT_TCPIP_UDP.yml b/components/idf_test/integration_test/TC_IT_TCPIP_UDP.yml index ef97ab469..6f3c7f71b 100644 --- a/components/idf_test/integration_test/TC_IT_TCPIP_UDP.yml +++ b/components/idf_test/integration_test/TC_IT_TCPIP_UDP.yml @@ -132,7 +132,7 @@ test cases: 6.target1上使用步骤2创建的socket1,往pc_ip,test_tcp_port1上发送1472*10字节数据 sub module: UDP summary: STA mode, sendto test with different length - test environment: SSC_T1_6 + test environment: SSC_T1_9 test point 1: basic function test point 2: use UDP SAP (socket/espconn API) with different parameter version: v1 (2016-8-15) @@ -140,7 +140,7 @@ test cases: ID: TCPIP_UDP_0103 SDK: ESP32_IDF Test App: SSC - allow fail: 1/3 + allow fail: 1/5 auto test: 'Yes' category: Function cmd set: @@ -176,7 +176,7 @@ test cases: 5.target1上使用步骤2创建的socket1,往pc_ip,test_tcp_port1上发送1473字节数据 sub module: UDP summary: STA mode, sendto test with different length - test environment: SSC_T1_6 + test environment: SSC_T1_9 test point 1: basic function test point 2: use UDP SAP (socket/espconn API) with different parameter version: v1 (2016-8-15) @@ -228,7 +228,113 @@ test cases: 6.PC上SOC2 UDP传输,bing 7.PC往8266上发送1472字节数据 sub module: UDP - summary: STA mode, recvfrom basic test + summary: (special case)STA mode, recvfrom basic test with STAM2 + test environment: SSC_T1_9 + test point 1: basic function + test point 2: use UDP SAP (socket/espconn API) with different parameter + version: v1 (2016-8-15) +- CI ready: 'Yes' + ID: TCPIP_UDP_0104_02 + SDK: |- + 8266_NonOS + 8266_RTOS + ESP32_IDF + Test App: SSC + allow fail: 1/3 + auto test: 'Yes' + category: Function + cmd set: + - '' + - - SOC SOC1 BIND_v6 + - - R SOC_COM L OK + - - SSC SSC1 soc -B -t UDPv6 -i -p + - - R SSC1 A :BIND:(\d+),OK + - - SOC SOC1 SENDTO 1 + - - R SSC1 SL +1 + - - SOC SOC1 SENDTO 1472 + - - R SSC1 RE "RECVFROM:%%s,1472,%%s,%%u"%%(,,) + - - SOC SOC1 SENDTO 1473 + - - P SSC1 C +RECVFROM + - P SOC_COM C OK + - - SOC SOC2 BIND_v6 + - - R SOC_COM L OK + - - SOC SOC2 SENDTO 1472 + - - R SSC1 RE "RECVFROM:%%s,1472,%%s,%%u"%%(,,) + execution time: 0.0 + expected result: |- + 1.OK + 2.OK + 3.OK + 4.OK + 5.OK + 6.OK + 7.OK + initial condition: STAM2 + level: Integration + module: TCPIP + steps: |- + 1.PC上SOC1 UDP传输,bing + 2.target1上UDP传输,Bind socket1,本地ip target_udp_port1 + 3.PC往8266上发送1字节数据 + 4.PC往8266上发送1472字节数据 + 5.PC往8266上发送1473字节数据 + 6.PC上SOC2 UDP传输,bing + 7.PC往8266上发送1472字节数据 + sub module: UDP + summary: (special case)STA mode, recvfrom basic test with STAM2(IPv6) + test environment: SSC_T1_9 + test point 1: basic function + test point 2: use UDP SAP (socket/espconn API) with different parameter + version: v1 (2016-8-15) +- CI ready: 'Yes' + ID: TCPIP_UDP_0104_01_02 + SDK: |- + 8266_NonOS + 8266_RTOS + ESP32_IDF + Test App: SSC + allow fail: 1/3 + auto test: 'Yes' + category: Function + cmd set: + - '' + - - SOC SOC1 BIND_v6 + - - R SOC_COM L OK + - - SSC SSC1 soc -B -t UDPv6 -i -p + - - R SSC1 A :BIND:(\d+),OK + - - SOC SOC1 SENDTO 1 + - - R SSC1 SL +1 + - - SOC SOC1 SENDTO 1472 + - - R SSC1 RE "RECVFROM:%%s,1472,%%s,%%u"%%(,,) + - - SOC SOC1 SENDTO 1473 + - - P SSC1 C +RECVFROM + - P SOC_COM C OK + - - SOC SOC2 BIND_v6 + - - R SOC_COM L OK + - - SOC SOC2 SENDTO 1472 + - - R SSC1 RE "RECVFROM:%%s,1472,%%s,%%u"%%(,,) + execution time: 0.0 + expected result: |- + 1.OK + 2.OK + 3.OK + 4.OK + 5.OK + 6.OK + 7.OK + initial condition: STAAP2 + level: Integration + module: TCPIP + steps: |- + 1.PC上SOC1 UDP传输,bing + 2.target1上UDP传输,Bind socket1,本地ip target_udp_port1 + 3.PC往8266上发送1字节数据 + 4.PC往8266上发送1472字节数据 + 5.PC往8266上发送1473字节数据 + 6.PC上SOC2 UDP传输,bing + 7.PC往8266上发送1472字节数据 + sub module: UDP + summary: (special case)STA mode, recvfrom basic test with STAAP2(IPv6) test environment: SSC_T1_9 test point 1: basic function test point 2: use UDP SAP (socket/espconn API) with different parameter @@ -429,7 +535,7 @@ test cases: 4.target1上使用步骤3创建的socket1,往pc_ip,test_tcp_port1上发送10字节数据 5.target1上使用步骤3创建的socket1,往pc_ip2,test_tcp_port2上发送10字节数据 sub module: UDP - summary: AP mode, sendto test. use different ip, port + summary: (special case)AP mode, sendto test. use different ip, port test environment: SSC_T2_2 test point 1: basic function test point 2: use UDP SAP (socket/espconn API) with different parameter @@ -582,7 +688,7 @@ test cases: 6.PC上SOC2 UDP传输,bing 7.PC往8266上发送1472字节数据 sub module: UDP - summary: AP mode, recvfrom basic test + summary: (special case)AP mode, recvfrom basic test test environment: SSC_T2_2 test point 1: basic function test point 2: use UDP SAP (socket/espconn API) with different parameter @@ -791,7 +897,7 @@ test cases: level: Integration module: TCPIP steps: |- - 1.PC上SOC1 UDP传输,bing + 1.PC上SOC1 UDP传输,bing 2.target1上UDP传输,Bind socket1,本地ip target_udp_port1 3.target1上关闭工作线程 4.PC往8266上发送1472字节数据 @@ -909,7 +1015,7 @@ test cases: - '' - - SOC SOC1 BIND - - R SOC_COM L OK - - - SSC SSC1 soc -B -t UDP -p + - - SSC SSC1 soc -B -t UDP -i -p - - R SSC1 A :BIND:(\d+),OK - - SSC SSC1 soc -S -s -i -p -l 5 - - P SSC1 RE SEND:(\d+),OK @@ -917,7 +1023,7 @@ test cases: - - SSC SSC1 op -S -o 2 - - P SSC1 C +MODE:OK - - SSC SSC1 soc -S -s -i -p -l 5 - - - P SSC1 RE SEND:(\d+),OK + - - P SSC1 RE SEND:(\d+),ERROR execution time: 0.0 expected result: |- 1.OK @@ -932,7 +1038,7 @@ test cases: target_udp_port1\n3.target1上使用步骤2创建的socket1,往pc_ip,test_tcp_port1上发送5字节数据\n4.修改8266的Mode为softAP mode \n5.8266往PC上发送5字节数据" sub module: UDP - summary: do UDP send after mode changed + summary: do UDP send after mode changed test environment: SSC_T1_6 test point 1: abnormal/special use test point 2: UDP handling abnormal event @@ -974,7 +1080,7 @@ test cases: target_udp_port1\n3.target1上使用步骤2创建的socket1,往pc_ip,test_tcp_port1上发送5字节数据\n4.修改8266的Mode为softAP mode \n5.关闭建立的socket1连接" sub module: UDP - summary: close UDP socket after mode changed + summary: close UDP socket after mode changed test environment: SSC_T1_6 test point 1: abnormal/special use test point 2: UDP handling abnormal event @@ -1792,6 +1898,78 @@ test cases: test point 1: Performance test test point 2: UDP throughput version: v1 (2016-10-18) +- CI ready: 'Yes' + ID: TCPIP_UDP_5501 + SDK: 'ESP32_IDF' + Test App: SSC + auto test: 'Yes' + category: Stress + cmd set: + - UDPStress/UDPSendRecvIPv6 + - - send_len = 1460 + - [dummy] + - - test_time = 300 + - [''] + - - duplex = True + - [''] + - - conn_num = 5 + - [''] + - - send_delay = 20 + - [''] + execution time: 12.0 + expected result: |- + 1. succeed + 2. succeed + 3. succeed + initial condition: T2_1 + level: Integration + module: TCPIP + steps: |- + 1. sta connect to softap + 2. create multiple udp + 3. do send/recv on all udp + sub module: UDP + summary: UDP send/recv stress test with UDPSendRecvIPv6(IPv6) + test environment: SSC_T2_5 + test point 1: stress + test point 2: UDP stress test(IPv6) + version: v2 (2016-11-15) +- CI ready: 'Yes' + ID: TCPIP_UDP_5502 + SDK: 'ESP32_IDF' + Test App: SSC + auto test: 'Yes' + category: Stress + cmd set: + - UDPStress/UDPAPSTASendRecvIPv6 + - - send_len = 1460 + - [dummy] + - - test_time = 300 + - [''] + - - duplex = True + - [''] + - - conn_num = 5 + - [''] + - - send_delay = 20 + - [''] + execution time: 12.0 + expected result: |- + 1. succeed + 2. succeed + 3. succeed + initial condition: T3_1 + level: Integration + module: TCPIP + steps: |- + 1. sta connect to softap + 2. create multiple udp + 3. do send/recv on all udp + sub module: UDP + summary: UDP send/recv stress test with UDPAPSTASendRecvIPv6(IPv6) + test environment: SSC_T3_1 + test point 1: stress + test point 2: UDP stress test(IPv6) + version: v2 (2016-11-15) - CI ready: 'No' ID: TCPIP_UDP_9901 SDK: |-