Commit Graph

658 Commits (f16cdf45d91b5fd0fc1a3c1e9d43beb51b8bf235)

Author SHA1 Message Date
Deepika 025af303ef Refactor circular buffer test to platform folder 2018-10-19 11:46:55 +01:00
Przemyslaw Stekiel 12a0446dab tests-mbed_hal-sleep: add message with failure details 2018-10-08 15:18:50 +01:00
Przemyslaw Stekiel 4a35dcb7dd tests-mbed_hal-sleep: finish UART transmission before sleep test
There is no problem with this test during the morph, but some issue has been noticed while testing new Jenkins CI in Oulu on NRF52_DK.
I was able to reproduce the issue locally. The difference between morph and local run is that CPU statistics are enabled on morph. This makes the difference and test passes.

The sleep test case perform sleep for 100 us, 200 us, ... ,1000 us in loop (us ticker wakes the board) and verifies if sleep time matches the assumption.
I got the following results:

sleep                 wake-up after
100 us                   ~100 us    ok
200 us                   ~200 us    ok
300 us                   ~300 us    ok
400 us                   ~400 us    ok
500 us                   ~14 us     (??)

When requested sleep time is equal to 500 us some unexpected interrupt occurs which wakeup the board and force the test to fail.
Register state just after exit from sleep:
Control and State Register: 0x00400000 (ISRPENDING - Interrupt pending flag is set).
NVIC Interrupt Set-pending Register[0]: 0x00000004 (UARTE0_UART0_IRQn) or 0x00000200 (TIMER1_IRQn - timer used by us ticker).

UART interrupt is generated because of green-tea transmission. We know that it is performed while test is executed since we need to wait before going into deep-sleep since otherwise the transmission will be broken. So to take care of UART interrupt we need to wait before sleep test in the same way like it is done in deep-sleep test.
2018-10-08 15:18:50 +01:00
deepikabhavnani b858482ca9 Add `overhead_size` element to get the overhead of stats
Heap statistics are used for analysing heap stats, but it doesn't tell anything
about real heap usage or malloc overheads. Adding `overhead_size` element
will help users to get the real heap usage.
2018-10-08 15:18:50 +01:00
Shrikant Tudavekar c43f9dd864 use forced_reset_timeout as delay after reset 2018-10-08 15:18:50 +01:00
Veijo Pesonen d07e3e7eda Increases stack size for threads used in gt netsocket tcp test cases
Stack size is insufficient for debug profile
Stack size is insufficient for NUCLEO_F401RE+IDW01M1
Please see https://github.com/ARMmbed/wifi-x-nucleo-idw01m1/issues/17
2018-10-08 15:18:50 +01:00
Veijo Pesonen 0531c6d110 Testing with ESP8266's AT firmware v1.7 takes more time 2018-10-08 15:18:50 +01:00
Veijo Pesonen a08a42cf27 Declares gt netsocket test case buffers as static
Original patch https://github.com/ARMmbed/wifi-x-nucleo-idw01m1/issues/17
2018-10-08 15:18:50 +01:00
Amir Cohen aa01c2ea75 Fix print error 2018-10-08 15:18:50 +01:00
Yossi Levy 59d258722a Adding complete buffer print in case of failure. 2018-10-08 15:18:50 +01:00
Amir Cohen 3ad5eca9df Fix trng_len loop 2018-10-08 15:18:50 +01:00
Amir Cohen b31b0fae29 Remove NVstore unused mechanism 2018-10-08 15:18:50 +01:00
David Saada e39e964e86 Fix TRNG test to use reset from python script and not from code 2018-10-08 15:18:50 +01:00
Amir Cohen 11cca7545a Fix messages 2018-10-08 15:18:50 +01:00
Amir Cohen df1c9b9d92 Fix pithy library 2018-10-08 15:18:50 +01:00
Amir Cohen 7140baecad Fix Compilation problems 2018-10-08 15:18:50 +01:00
Amir Cohen 9a4087ce52 Fix IAR issues 2018-10-08 15:18:50 +01:00
Amir Cohen 42d6d7dca0 Erase debug prints 2018-10-08 15:18:50 +01:00
Amir Cohen e9dc151bdd Reduce Debug prints 2018-10-08 15:18:50 +01:00
Amir Cohen 2c43d412b3 Fixing PR comments 2018-10-08 15:18:50 +01:00
Amir Cohen 91d0c1b1e3 Fix var declaration problem 2018-10-08 15:18:50 +01:00
Amir Cohen bced8d9dd9 Repalce compression libs for license issues 2018-10-08 15:18:50 +01:00
Amir Cohen 1aa1682d8c Fix lisence and style 2018-10-08 15:18:50 +01:00
Amir Cohen f8f67e29fc Add TRNG API test 2018-10-08 15:18:50 +01:00
ccli8 203e87ba61 Fix Greentea test common_tickers failed
1. Disable ticker interrupt which would interfere with fire_interrupt speed test
2. Enlarge test period to avoid timeout error
2018-10-08 15:18:50 +01:00
Seppo Takalo b6a7cf5730 Clarify test configuration in Socket/Networking test document 2018-10-08 15:18:50 +01:00
Maciej Bocianski f3fee59972 qspi_hal_test - adjust used memory sector count
set flash sector count to 1024 for EFM32GG11_STK3701(MX25R3235F)
set flash sector count to 2048 for NRF52840_DK(MX25R6435F)
2018-10-08 15:18:50 +01:00
Maciej Bocianski 51cac63eeb fix qspi address sending for nrf52
fix address sending in qspi_command_transfer
now address is send MSB first
2018-10-08 15:18:50 +01:00
Maciej Bocianski 05062bef52 qspi_hal_test - remove unused variables 2018-10-08 15:18:50 +01:00
Maciej Bocianski 325ad8179d qspi_hal_test - randomize flash RW addres
randomize flash address during test to extend flash life
2018-10-08 15:18:50 +01:00
Maciej Bocianski 71f473a45b qspi_hal_test add DPI and QPI support 2018-10-08 15:18:50 +01:00
Maciej Bocianski 0c15c30194 qspi_hal_test refactoring
- code refactoring and preparation for enabling DPI/QPI tests
- reduced multiple test count to 4
- use common flash config header for all MX25RXX35F chips
- fix sector erase max time on N25Q128A
2018-10-08 15:18:50 +01:00
Seppo Takalo 66bf5c43f2 Remove the unstable SYNCHRONOUS_DNS_CACHE testcase
Will be reverted once the test case is fixed
2018-10-08 15:18:50 +01:00
Mika Leppänen 8bd9cfb73c Added greentea tests for network interface status and connect/disconnect
Added tests:
NETWORKINTERFACE_STATUS
NETWORKINTERFACE_STATUS_NONBLOCK
NETWORKINTERFACE_STATUS_GET
NETWORKINTERFACE_CONN_DISC_REPEAT
2018-10-08 15:18:50 +01:00
Ron Eldor 5e55fdfa20 Change mbedtls_platform_context parameter to NULL
Change the parameter being sent to `mbedtls_platform_setup()` and
`mbedtls_platfrm_teardown()` to NULL, as it is now being unused
in Mbed OS.
2018-10-08 15:18:50 +01:00
Jarno Lamsa 7d2d1dd301 Temporarily move SYNCHRONOUS_DNS_CACHE test to extended set until issues fixed with it 2018-09-17 21:42:55 -05:00
Amanda Butler c48c8a6f9e Copy edit requested section of README.md
Copy edit for active voice, inclusion of articles and U.S. spelling.
2018-09-11 15:04:48 +01:00
Seppo Takalo 179a3b67b1 Add Socket test plan
I'm submitting a test plan for Mbed OS sockets, so that we have
reference that describes wanted behaviour, required test environment,
and priorities of test cases.

