Commit Graph

187 Commits (beec0f1e847bd0c085051fb772cffcc17a217ec2)

Author SHA1 Message Date
Martin Kojtal e4b3603fe4
Merge pull request #11936 from kivaisan/cancel_timedout_async_dns_query
DNS tests: Cancel asynchronous dns query if it times out
2019-11-26 11:47:33 +01:00
Martin Kojtal 860f18b59b
Merge pull request #11819 from tymoteuszblochmobica/timeouts
Add code to verify if external Wifi module is still responsible
2019-11-25 15:57:53 +01:00
Kimmo Vaisanen 896bc4432b DNS tests: Cancel asynchronous dns query if it times out
In this test case if asynchronous DNS request results does not happen
in requested time, the request must be cancelled to ensure it does not
happen later on when test has exited already.

We've seen couple of crashes in CI tests which indicate this kind of behaviour
but this is very difficult to reproduce.
2019-11-25 10:07:46 +02:00
Ari Parkkila d2f87a141d TESTS: Fix TCP/TLS send_timeout test to non-block 2019-11-21 04:15:44 -08:00
Tymoteusz Bloch 983c9586ee Adjustment of netsocket tests to the lossy mesh network limitation. 2019-11-20 12:13:34 +01:00
Martin Kojtal 2e96145b76
Merge pull request #11871 from AriParkkila/test-udpechotest-timeout
TESTS: Add socket.set_timeout in udpsocket_echotest
2019-11-16 07:55:53 +01:00
Chris Trowbridge a1edbb9099 Switch to using mbed-trace for greentea test debug output 2019-11-15 11:18:13 -05:00
Ari Parkkila ed754434b7 TESTS: Add socket.set_timeout in udpsocket_echotest
Some packet loss may be expected/allowed with UDP.
Set socket timeout to continue testing if no response is received within a timeout.
2019-11-14 06:04:37 -08:00
Tymoteusz Bloch 678b57c253 Add code to verify if external Wifi module is still responsible
after DNS Query flooding during DNS timeout test.
DNS timeout test requires flooding device with DNS queries.
This causes problem to ESP8266 module causing it to stuck for 11 sec.
In result all following tests fails. To avoid this "smart delay" is added.
If device preforms gethostbyname correctly then tests can proceed.
Otherwise after 1 sec sleep gethostbyname is repeated until success or re-check limit (set to 15).
Thanks to this all ethernet and non ESP8266 wireless devices don't need to wait but ESP must wait.
2019-11-12 14:41:15 +01:00
Martin Kojtal 09c24507c3
Merge pull request #11824 from rajkan01/feature-baremetal-greentea-net
Skip Bare Metal green tea test for Network component
2019-11-12 11:09:46 +01:00
RAJKUMAR KANAGARAJ a682fde31c Incorporated review comments 2019-11-11 05:01:23 -08:00
Martin Kojtal 816689d1bb
Merge pull request #11822 from tymoteuszblochmobica/tls
TLSSOCKET_HANDSHAKE_INVALID  test skip if  DNS AAA record not available.
2019-11-08 13:31:45 +01:00
RAJKUMAR KANAGARAJ 120ca1b245 Incorporated the review comments 2019-11-07 07:48:43 -08:00
Kimmo Vaisanen 582b16ffbc Add sender address and port verification to UDPSOCKET_ECHOTEST
recvfrom method returns sender address and port and this commit
adds a test for it in UDPSOCKET_ECHOTEST.
2019-11-07 14:51:20 +02:00
Tymoteusz Bloch eb3befdac9 TLSSOCKET_HANDSHAKE_INVALID test skip if DNS AAA record not available.
TLS test sevrver "badssl.com" doesn't support DNS AAA records for IPV6.
To avoid test fail if no IPV4 is chosen this test is skipped.
2019-11-06 17:57:19 +01: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
Mirela Chirica d2794c63c0 Cellular: Baud rate setting for UDPSOCKET_ECHOTES_BURST greentea test 2019-11-06 10:09:03 +02:00
Mirela Chirica 1993347532 Cellular: Baud rate setting for tls greentea tests 2019-11-06 10:08:34 +02:00
Martin Kojtal 5303b10509
Merge pull request #11693 from mtomczykmobica/ONME-4398
UDPSOCKET_ECHOTEST change to tolerate duplicate packets
2019-11-04 15:29:51 +01:00
Mirela Chirica 3fdbe2408d Cellular: Baud rate setting for TCPSOCKET_RECV_100K greentea test 2019-11-01 17:22:06 +02:00
Marcin Tomczyk 11864c71aa UDPSOCKET_ECHOTEST change to tolerate duplicate packets 2019-10-16 03:55:26 -07:00
Martin Kojtal 0e7d8927f1
Merge pull request #11615 from kivaisan/remove_deprecated_cellular_tests
Cellular: Remove old deprecated tests
2019-10-14 09:28:01 +02:00
Anna Bridge 51680cb55e
Merge pull request #11601 from michalpasztamobica/tests_dns_timeouts_esp8266
DNS tests modification for ESP8266-specific scenario
2019-10-07 16:49:11 +01:00
Anna Bridge eeb033f814
Merge pull request #11357 from kivaisan/offloaded_tlssocket_bg96
Offloaded TLSSocket and BG96 support for it
2019-10-03 11:54:32 +01:00
Kimmo Vaisanen b6ebfeea2c Cellular: Remove old deprecated tests
Cellular tests have been replaced with generic mbed-os netsocket and network interface tests.
2019-10-03 10:24:12 +03:00
Michal Paszta 3297445ac2 Increase the timeout for DNS tests as their number increased 2019-10-01 15:14:44 +03:00
Michal Paszta d6b77da270 Increase timeout in DNS_TIMEOUTS test for ESP8266
The test floods the device with UDP requests (it skips the 100 ms delay to simulate instant timeout). ESP8266 starts responding with "busy p..." message. It needs more time to process the data and recover for subsequent tests.
2019-10-01 15:14:25 +03:00
Antti Kauppila f0eba17ca2 Added missing include 2019-09-30 14:50:26 +03:00
Antti Kauppila f26074c7be Added missing include + cleaned up some tests 2019-09-27 11:13:20 +03:00
Kimmo Vaisanen 986204f269 Fix TLSSocket tests
- set certs and keys after socket open() as required by offloaded TLSSocket
- Added more checks for invalid handshake test and removed google.com test as
  as some modems (e.g. BG96) might contains root CA for google.com
