Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[greentea] RTL8195AM netsocket test failures #8124

Closed
yennster opened this issue Sep 13, 2018 · 73 comments
Closed

[greentea] RTL8195AM netsocket test failures #8124

yennster opened this issue Sep 13, 2018 · 73 comments

Comments

@yennster
Copy link
Contributor

Description

Environment: Windows 10
Mbed CLI version: 1.8.0
Python version: 2.7.14
IAR version: 7.80.1.11864
ARMC5 version: 5060750
Mbed OS tag: mbed-os-5.10.0-rc2

Summary of netsocket test failures with ARMC5 and the RTL8195AM board:

mbedgt: test suite report:
+-----------------------+-------------------+-----------------------------+---------+--------------------+-------------+
| target                | platform_name     | test suite                  | result  | elapsed_time (sec) | copy_method |
+-----------------------+-------------------+-----------------------------+---------+--------------------+-------------+
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | OK      | 102.49             | default     |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TIMEOUT | 550.15             | default     |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | FAIL    | 523.8              | default     |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | FAIL    | 85.2               | default     |
+-----------------------+-------------------+-----------------------------+---------+--------------------+-------------+
mbedgt: test suite results: 2 FAIL / 1 OK / 1 TIMEOUT
mbedgt: test case report:
+-----------------------+-------------------+-----------------------------+---------------------------------------+--------+--------+---------+--------------------+
| target                | platform_name     | test suite                  | test case                             | passed | failed | result  | elapsed_time (sec) |
+-----------------------+-------------------+-----------------------------+---------------------------------------+--------+--------+---------+--------------------+
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS                      | 1      | 0      | OK      | 0.12               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS_CACHE                | 1      | 0      | OK      | 0.21               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS_CANCEL               | 1      | 0      | OK      | 5.1                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS_EXTERNAL_EVENT_QUEUE | 1      | 0      | OK      | 2.32               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS_INVALID_HOST         | 1      | 0      | OK      | 0.54               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS_NON_ASYNC_AND_ASYNC  | 1      | 0      | OK      | 0.48               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS_SIMULTANEOUS         | 1      | 0      | OK      | 0.57               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS_SIMULTANEOUS_CACHE   | 1      | 0      | OK      | 0.28               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS_SIMULTANEOUS_REPEAT  | 1      | 0      | OK      | 12.5               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS_TIMEOUTS             | 1      | 0      | OK      | 2.29               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | SYNCHRONOUS_DNS                       | 1      | 0      | OK      | 0.03               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | SYNCHRONOUS_DNS_CACHE                 | 1      | 0      | OK      | 0.25               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | SYNCHRONOUS_DNS_INVALID               | 1      | 0      | OK      | 0.24               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | SYNCHRONOUS_DNS_MULTIPLE              | 1      | 0      | OK      | 0.14               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_CONNECT_INVALID             | 1      | 0      | OK      | 0.18               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ECHOTEST                    | 1      | 0      | OK      | 7.24               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ECHOTEST_BURST              | 1      | 0      | OK      | 136.53             |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ECHOTEST_BURST_NONBLOCK     | 1      | 0      | OK      | 156.99             |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ECHOTEST_NONBLOCK           | 1      | 0      | OK      | 31.72              |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ENDPOINT_CLOSE              | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_OPEN_CLOSE_REPEAT           | 1      | 0      | OK      | 0.01               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_OPEN_LIMIT                  | 1      | 0      | OK      | 0.07               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_RECV_100K                   | 0      | 0      | ERROR   | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_RECV_100K_NONBLOCK          | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_RECV_TIMEOUT                | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_SEND_REPEAT                 | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_SEND_TIMEOUT                | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_THREAD_PER_SOCKET_SAFETY    | 1      | 0      | OK      | 5.15               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_ECHOTEST                    | 1      | 0      | OK      | 3.93               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_ECHOTEST_BURST              | 0      | 1      | FAIL    | 437.52             |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_ECHOTEST_BURST_NONBLOCK     | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_ECHOTEST_NONBLOCK           | 1      | 0      | OK      | 5.98               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_OPEN_CLOSE_REPEAT           | 1      | 0      | OK      | 0.02               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_OPEN_LIMIT                  | 1      | 0      | OK      | 0.06               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_SENDTO_INVALID              | 1      | 0      | OK      | 0.03               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_SENDTO_REPEAT               | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_SENDTO_TIMEOUT              | 1      | 0      | OK      | 0.16               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT                          | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-DISCONNECT-REPEAT        | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-NOCREDENTIALS            | 0      | 1      | FAIL    | 15.03              |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-CHANNEL           | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-CHANNEL-FAIL      | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-NULL              | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-VALID-SECURE      | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-VALID-UNSECURE    | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-SECURE                   | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-SECURE-FAIL              | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONSTRUCTOR                      | 1      | 0      | OK      | 2.01               |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-GET-RSSI                         | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-SCAN                             | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-SCAN-NULL                        | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-SET-CHANNEL                      | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-SET-CREDENTIAL                   | 0      | 0      | SKIPPED | 0.0                |
+-----------------------+-------------------+-----------------------------+---------------------------------------+--------+--------+---------+--------------------+
mbedgt: test case results: 2 FAIL / 21 SKIPPED / 29 OK / 1 ERROR
mbedgt: completed in 1269.42 sec
mbedgt: exited with code 3
[mbed] ERROR: "mbedgt" returned error.
       Code: 3
       Path: "C:\Users\jenplu01\Repos\oob-5.10\network_test"
       Command: "mbedgt --test-spec .\BUILD\tests\REALTEK_RTL8195AM\ARM\test_spec.json -n mbed-os-tests-network-*,mbed-os-tests-netsocket*"
       Tip: You could retry the last command with "-v" flag for verbose output
