Commit Graph

333 Commits (mbed-os-5.14)

Author SHA1 Message Date
Seppo Takalo 90b7cc4ce3 Add moduletest for SlicingBlockDevice
This uses HeapBlockDevice for providing the underlying storage block.
Check boundaries that slicingblockdevice do not overlow over to unassigned
blocks.
2019-11-18 15:47:40 +00:00
Seppo Takalo 6532f2515d Add unittest for HeapBlockDevice and change some MBED_ASSERTS to errors. 2019-11-18 15:47:40 +00:00
Seppo Takalo 94d9093c34 Add some functionality to atomic stubs 2019-11-18 15:47:40 +00:00
Seppo Takalo 5fecf6afa2 Add storage related files to baseline unittest.
* Refactor some headers to use relative path from Mbed OS root.
* Refactor some data types to compile on 64bit machines.
* Refactor some debug traces to use mbed_trace.
2019-11-18 15:47:40 +00:00
Seppo Takalo fea3fd49be Add empty unittest to generate zero baseline for untested files. 2019-11-18 15:47:40 +00:00
Seppo Takalo 4a8ee7e930 Add enough stubs to allow drivers/* to compile. 2019-11-18 15:47:40 +00:00
Seppo Takalo 0bb36917e9 Remove extra GCC arquements.
"--coverage" is synonym to "-fprofile-arcs -ftest-coverage"
https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html

This was causing extra compilation warnings on CLANG.
2019-11-18 15:42:08 +00:00
Antti Kauppila d31a139e65 Unittests fixed 2019-11-18 15:42:08 +00:00
Jayasankar Nara c5fbea79cc Add API to get ipv6 link local address.
Protocols like mdns requires IPv6 link local address to be advertised in its
records (AAAA record). LWIP::Interface::bringup() API is creating IPv6 link
local address;But as of now there is no API exposed by mbed-os to get the
IPv6 link local address.

This new API is required to deliver mDNS library support on mbed-os for Cypress
platforms. Unit tested it by invoking get_ipv6_link_local_address with a simple
application.
2019-11-18 15:42:08 +00:00
Seppo Takalo 9a7a781078 Display full path of generated coverage output from unittests. 2019-11-18 15:42:08 +00:00
Michal Paszta 40c037fc72 Astyle fixes 2019-10-16 11:58:32 +01:00
Michal Paszta 2e222d9bfc test for InternetSocket::close blocking
Close should not take place in case there is someone reading or writing to the socket.
2019-10-16 11:58:32 +01:00
Michal Paszta 1655c37f4c Improve coverage
For the following classes:
* DTLSSocket
* NetworkInterface
* TLSSocketWrapper
2019-10-16 11:58:32 +01:00
Dominika Maziec 2d9a2db39e unitests update for tcp and udp 2019-10-16 11:58:32 +01:00
Ari Parkkila 2eab0fbee4 Cellular: Fix resolving of DNS server IPv4/6 address 2019-10-16 11:58:32 +01:00
Ladislas de Toldi 74715c71f7 Update README with Google Test version 1.8.1 2019-10-16 11:53:52 +01:00
Ladislas de Toldi b152f4e5f1 update googletest to v1.8.1 2019-10-16 11:53:52 +01:00
Ari Parkkila 78f3292036 Cellular: Fix setting of PDP context ID (cid) 2019-10-16 11:53:52 +01:00
int_szyk bd756ab906 Tweak equeue chain tests
Changed the order of destroying queues because it is needed to destroy
queues in specified order when they are chained.
2019-10-16 11:53:52 +01:00
Juhani Puurula d932a4f6e0 Speed up unit test build with parallel jobs 2019-10-16 11:53:52 +01:00
Kimmo Vaisanen 9da19e2877 UT for CellularDevice get/set timeouts methods 2019-10-16 11:53:52 +01:00
Kimmo Vaisanen 6ac9379093 Fix CellularDevice::shutdown UT
As shutdown was overridden in test class, original shutdown() method
was not called at all.
2019-10-16 11:53:52 +01:00
Kimmo Vaisanen 5ae3b078d4 Add UT for AT_CellularNetwork::is_active_context 2019-10-16 11:53:52 +01:00
Kimmo Vaisanen 89ca070e82 Add UT for CEREG URC handler 2019-10-16 11:53:52 +01:00
Kimmo Vaisanen b41c638ac5 Add possibility to test URC handlers 2019-10-16 11:53:52 +01:00
Kimmo Vaisanen 3c5958035a Improve UT for cellular properties 2019-10-16 11:53:52 +01:00
Kimmo Vaisanen a6eed00d5b Add UT for CellularUtil::hex_to_char and ::hex_str_to_char_str
Also added checks for pointer validity.
2019-10-16 11:53:52 +01:00
Kimmo Vaisanen 6eb8fc5942 Unittests for CellularList 2019-10-16 11:53:52 +01:00
Kimmo Vaisanen 2bf62bf4c5 Cellular: Fix get_interface_name to not include leading zero
Multihoming documentation about interface name:
"Two character name string is concatenated with 8 bit value containing index which is incremented on each netif addition"

Cellular uses context id as index and to follow LWIP (LWIP::Interface::get_interface_name), index does not include leading zeros.
2019-10-16 11:53:52 +01:00
Ari Parkkila 31528016b5 Cellular: Add flow control (IFC) in BG96 AT driver 2019-10-16 11:53:52 +01:00
Mirela Chirica a846eb3c3c Cellular: Stack type based on assigned IP addresses versions 2019-10-16 11:53:52 +01:00
Ari Parkkila aea8d824cb Cellular: Fix BG96 power on and connect 2019-10-16 11:53:52 +01:00
Teppo Järvelin 4608de3e1a Cellular: fix ATHandler destructor possible crash on delete
In some multithread cases there is possibility that process_oob function
was called after ATHandler was deleted. Fix is to wait if oob processing
is ongoing.
2019-10-16 11:53:52 +01:00
Martin Kojtal e001216b55
Merge pull request #11315 from Patater/psa-crypto-api-1.0b3
Update Mbed OS for PSA Crypto API 1.0b3
2019-09-03 09:20:15 +02:00
Maciej Bocianski b45d6d6a76 queue test: add counter overflow protect
without this fix test_equeue_break_no_windup was failing on IAR
2019-08-30 14:04:43 +02:00
Maciej Bocianski e7e5cd2aa4 equeue tests: add user allocated events tests 2019-08-29 15:02:41 +02:00
Maciej Bocianski b336f73e77 equeue posix impl: make queue mutex reentrant 2019-08-29 15:02:40 +02:00
Jaeden Amero 6dfd515dd6 crypto: Add Mbed Crypto includes to unit tests
Mbed Crypto also supplies include files. Ensure that our unit tests can
find those headers.
2019-08-28 16:38:03 +01:00
Martin Kojtal 6add979210
Merge pull request #10750 from jarvte/eventqueue_cancel_return
Changed EventQueue::cancel to return boolean value
2019-08-27 20:50:03 +02:00
Martin Kojtal a1540c5f77
Merge pull request #11245 from dextero/8bit-sms
AT_CellularSMS: allow configuring SMS encoding (7-bit/8-bit) at initialization
2019-08-23 13:51:59 +02:00
Martin Kojtal 5c09ff12ac
Merge pull request #11220 from jarvte/fix_cellular_dns_test
Fix cellular dns test with IAR compiled binary
2019-08-22 10:57:22 +02:00
Teppo Järvelin 719117e12c Fix EventQueue::cancel to return value 2019-08-20 15:56:41 +03:00
Martin Kojtal 181f4f7e93
Merge pull request #11067 from Tharazi97/equeue_tests
Add Unittest equeue tests
2019-08-20 10:28:23 +02:00
Martin Kojtal 0b49952b9e
Merge pull request #11249 from dextero/get-sms-zero
Make AT_CellularSMS::list_messages support index 0 in SMS inbox
2019-08-20 10:27:57 +02:00
Martin Kojtal b849bc1e3d
Merge pull request #11201 from mirelachirica/bug_virtual_in_constructor
Cellular: Fixed improper AT handler setup through virtual calls in co…
2019-08-20 09:52:28 +02:00
Martin Kojtal 64fb49e4ec
Merge pull request #11169 from dmaziec1/TLSSocketWrapper_recvfrom_modified
TLSSocketWrapper::recvfrom sets SocketAddress output variable
2019-08-20 09:41:39 +02:00
Martin Kojtal a5a2036c65
Merge pull request #11224 from AnttiKauppila/Coverity_fixes
Coverity issues fixed
2019-08-20 09:40:20 +02:00
Marcin Radomski ce0bb7f568 Update test_AT_CellularSMS_get_sms
0 is now a valid value
2019-08-16 14:25:29 +02:00
Marcin Radomski cd7e6c9708 Adjust AT_CellularSMS_stub API 2019-08-16 12:33:48 +02:00
Mirela Chirica 75c823c1a3 Cellular: Fixed improper AT handler setup through virtual calls in constructor
Added AT handler setup method to be used for initialisation routines
that are virtual and therefore cannot be called from constructor.
2019-08-16 10:57:37 +03:00