2019-09-25 09:25:33 +03:00
Antti Kauppila 6adc2440a3 DNS manual cleanup mechanism added 2019-09-20 10:20:48 +03:00
Martin Kojtal e134b22dab
Merge pull request #11473 from michalpasztamobica/gcc_warnings_fixes
Fix compilation warnings from GCC in netsocket/network tests
2019-09-19 10:36:16 +02:00
Martin Kojtal 926ffb0ede
Merge pull request #11440 from mtomczykmobica/ONME-4239
Add missing documentation about tls testing
2019-09-18 11:23:38 +02:00
Michal Paszta 9ce69b6f7d Fix compilation warnings from GCC 2019-09-16 12:11:26 +03:00
Marcin Tomczyk df8e3c87fe Add missing documentation about tls testing - review comments fixes 2019-09-12 07:51:30 +02:00
Amanda Butler 4c3cca028e
Edit README.md
Edit document.
2019-09-10 15:20:55 -05:00
Marcin Tomczyk da8dbca561 Add missing documentation about tls testing 2019-09-09 11:54:19 +02:00
Tymoteusz Bloch 126ac1e559 DNS cache synchronous fix - Non zero TTL test server change 2019-09-05 17:21:33 +02:00
Michal Paszta 05e94afca3 Replace TEST_ASSERT_INT_WITHIN usage in netsocket tests
IPCore's netsocket tests are expected to run all tests even if some of them fail. The TEST_ASSERT_INT_WITHIN macro sets a global variable Unity.CurrentTestFailed which prevents further checks and gives incorrect failure count. Other assertion macros in Unity do not do that.
2019-08-22 14:32:59 +03: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
Teppo Järvelin ce36104ab3 Fix netsocket DNS test 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-12 09:39:41 +03:00
Seppo Takalo 818c1d6f0f
Merge pull request #11130 from Tharazi97/NotSupportedTest
Updated testcases
2019-08-02 13:27:54 +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
Ari Parkkila 71c7ed2fb4 Cellular: Add BG96 AT driver with DNS support 2019-07-31 00:19:05 -07:00
Kevin Bracey a522dcfa0a Replace deprecated wait calls 2019-07-15 10:13:50 +03:00
Tymoteusz Bloch c22350589d UDPSOCKET_ECHOTEST_NONBLOCK performance improvement. 2019-06-10 11:20:12 +02:00
Martin Kojtal dd77957d45
Merge pull request #10665 from tymoteuszblochmobica/json
Add hardcoded Echo server defaults for Greentea socket tests.
2019-06-09 18:05:03 +01:00
Kevin Bracey 2fbbd9d2ca Introduce Semaphore::acquire methods
Deprecate wait() in favour of acquire(), try_acquire(),
try_acquire_for() and try_acquire_until().

Brings Semaphore more into line with CMSIS-RTOS 2 (which uses "acquire"),
itself (as it has "release"), and other classes having "try", "try for"
and "try until".

Also steps away from vague "wait" term - the primary operation here is
to acquire the semaphore, and this will of course sleep.
2019-05-28 17:02:06 +03:00
Tymoteusz Bloch d42ed4e6a9 Added hardcoded Echo server defaults for Greentea socket tests. 2019-05-27 14:41:17 +02:00