Michal Paszta
ea04c4f85e
Remove internal usage of deprecated APIs in IPCore
...
Updated:
* netsocket classes,
* unittests, stubs and mocks,
* greentea tests
2019-11-27 20:02:20 +02:00
Tymoteusz Bloch
983c9586ee
Adjustment of netsocket tests to the lossy mesh network limitation.
2019-11-20 12:13:34 +01:00
Chris Trowbridge
a1edbb9099
Switch to using mbed-trace for greentea test debug output
2019-11-15 11:18:13 -05:00
RAJKUMAR KANAGARAJ
a682fde31c
Incorporated review comments
2019-11-11 05:01:23 -08:00
RAJKUMAR KANAGARAJ
c9eb48a0c5
Netsocket,lora,cellular,nework test case requires RTOS so MBED_CONF_RTOS_PRESENT guard to all test cases
2019-11-06 04:06:11 -08:00
Teppo Järvelin
65bf17eff5
Fix netsocket tests for IAR
...
Test case printed IP address. If ip address is null, IAR compiled binary fails.
Added check for printing null. If IP address is null, then it prints string 'null'.
2019-08-15 15:26:36 +03:00
int_szyk
ae6f8be146
Newline at the end of files
2019-08-01 08:44:58 +02:00
int_szyk
8b68a1ea58
Updated testcases
2019-07-31 10:46:38 +02:00
Tymoteusz Bloch
d42ed4e6a9
Added hardcoded Echo server defaults for Greentea socket tests.
2019-05-27 14:41:17 +02:00
Tymoteusz Bloch
42b5680697
Multihoming fixed according to new LWIP implementation.
2019-04-11 20:54:48 -05:00
Michal Paszta
09183c94b9
TCP/TLS Socket tests will skip if TCP is not supported
2019-03-28 10:08:53 +02:00
Michal Paszta
b7ed4b5d9e
Refactor socket stats to reduce bioler plate
...
Add a proper test case setup and teardown which does the socket stats
checks in tcp, udp and tls.
2019-03-14 11:09:35 +02:00
kegilbert
194fa129fb
Update recently added previous macro name uses in tests
2019-03-01 13:53:47 -06:00
Michal Paszta
99fc26ecdf
Greentea Socket bind tests made ipv6-aware
2019-02-01 15:34:07 +02:00
Michal Paszta
59e8dedb67
TCP/UDP greentea tests refactoring and cleanup
2019-01-15 10:00:35 +01:00
Seppo Takalo
18404e93be
Drop MBED_EXTENTED_TESTS flagging from network tests.
...
All properly working IP stacks are required to pass Mbed OS socket tests.
This have now proven with current Ethernet devices with LwIP stack.
2018-12-19 16:18:33 +02:00
Kari Haapalehto
e502675bd1
Fix test-netsocket-tcp greentea test build fails.
...
main.cpp was missing comma at the end of line.
2018-12-11 12:51:30 +02:00
Michal Paszta
c48312ded4
Missing socket greentea tests implementation
2018-12-07 10:35:39 +01:00
deepikabhavnani
c272377a81
Make sure no memory overhead if statistics are disabled
2018-11-26 09:42:45 -06:00
deepikabhavnani
068f2d14c0
Resolve IAR build issue
...
IAR not able to assign default zero value in array and complaints of
internal error as below:
[ERROR] Internal error: [Front end]: assertion failed at:
"..\..\Translator\compiler_core\src\parser\edg\decl_inits.c", line 2031
2018-11-26 09:42:45 -06:00
Deepika
f6c1a40b29
Add config options for socket statistics
...
1. MBED_CONF_NSAPI_SOCKET_STATS_ENABLE to enable the statistics
2. MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT max sockets statistics cached
2018-11-26 09:42:45 -06:00
Deepika
a851df66e3
Code/bug after testing
...
1. Fixing astyle and docs
2. Extra mutex lock was removed
3. Bytes are updated when send/recv > 0 and not in case of -ve error
4. Review comments
5. Guard statistics implementation in test with MBED_NW_STATS_ENABLED
2018-11-26 09:42:45 -06:00
Deepika
eec54a0fc9
Update tcp test cases to verify network socket statistics
...
Cases Updated are:
1. TCPSOCKET_ECHOTEST_NONBLOCK
2. TCPSOCKET_OPEN_CLOSE_REPEAT
3. TCPSOCKET_OPEN_LIMIT
2018-11-26 09:42:45 -06:00
Seppo Takalo
66a2101006
Continue Socket and WiFi tests even on test failure.
...
Purpose is to run full set of testcases on each run.
Testcases should contain proper cleanup handlers so that they are
independent.
2018-10-23 13:58:21 +03:00
Mika Leppänen
3f47963aff
Updated greentea TCP tests to use default interface
2018-08-21 10:55:49 +03:00
Martin Kojtal
e52bb68f93
tests: astyle fix
...
All tests should comply to our coding standard now
2018-08-03 10:23:38 +01:00
Veijo Pesonen
dd6ec037d7
Makes Greentea TCP test cases to timeout less in connection errors
...
Made to prevent timeout if a single test case fails. The goal is that
each test case might wait only half of the remaining time reserved for
running TCP test cases.
2018-07-26 09:39:04 +03:00
Juha Ylinen
3c32b3ada7
Update Greentea netsocket and wifi tests
...
Increase timeout for netsocket TCP and UDP tests. Old timeout
(240 seconds) was not enough for slower devices to complete the
tests.
Accept error codes NSAPI_ERROR_CONNECTION_TIMEOUT and
NSAPI_ERROR_NO_CONNECTION when running test wifi_connect_secure_fail
2018-06-21 09:01:15 +03:00
Mika Leppänen
35f064fc69
Changed TCP socket test to use shared buffers
...
Changed RX and TX buffers used in TCP socket tests to global variables
to conserve memory.
2018-06-04 13:51:32 +03:00
Veijo Pesonen
491a7ea03e
Fixes findings from Greentea netsocket TCP test cases
2018-05-25 09:39:36 +03:00
Veijo Pesonen
21ec972798
Switches Greentea netsocket test case naming convention
...
From lowercase to uppercase and drops 'test_'-prefix. Test case
descriptions do also match to TC names now.
Additionally all the TCs are not behing MBED_EXTENDED_TESTS
anymore.
2018-05-25 09:39:36 +03:00
Veijo Pesonen
4fa57e36fe
Greentea TCP test cases - check all socket calls
2018-05-25 09:39:36 +03:00
Veijo Pesonen
19335741df
Adds TCP test case
...
tcpsocket_send_repeat
2018-05-25 09:39:35 +03:00
Veijo Pesonen
aee6b06e0c
Adds TCP test case
...
tcpsocket_echotest
tcpsocket_echotest_nonblock
2018-05-25 09:38:23 +03:00
Veijo Pesonen
df825cb3f9
Adds TCP test case
...
tcpsocket_connect_invalid
2018-05-25 09:38:23 +03:00
Veijo Pesonen
38b8865bcc
Adds TCP and UDP test cases
...
tcpsocket_open_close_repeat
udpsocket_open_close_repeat
2018-05-25 09:35:14 +03:00
Veijo Pesonen
c86bf1acd0
Adds more TCP and UDP test cases
...
Adds TCP and UDP test cases
tcpsocket_open_limit
udpsocket_open_limit
2018-05-25 09:35:14 +03:00
Veijo Pesonen
f04f7c1773
Starts adding more TCP and UDP performance tests
...
Starts splitting Greentea test suites to TCP and UDP suites and adds
more test cases like
tcpsocket_echotest_burst
tcpsocket_echotest_burst_nonblock
tcpsocket_endpoint_close
tcpsocket_recv_100k
tcpsocket_recv_100k
tcpsocket_recv_timeout
tcpsocket_send_timeout
tcpsocket_thread_per_socket_safety
udpsocket_echotest_burst
udpsocket_echotest_burst_nonblock
udpsocket_recv_timeout
udpsocket_sendto_timeout
2018-05-25 09:35:14 +03:00