Commit Graph

51 Commits (68f9196b44e2d3221b28316b48bb57a9d40f7207)

Author SHA1 Message Date
Martin Kojtal e3ad1cae55
Merge pull request #12334 from AriParkkila/cell-c030-r412m
Update cellular drivers/tests for UBLOX_C030_R412M
2020-02-05 12:50:11 +00:00
Ari Parkkila 4da93bf979 Add UBLOX_C030_R412M in CellularInterface.json 2020-01-30 04:30:54 -08:00
Ari Parkkila cd6d9e6e8c Enable SYNCHRONOUS_DNS_CACHE just for NSAPI_PPP_AVAILABLE 2020-01-29 03:19:21 -08:00
Tymoteusz Bloch 17c5f3ecd7 Greentea DNS tests workaround due to NSAPI DNS bug/deadlock with Nanostack.
Tests sequence swaped:
ASYNCHRONOUS_DNS_TIMEOUTS
ASYNCHRONOUS_DNS_INVALID_HOST
This is temporary solution to prevent Jenkins fail until root cause will be fixed.
2020-01-24 13:26:29 +01:00
Martin Kojtal 40b6f12dfd
Merge pull request #12239 from tymoteuszblochmobica/testfix
Fix DNS multiple query hints to perform both IP4 and IP6 tests
2020-01-15 13:02:43 +01:00
Tymoteusz Bloch d30dba29ec Fix DNS multiple query hints to perform both IP4 and IP6 tests 2020-01-10 17:54:39 +01:00
Evelyne Donnaes 8a4bba33bd Fixed baremetal build failures 2020-01-10 13:20:59 +00:00
Martin Kojtal 9d16a17e7e
Merge pull request #11653 from tymoteuszblochmobica/multiple
Add  Getaddrinfo interface for multiple DNS adresses
2020-01-07 14:53:36 +01:00
Tymoteusz Bloch 8b2f4c2e7e Getaddrinfo interface for multiple DNS adresses added.
New members are added to the network interface
-getaddrinfo
-getaddrinfo_async
gethostbyname is unchanged but gethostbyname_async  result param now contains results od DNS records found.
Test cases for sync/async added added to DNS test folder.
2019-12-16 13:59:46 +01:00
Tymoteusz Bloch 0859ff7b79 Netsocket tests timeouts and JSON and TLS configuration adjusted to pass under mesh Wisun.
Netsocket timeouts increased due to long node join on current Wisun implementation.
2019-12-11 17:42:29 +01:00
Martin Kojtal ffdd54315f
Merge pull request #11941 from michalpasztamobica/remove_internal_string_apis
Remove string-based API usage within mbed-os
2019-11-28 14:26:03 +01:00
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
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
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
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
RAJKUMAR KANAGARAJ a682fde31c Incorporated review comments 2019-11-11 05:01:23 -08:00
RAJKUMAR KANAGARAJ 120ca1b245 Incorporated the review comments 2019-11-07 07:48:43 -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
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
Antti Kauppila 6adc2440a3 DNS manual cleanup mechanism added 2019-09-20 10:20:48 +03:00
Michal Paszta 9ce69b6f7d Fix compilation warnings from GCC 2019-09-16 12:11:26 +03:00
Tymoteusz Bloch 126ac1e559 DNS cache synchronous fix - Non zero TTL test server change 2019-09-05 17:21:33 +02: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
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
Volodymyr Medvid b0a33273ff Correctly include EventQueue.h
There are two EventQueue.h in mbed-os codebase:
events/EventQueue.h
features/FEATURE_BLE/ble/pal/EventQueue.h

By accident, `mbed compile` generates includes.txt with the correct
order of include search paths. This is not the case for the CMake
exporter: targets with FEATURE_BLE enables fail to compile with errors:

mbed-os/features/cellular/framework/AT/ATHandler.h:99:60: error:
'events' has not been declared

Update all places to always include either "events/EventQueue.h"
or "ble/pal/EventQueue.h": to always find the correct header.
2019-02-21 17:59:05 +02:00
Michal Paszta ca57bdd481 Greentea tests: user-configurable timeouts
Now it is enough to add:
    "macros": [
        "MBED_GREENTEA_TEST_XXXSOCKET_TIMEOUT_S=20"
    ],
to mbed_app.json, where XXX is on of {DNS, TLS, UDP, TCP}.
Also network-* tests are now configurable: network-interface, network-wifi, network-emac with a similar macro.
2019-02-15 15:08:15 +02:00
Ari Parkkila 56badd8616 Change TESTS/netsocket/ for cellular testing 2019-02-13 01:30:42 -08:00
Michal Paszta b3fd8a9bef Greentea DNS test: added debug print 2019-02-01 15:34:38 +02:00
jeromecoutant 3a190656fa Netsocket DNS test: increase timeout value 2019-01-17 17:39:43 +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
jeromecoutant bd4b99c498 DNS tests: improve debug messages 2018-12-18 13:32:45 +01:00
Michal Paszta e53ee631f9 Greentea netsocket and network tests improvements
Added smarter rounding of times in recv_timeout and increased the delta by one, to allow "off-by-one" errors.
Reverted commit 88eea6a, reducing TESTS_TIMEOUT back to 480.
Introduced a 100ms timeout for waiting on asynchronous DNS resolution.
Improved error handling on disconnects.
2018-11-19 08:58:14 +01: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
Seppo Takalo 558b579a8d Remove the unstable SYNCHRONOUS_DNS_CACHE testcase
Will be reverted once the test case is fixed
2018-09-20 10:59:20 +01:00
Jarno Lamsa bc2166e62d Temporarily move SYNCHRONOUS_DNS_CACHE test to extended set until issues fixed with it 2018-08-31 16:12:51 +03:00
Cruz Monrreal 7d871bfff5
Merge pull request #7879 from jarlamsa/synchronous_dns_tests
Add tests for synchronous dns
2018-08-29 09:38:41 -05:00
Jarno Lamsa 0c758b9ee1 Add tests for synchronous dns 2018-08-27 15:05:41 +03:00
Mika Leppänen aa80d6d14b Updated greentea DNS tests to use default interface 2018-08-21 10:55:49 +03:00
Mika Leppänen 199244cf9c Moved ASYNCHRONOUS_DNS_SIMULTANEOUS_REPEAT under mbed extended tests
Test is giving problems in some networks. Could be that DNS server
is regarding repeated DNS enquiries on the test to be caused by
malfunctioning device.
2018-08-14 10:21:48 +03:00