---

Issue request type

[ ] Question
[ ] Enhancement
[X] Bug

@yennster
Copy link
Contributor Author

yennster commented Sep 13, 2018

IAR failures:

mbedgt: test suite report:
+-----------------------+-------------------+-----------------------------+---------+--------------------+-------------+
| target                | platform_name     | test suite                  | result  | elapsed_time (sec) | copy_method |
+-----------------------+-------------------+-----------------------------+---------+--------------------+-------------+
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | FAIL    | 89.51              | default     |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TIMEOUT | 550.23             | default     |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | FAIL    | 294.08             | default     |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | FAIL    | 87.61              | default     |
+-----------------------+-------------------+-----------------------------+---------+--------------------+-------------+
mbedgt: test suite results: 3 FAIL / 1 TIMEOUT
mbedgt: test case report:
+-----------------------+-------------------+-----------------------------+---------------------------------------+--------+--------+---------+--------------------+
| target                | platform_name     | test suite                  | test case                             | passed | failed | result  | elapsed_time (sec) |
+-----------------------+-------------------+-----------------------------+---------------------------------------+--------+--------+---------+--------------------+
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS                      | 1      | 0      | OK      | 0.12               |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS_CACHE                | 0      | 1      | FAIL    | 2.6                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS_CANCEL               | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS_EXTERNAL_EVENT_QUEUE | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS_INVALID_HOST         | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS_NON_ASYNC_AND_ASYNC  | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS_SIMULTANEOUS         | 1      | 0      | OK      | 0.62               |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS_SIMULTANEOUS_CACHE   | 1      | 0      | OK      | 0.23               |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS_SIMULTANEOUS_REPEAT  | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | ASYNCHRONOUS_DNS_TIMEOUTS             | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | SYNCHRONOUS_DNS                       | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | SYNCHRONOUS_DNS_CACHE                 | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | SYNCHRONOUS_DNS_INVALID               | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | SYNCHRONOUS_DNS_MULTIPLE              | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_CONNECT_INVALID             | 1      | 0      | OK      | 0.18               |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ECHOTEST                    | 1      | 0      | OK      | 7.85               |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ECHOTEST_BURST              | 0      | 0      | ERROR   | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ECHOTEST_BURST_NONBLOCK     | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ECHOTEST_NONBLOCK           | 1      | 0      | OK      | 26.75              |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ENDPOINT_CLOSE              | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_OPEN_CLOSE_REPEAT           | 1      | 0      | OK      | 0.01               |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_OPEN_LIMIT                  | 1      | 0      | OK      | 0.09               |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_RECV_100K                   | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_RECV_100K_NONBLOCK          | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_RECV_TIMEOUT                | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_SEND_REPEAT                 | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_SEND_TIMEOUT                | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_THREAD_PER_SOCKET_SAFETY    | 1      | 0      | OK      | 5.57               |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_ECHOTEST                    | 1      | 0      | OK      | 4.68               |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_ECHOTEST_BURST              | 0      | 1      | FAIL    | 196.47             |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_ECHOTEST_BURST_NONBLOCK     | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_ECHOTEST_NONBLOCK           | 1      | 0      | OK      | 6.18               |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_OPEN_CLOSE_REPEAT           | 1      | 0      | OK      | 0.01               |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_OPEN_LIMIT                  | 1      | 0      | OK      | 0.08               |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_SENDTO_INVALID              | 1      | 0      | OK      | 0.04               |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_SENDTO_REPEAT               | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_SENDTO_TIMEOUT              | 1      | 0      | OK      | 0.04               |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT                          | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-DISCONNECT-REPEAT        | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-NOCREDENTIALS            | 0      | 1      | FAIL    | 15.03              |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-CHANNEL           | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-CHANNEL-FAIL      | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-NULL              | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-VALID-SECURE      | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-VALID-UNSECURE    | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-SECURE                   | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-SECURE-FAIL              | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONSTRUCTOR                      | 1      | 0      | OK      | 2.17               |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-GET-RSSI                         | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-SCAN                             | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-SCAN-NULL                        | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-SET-CHANNEL                      | 0      | 0      | SKIPPED | 0.0                |
| REALTEK_RTL8195AM-IAR | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-SET-CREDENTIAL                   | 0      | 0      | SKIPPED | 0.0                |
+-----------------------+-------------------+-----------------------------+---------------------------------------+--------+--------+---------+--------------------+
mbedgt: test case results: 3 FAIL / 33 SKIPPED / 16 OK / 1 ERROR
mbedgt: completed in 1028.94 sec
mbedgt: exited with code 4
[mbed] ERROR: "mbedgt" returned error.
       Code: 4
       Path: "C:\Users\jenplu01\Repos\oob-5.10\network_test"
       Command: "mbedgt --test-spec .\BUILD\tests\REALTEK_RTL8195AM\IAR\test_spec.json -n mbed-os-tests-network-*,mbed-os-tests-netsocket*"
       Tip: You could retry the last command with "-v" flag for verbose output