This servers as a both documentation and specification. It needs to live
with source code, as opposed to Handbook, because it will be extend, modified
and fixed for faster cycle than what should be done for Handbook.

Part of this document (How to run -section) will be submitted to Handbook
with links to this.
2018-09-11 15:04:48 +01:00
Anna Bridge c2fdc0d972
Merge pull request #7423 from mprse/mutex_lock_assert
Fix issue #6872 - Mutex lock has possibility to fail at runtime (returning status flag)
2018-09-03 14:14:24 +01:00
Cruz Monrreal 48232be98e
Merge pull request #7872 from kjbracey-arm/thisthread
Add ThisThread namespace and deprecate static Thread methods
2018-09-02 15:10:18 -05:00
Cruz Monrreal f82feecc51
Merge pull request #7822 from donatieng/nfc-impl
Add initial NFC support to Mbed OS
2018-08-31 19:01:25 -05:00
Cruz Monrreal 00b7700be2
Merge pull request #7875 from c1728p9/feature_CMSIS_5_0b521765
Update CMSIS to 5.4.0
2018-08-31 11:31:37 -05:00
paul-szczepanek-arm be5527bca4 fix gt test 2018-08-30 08:37:00 +01:00
Cruz Monrreal 1e3e69463f
Merge pull request #7781 from deepikabhavnani/crc_safety
Add thread safety to CRC class
2018-08-29 15:42:23 -05:00
Donatien Garnier bfd433984f Re-run astyle 2018-08-29 16:59:45 +01: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
paul-szczepanek-arm 57b6cca240 fixed define name for test 2018-08-29 10:48:41 +01:00
Martin Kojtal 32445ae326
Merge pull request #7880 from juhaylinen/fix-greentea-emac-timeout
Update Greentea EMAC tests
2018-08-28 14:38:08 +02:00
Kevin Bracey 1330eeecd0 Add ThisThread 2018-08-28 13:25:17 +03:00
paul-szczepanek-arm 17b5e2ef3e require EEPROM define to eclude from CI builds 2018-08-28 09:59:15 +01:00