---

@ashok-rao
Copy link
Contributor

ashok-rao commented Sep 14, 2018

@SeppoTakalo FYI..

@cmonr
Copy link
Contributor

cmonr commented Sep 14, 2018

@yennster Would you mind reconfirming that this is still an issue today? The Austin site had some network issues for most of the day yesterday, which created false failures with the netsocket test in CI.

The issues seem to have resolved themselves, so I'm curious if this is still an issue as well.

@MarceloSalazar
Copy link

MarceloSalazar commented Sep 17, 2018

It looks something for @samchuarm to investigate and work with Realtek.

@samchuarm
Copy link

samchuarm commented Sep 18, 2018

Hi @ARMmbed/team-realtek @M-ichae-l , please help look into these GT netsocket test failures for RTL8195AM and address them as soon as you can. Thanks.

@samchuarm
Copy link

samchuarm commented Sep 18, 2018

By the way, do we confirm the failures are not caused by the network issue happened in Austin site as @cmonr mentioned?

@SeppoTakalo
Copy link
Contributor

SeppoTakalo commented Sep 18, 2018

This is the result from our CI

04:22:48 +---------------------------+-------------------+-----------------------------+---------+--------------------+-------------+
04:22:48 | target                    | platform_name     | test suite                  | result  | elapsed_time (sec) | copy_method |
04:22:48 +---------------------------+-------------------+-----------------------------+---------+--------------------+-------------+
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | TIMEOUT | 199.91             | default     |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TIMEOUT | 560.05             | default     |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | FAIL    | 510.15             | default     |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | FAIL    | 169.83             | default     |
04:22:48 +---------------------------+-------------------+-----------------------------+---------+--------------------+-------------+
04:22:48 mbedgt: test suite results: 2 FAIL / 2 TIMEOUT
04:22:48 mbedgt: test case report:
04:22:48 +---------------------------+-------------------+-----------------------------+------------------------------------+--------+--------+---------+--------------------+
04:22:48 | target                    | platform_name     | test suite                  | test case                          | passed | failed | result  | elapsed_time (sec) |
04:22:48 +---------------------------+-------------------+-----------------------------+------------------------------------+--------+--------+---------+--------------------+
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | mbed-os-tests-netsocket-dns        | 0      | 1      | ERROR   | 199.91             |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_CONNECT_INVALID          | 1      | 0      | OK      | 18.31              |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ECHOTEST                 | 1      | 0      | OK      | 13.33              |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ECHOTEST_BURST           | 0      | 0      | ERROR   | 0.0                |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ECHOTEST_BURST_NONBLOCK  | 0      | 0      | SKIPPED | 0.0                |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ECHOTEST_NONBLOCK        | 1      | 0      | OK      | 30.07              |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ENDPOINT_CLOSE           | 0      | 0      | SKIPPED | 0.0                |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_OPEN_CLOSE_REPEAT        | 1      | 0      | OK      | 0.11               |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_OPEN_LIMIT               | 1      | 0      | OK      | 0.11               |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_RECV_100K                | 0      | 0      | SKIPPED | 0.0                |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_RECV_100K_NONBLOCK       | 0      | 0      | SKIPPED | 0.0                |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_RECV_TIMEOUT             | 0      | 0      | SKIPPED | 0.0                |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_SEND_REPEAT              | 0      | 0      | SKIPPED | 0.0                |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_SEND_TIMEOUT             | 0      | 0      | SKIPPED | 0.0                |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_THREAD_PER_SOCKET_SAFETY | 1      | 0      | OK      | 8.76               |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_ECHOTEST                 | 1      | 0      | OK      | 2.18               |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_ECHOTEST_BURST           | 0      | 1      | FAIL    | 210.94             |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_ECHOTEST_BURST_NONBLOCK  | 1      | 0      | OK      | 195.44             |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_ECHOTEST_NONBLOCK        | 1      | 0      | OK      | 9.71               |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_OPEN_CLOSE_REPEAT        | 1      | 0      | OK      | 0.0                |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_OPEN_LIMIT               | 1      | 0      | OK      | 0.11               |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_SENDTO_INVALID           | 1      | 0      | OK      | 0.0                |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_SENDTO_REPEAT            | 1      | 0      | OK      | 0.21               |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_SENDTO_TIMEOUT           | 1      | 0      | OK      | 0.11               |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT                       | 1      | 0      | OK      | 2.53               |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-DISCONNECT-REPEAT     | 1      | 0      | OK      | 22.8               |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-NOCREDENTIALS         | 0      | 1      | FAIL    | 15.07              |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-CHANNEL        | 0      | 1      | FAIL    | 1.73               |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-CHANNEL-FAIL   | 0      | 1      | FAIL    | 1.22               |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-NULL           | 0      | 2      | FAIL    | 17.54              |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-VALID-SECURE   | 1      | 0      | OK      | 5.13               |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-VALID-UNSECURE | 0      | 0      | ERROR   | 0.0                |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-SECURE                | 1      | 0      | OK      | 2.49               |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-SECURE-FAIL           | 1      | 0      | OK      | 6.77               |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONSTRUCTOR                   | 1      | 0      | OK      | 2.29               |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-GET-RSSI                      | 1      | 0      | OK      | 4.14               |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-SCAN                          | 1      | 0      | OK      | 1.31               |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-SCAN-NULL                     | 1      | 0      | OK      | 1.3                |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-SET-CHANNEL                   | 0      | 3      | FAIL    | 0.0                |
04:22:48 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-SET-CREDENTIAL                | 0      | 1      | FAIL    | 0.11               |
04:22:48 +---------------------------+-------------------+-----------------------------+------------------------------------+--------+--------+---------+--------------------+
04:22:48 mbedgt: test case results: 7 FAIL / 7 SKIPPED / 23 OK / 3 ERROR
04:22:48 mbedgt: completed in 1440.12 sec

@samchuarm
Copy link

samchuarm commented Sep 18, 2018

Thanks @SeppoTakalo . In that case, Hi @M-ichae-l , please help look into these failures. Thanks.

@VeijoPesonen
Copy link
Contributor

VeijoPesonen commented Sep 18, 2018

PR #6292 is missing from new EMAC interface

@samchuarm
Copy link

samchuarm commented Sep 20, 2018

Since the netsocket tests were fully passed when Realtek delivered the EMAC interface, it seems these failures are due to the 5.10 updates.

@M-ichae-l
Copy link
Contributor

M-ichae-l commented Sep 20, 2018

Hi,
Sorry for the late reply. I just finished testing the issue with 5.9 and 5.10-rc2. The tests are all passed from my side. As @samchuarm said the reason may be the 5.10 updates or setting error.
In addition, I have found that "RealtekInterface.json" from "~mbed-os\tools\test_configs" is missing after 5.9.

@SeppoTakalo
Copy link
Contributor

SeppoTakalo commented Sep 20, 2018

@samchuarm What makes you assume that all tests have passed by that time?

During the EMAC work, only EMAC tests have been ran.

I cannot see any evidence that these test have been ran before when this driver has been developed:

@SeppoTakalo
Copy link
Contributor

SeppoTakalo commented Sep 20, 2018

@M-ichae-l Hi, can you provide the log from the test run?

Also, are you running the full, extented, test set as instructed here: https://github.com/ARMmbed/mbed-os/blob/master/TESTS/netsocket/README.md

For some of the testcases, we might have outdated configurations as there are now maintenance work being done in the test infra. Those will be resolved soon.

This is the result from last night:

04:23:32 mbedgt: checking for GCOV data...
04:23:32 mbedgt: mbed-host-test-runner: stopped and returned 'FAIL'
04:23:32 mbedgt: test on hardware with target id: DUMMY
04:23:32 mbedgt: test suite 'mbed-os-tests-netsocket-udp' ..................................................... FAIL in 507.84 sec
04:23:32 	test case: 'UDPSOCKET_ECHOTEST' .............................................................. OK in 3.43 sec
04:23:32 	test case: 'UDPSOCKET_ECHOTEST_BURST' ........................................................ FAIL in 197.24 sec
04:23:32 	test case: 'UDPSOCKET_ECHOTEST_BURST_NONBLOCK' ............................................... OK in 215.07 sec
04:23:32 	test case: 'UDPSOCKET_ECHOTEST_NONBLOCK' ..................................................... OK in 3.27 sec
04:23:32 	test case: 'UDPSOCKET_OPEN_CLOSE_REPEAT' ..................................................... OK in 0.00 sec
04:23:32 	test case: 'UDPSOCKET_OPEN_LIMIT' ............................................................ OK in 0.00 sec
04:23:32 	test case: 'UDPSOCKET_SENDTO_INVALID' ........................................................ OK in 0.15 sec
04:23:32 	test case: 'UDPSOCKET_SENDTO_REPEAT' ......................................................... OK in 0.32 sec
04:23:32 	test case: 'UDPSOCKET_SENDTO_TIMEOUT' ........................................................ OK in 0.00 sec
04:23:32 mbedgt: test case summary: 8 passes, 1 failure
04:23:32 mbedgt: all tests finished!
04:23:32 mbedgt: shuffle seed: 0.5112512543
04:23:32 mbedgt: exporting to JUNIT file 'junit.xml'...
04:23:32 mbedgt: exporting to TEXT 'test_results.txt'...
04:23:32 mbedgt: exporting to HTML file 'test_results.html'...
04:23:32 mbedgt: test suite report:
04:23:32 +---------------------------+-------------------+-----------------------------+---------+--------------------+-------------+
04:23:32 | target                    | platform_name     | test suite                  | result  | elapsed_time (sec) | copy_method |
04:23:32 +---------------------------+-------------------+-----------------------------+---------+--------------------+-------------+
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | TIMEOUT | 200.18             | default     |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TIMEOUT | 560.21             | default     |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | FAIL    | 507.84             | default     |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | FAIL    | 170.09             | default     |
04:23:32 +---------------------------+-------------------+-----------------------------+---------+--------------------+-------------+
04:23:32 mbedgt: test suite results: 2 FAIL / 2 TIMEOUT
04:23:32 mbedgt: test case report:
04:23:32 +---------------------------+-------------------+-----------------------------+------------------------------------+--------+--------+---------+--------------------+
04:23:32 | target                    | platform_name     | test suite                  | test case                          | passed | failed | result  | elapsed_time (sec) |
04:23:32 +---------------------------+-------------------+-----------------------------+------------------------------------+--------+--------+---------+--------------------+
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | mbed-os-tests-netsocket-dns        | 0      | 1      | ERROR   | 200.18             |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_CONNECT_INVALID          | 1      | 0      | OK      | 18.23              |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ECHOTEST                 | 1      | 0      | OK      | 5.93               |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ECHOTEST_BURST           | 0      | 0      | ERROR   | 0.0                |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ECHOTEST_BURST_NONBLOCK  | 0      | 0      | SKIPPED | 0.0                |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ECHOTEST_NONBLOCK        | 1      | 0      | OK      | 30.15              |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_ENDPOINT_CLOSE           | 0      | 0      | SKIPPED | 0.0                |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_OPEN_CLOSE_REPEAT        | 1      | 0      | OK      | 0.0                |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_OPEN_LIMIT               | 1      | 0      | OK      | 0.0                |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_RECV_100K                | 0      | 0      | SKIPPED | 0.0                |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_RECV_100K_NONBLOCK       | 0      | 0      | SKIPPED | 0.0                |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_RECV_TIMEOUT             | 0      | 0      | SKIPPED | 0.0                |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_SEND_REPEAT              | 0      | 0      | SKIPPED | 0.0                |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_SEND_TIMEOUT             | 0      | 0      | SKIPPED | 0.0                |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | TCPSOCKET_THREAD_PER_SOCKET_SAFETY | 1      | 0      | OK      | 5.73               |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_ECHOTEST                 | 1      | 0      | OK      | 3.43               |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_ECHOTEST_BURST           | 0      | 1      | FAIL    | 197.24             |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_ECHOTEST_BURST_NONBLOCK  | 1      | 0      | OK      | 215.07             |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_ECHOTEST_NONBLOCK        | 1      | 0      | OK      | 3.27               |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_OPEN_CLOSE_REPEAT        | 1      | 0      | OK      | 0.0                |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_OPEN_LIMIT               | 1      | 0      | OK      | 0.0                |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_SENDTO_INVALID           | 1      | 0      | OK      | 0.15               |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_SENDTO_REPEAT            | 1      | 0      | OK      | 0.32               |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | UDPSOCKET_SENDTO_TIMEOUT           | 1      | 0      | OK      | 0.0                |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT                       | 1      | 0      | OK      | 2.41               |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-DISCONNECT-REPEAT     | 1      | 0      | OK      | 24.13              |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-NOCREDENTIALS         | 0      | 1      | FAIL    | 15.09              |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-CHANNEL        | 1      | 0      | OK      | 0.98               |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-CHANNEL-FAIL   | 0      | 1      | FAIL    | 0.88               |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-NULL           | 0      | 2      | FAIL    | 17.43              |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-VALID-SECURE   | 1      | 0      | OK      | 4.82               |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-PARAMS-VALID-UNSECURE | 1      | 0      | OK      | 4.94               |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-SECURE                | 1      | 0      | OK      | 2.41               |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONNECT-SECURE-FAIL           | 1      | 0      | OK      | 6.91               |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-CONSTRUCTOR                   | 1      | 0      | OK      | 2.29               |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-GET-RSSI                      | 1      | 0      | OK      | 4.06               |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-SCAN                          | 1      | 0      | OK      | 1.32               |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-SCAN-NULL                     | 1      | 0      | OK      | 1.27               |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-SET-CHANNEL                   | 0      | 3      | FAIL    | 0.0                |
04:23:32 | REALTEK_RTL8195AM-GCC_ARM | REALTEK_RTL8195AM | mbed-os-tests-network-wifi  | WIFI-SET-CREDENTIAL                | 0      | 1      | FAIL    | 0.1                |
04:23:32 +---------------------------+-------------------+-----------------------------+------------------------------------+--------+--------+---------+--------------------+
04:23:32 mbedgt: test case results: 6 FAIL / 7 SKIPPED / 25 OK / 2 ERROR
04:23:32 mbedgt: completed in 1438.51 sec

Note: DNS_CACHE cases are known to fail, fix already submitted in #8171

@samchuarm
Copy link

samchuarm commented Sep 20, 2018

@SeppoTakalo , I see your point. It was my misunderstanding.

@samchuarm
Copy link

samchuarm commented Sep 21, 2018

@M-ichae-l , Hi can you please address Seppo's question?

@M-ichae-l
Copy link
Contributor

M-ichae-l commented Sep 25, 2018

@SeppoTakalo
I am running mbed test -n mbed-os-tests-netsocket*. But I did not get all testcases. So I am going to test again. One more thing, does this issue only happens on windows 10 ?

@SeppoTakalo
Copy link
Contributor

SeppoTakalo commented Sep 25, 2018

It should not be host OS specific.

@samchuarm
Copy link

samchuarm commented Oct 2, 2018

Hi @M-ichae-l , do you have update for running the tests?

@M-ichae-l
Copy link
Contributor

M-ichae-l commented Oct 2, 2018

Hi @samchuarm, @AdamZhang0124 is currently taking over this issue. We have tested that it is not hosted OS specific.

@samchuarm
Copy link

samchuarm commented Oct 2, 2018

Thanks @M-ichae-l . @AdamZhang0124 , are you able to reproduce the issues now?

@AdamZhang0124
Copy link
Contributor

@M-ichae-l, @samchuarm
Hi Sam, nice to meet you! I have tried to run the aforementioned network socket test plan under the following settings:
Environment: Windows 10
Mbed CLI version: 1.8.0
Python version: 2.7.14
Mbed OS: mbed-os-5.10.0-rc2

However, it seems like some test cases were not generated while I was testing.
I am still working on it and will let you know for further updates, thanks!

@SeppoTakalo
Copy link
Contributor

Hi @AdamZhang0124

Do you see testcases in "skipped" state after a build?

The reason for this is that if the testcases do not find configuration values they are expecting, they will skip the build.
For example, if the device does not provide default interface, or if some values missing.

See example test configuration from: https://github.com/ARMmbed/mbed-os/blob/master/tools/test_configs/EthernetInterface.json

Then examples, how test cases skip the build if values are not provided:
https://github.com/ARMmbed/mbed-os/blob/master/TESTS/netsocket/tcp/main.cpp#L19
https://github.com/ARMmbed/mbed-os/blob/master/TESTS/network/wifi/main.cpp#L19
https://github.com/ARMmbed/mbed-os/blob/master/TESTS/network/wifi/main.cpp#L38

@samchuarm
Copy link

Hi @AdamZhang0124 , thanks for the update. Is there a log that you can share so Seppo could help pinpoint where you might configure the tests wrong?

@AdamZhang0124
Copy link
Contributor

Hi @samchuarm and @SeppoTakalo,
These are the test logs generated from the tests I just conducted for your information:

dns_log.txt
tcp_log.txt
udp_log.txt
wifi_log.txt

For the wifi test, there may have some setting errors that I am troubleshooting now.
Also, some of the test cases were not being included after a build like the test log that you posted earlier.

@samchuarm
Copy link

Hi @AdamZhang0124 , please follow @SeppoTakalo 's instruction to add the target override for MBED_CONF_LWIP_PBUF_POOL_SIZE.

Hi @SeppoTakalo , does the test results for the UDP tests look ok to you? They seem all passed.
And could you please help give some pointers for Realtek about the TCP burst test errors that Adam is seeing? Thanks.

@AdamZhang0124
Copy link
Contributor

AdamZhang0124 commented Nov 20, 2018

Hi @samchuarm and @SeppoTakalo, I have identified the reason which causes udp test and tcp test failure. It is related to the thread stack size and packet buffer size. I need to do more tests to find suitable values.
So far, the dns, udp, tcp tests can all pass.
fullrun20_11_2018.txt

Other than that, the Network Wifi test still has problems, I will keep on working on that.

@SeppoTakalo
Copy link
Contributor

+-----------------------+-------------------+-----------------------------+--------+--------------------+-------------+
| target                | platform_name     | test suite                  | result | elapsed_time (sec) | copy_method |
+-----------------------+-------------------+-----------------------------+--------+--------------------+-------------+
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-dns | OK     | 117.4              | default     |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-tcp | OK     | 170.99             | default     |
| REALTEK_RTL8195AM-ARM | REALTEK_RTL8195AM | mbed-os-tests-netsocket-udp | OK     | 147.79             | default     |
+-----------------------+-------------------+-----------------------------+--------+--------------------+-------------+
mbedgt: test suite results: 3 OK

This looks good now.

@samchuarm
Copy link

@SeppoTakalo , thanks for the review.

Hi @AdamZhang0124 , thanks for the work to fix these. Can you show us how you implement the fix for preview? Can you share your netsocket WiFi test results? Does it fail the same way as reported? Thanks.

@AdamZhang0124
Copy link
Contributor

Hi @samchuarm , the failure of UDP test and TCP test is due to the small heap size. The default heap size is 1600. Only by changing the 'mem-size' value in mbed_lib.json to override the default value could fix this issue.
image

The network WIFI test log is attached for your information:
wifi_test_log.txt

@samchuarm
Copy link

Thanks @AdamZhang0124 , that's quite many failures in the WiFi tests. Anything do you suspect that could cause these tests fail?

Hi @SeppoTakalo and @0xc0170 , is it okay for Realtek to override the 'mem-size' value in mbed_lib.json for passing UDP/TCP netsocket tests ?

@AdamZhang0124
Copy link
Contributor

Hi @samchuarm, I have found the problem. Some failures are caused because the unsecured AP was not set properly. This is the new test result and I am debugging the reminding failures. Thanks!
image

@SeppoTakalo
Copy link
Contributor

@samchuarm and @AdamZhang0124 Yes. It is OK to override the mem-size for this particular board if it is backed up with a test result.

Many platform already override the value.

@AdamZhang0124
Copy link
Contributor

AdamZhang0124 commented Nov 22, 2018

Hi @SeppoTakalo, I forgot to attach the full test log.
fullrun_22112018.txt
The udp and tcp tests are now able to pass after increasing the heap value. The packet loss ratio now can be reduced to less than 0.01.

@samchuarm
Copy link

Hi @AdamZhang0124 , any update on the WiFi tests? Thanks.

@AdamZhang0124
Copy link
Contributor

AdamZhang0124 commented Nov 30, 2018

Hi @samchuarm , so far I have fixed the WIFI-SCAN test case failure. This failure is due to the wrong expression of the 'wifi-secure-protocol' value in mbed_app.json file.
As in 'mbed-os/TESTS/netsocket/README.md', the 'wifi-secure-protocol' valid values are suggested to be 'WEP, WPA, WPA2, WPA_WPA2'.
image
However, for 'WPA_WPA2', the correct expression should be 'WPA/WPA2' as indicated in Nsapi_types.h.
image

There is a small typo that need to be noticed. After I change to WPA/WPA2 based on my wifi settings, this WIFI-SCAN test case is able to pass.

@samchuarm
Copy link

Hi @SeppoTakalo , can you please review Adam's comments? Is this something needs a PR to address? Thanks.

Hi @AdamZhang0124 , what about other WiFi test failures? Are you able to address them now? Thanks.

@SeppoTakalo
Copy link
Contributor

@AdamZhang0124

I don't see the problem.
What mbed_app.json file are you referring to?

The WPA_WPA2 is the correct form, as indicated in valid values are ... description.
This is used in NetworkInterfaceDefaults.cpp with C preprocessor to append NSAPI_SECURITY_ prefix into the string. So the final string would be NSAPI_SECURITY_WPA_WPA2 which is the enum on the line you have highlighted.

If you would use WPA/WPA2 the string would be replaced with NSAPI_SECURITY_WPA/WPA2 where WPA2 is not known, which should then lead to build failure.

@AdamZhang0124
Copy link
Contributor

AdamZhang0124 commented Dec 4, 2018

Hi @SeppoTakalo,

In mbed_app.json, the "wifi-secure-protocol" refers to MBED_CONF_APP_WIFI_SECURE_PROTOCOL.

image

In Wifi_scan.cpp, the program checks the value of get_security().

image

In Get_security.cpp, the program compares the MBED_CONF_APP_WIFI_SECURE_PROTOCOL value with the preset char and then returns NSAPI_SECURITY_WPA_WPA2

image

Therefore, I believe the value of MBED_CONF_APP_WIFI_SECURE_PROTOCOL should follow the preset char naming which uses WPA/WPA2 to represent WPA_WPA2.

Please correct me if I am wrong, thanks.

@SeppoTakalo
Copy link
Contributor

Ah.. true.. you are correct.
Seems that our documentation and example configuration file are out of sync.

The WPA/WPA2 form is used in the [get_security()](https://github.com/ARMmbed/mbed-os/blob/master/TESTS/network/wifi/get_security.cpp], as you shown, and also in the template_mbed_app.json

The WPA_WPA2 form is used in nsapi.default-wifi-security and in the README.md you pointed.

Looks like we need to unify those and use only the WPA_WPA2 form. Thank you for pointing this out.

@samchuarm
Copy link

Hi @SeppoTakalo , thanks for the review. Then I guess WIFI-SCAN test failures are not Realtek platform specific.

Hi @AdamZhang0124 , What are the remaining WiFi failures you're still working on? Any progress?
I'd suggest you to start submitting PRs to check in the fixes for the dns/tcp/udp test failures since PR review/CI/approval takes some time. Thanks.

@AdamZhang0124
Copy link
Contributor

Hi @samchuarm ,
I have solved the remaining test case failures. But for 'WIFI-CONNECT-DISCONNECT-REPEAT', the test result is sometimes failed. So I need more time to verify the problem and make it stable. Thanks.
image

@samchuarm
Copy link

Hi @AdamZhang0124 , this looks a lot better now. Thank you.
While you're still working on the test case of 'WIFI-CONNECT-DISCONNECT-REPEAT', can you start submitting PR to check in fixes for the failures you've addressed?

@AdamZhang0124
Copy link
Contributor

Hi @samchuarm , I have fixed all the test case failures and start final checking the codes before submitting PR.
Btw, I have seen the new test case extension #9001 , should I test them also before I submit a PR?
Thanks.
10122018FullRun.txt

@samchuarm
Copy link

Hi @AdamZhang0124 , that's great to know. Thanks for the work. Please submit PR to check in the fixes that you have now as soon as you could. Please associate the PR with this ticket.
In case of failing the newly added tests, you can address it in a separate PR.

@AdamZhang0124
Copy link
Contributor

AdamZhang0124 commented Dec 12, 2018

Hi @samchuarm and @SeppoTakalo ,

I have included the newly added test cases and the test is able to pass.

Also, I have submitted the pull request #9084 , please help review.

Btw, in the tcp test case under 'mbed-os\TESTS\netsocket\tcp', there is a missing comma in line 166 in main.cpp file which causes compile error.

TestResult_NetSocket_ARM.txt
TestResult_Network_ARM.txt

@samchuarm
Copy link

Hi @AdamZhang0124 , thanks for the new test results update and PR.

Hi @SeppoTakalo , please help review the test results and PR changes. Thanks.

AdamZhang0124 added a commit to AdamZhang0124/mbed-os that referenced this issue Dec 18, 2018
This PR addresses the issue of ARMmbed#8124.
It updates and enriches the wifi connection error type to adapt the Network Socket test plan requirement.
In the meantime, it increases the heap size that allows the transmission of larger packet size.

Description
1. Increase heap size in lwipstack\mbed_lib.json to fulfill bursty TCP and UDP transmission requirement.
2. Modify and enrich wifi connection error types in TARGET_AMEBA\RTWInterface.cpp to adapt the decision logic of the wifi test cases.
3. Add new static constants in TARGET_AMEBA\RTWInterface.h, including 'SSID_MAX_LENGTH', 'PASSPHRASE_MAX_LENGTH' and 'PASSPHRASE_MIN_LENGTH' to help verifying the validity of ssid and passphrase.

Pull request type
[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change
cmonr pushed a commit that referenced this issue Dec 28, 2018
This PR addresses the issue of #8124.
It updates and enriches the wifi connection error type to adapt the Network Socket test plan requirement.
In the meantime, it increases the heap size that allows the transmission of larger packet size.

Description
1. Increase heap size in lwipstack\mbed_lib.json to fulfill bursty TCP and UDP transmission requirement.
2. Modify and enrich wifi connection error types in TARGET_AMEBA\RTWInterface.cpp to adapt the decision logic of the wifi test cases.
3. Add new static constants in TARGET_AMEBA\RTWInterface.h, including 'SSID_MAX_LENGTH', 'PASSPHRASE_MAX_LENGTH' and 'PASSPHRASE_MIN_LENGTH' to help verifying the validity of ssid and passphrase.

Pull request type
[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests