Commit Graph

753 Commits (4e7e0548d568c227b6a777d2bf39d96039af7402)

Author SHA1 Message Date
Mahesh Mahadevan 86ae041b7a Update the QSPI unit test for Freescale boards
1. Add flash config files.
2. Flash used is MX25U3235F, include information for this
   device in the flash config file

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-19 10:34:12 -05:00
adustm e775990c6a Fix typo in the printf (no functional change) 2018-10-19 14:15:53 +02:00
Veijo Pesonen f9a723e8ad mbedgt-network-wifi WIFI CONNECT TC - check that SSID is cached by driver 2018-10-19 09:09:34 +03:00
Veijo Pesonen 0823b3ef2d mbedgt-network-wifi WIFI CONNECT TC - check for empty passwd 2018-10-18 14:12:53 +03:00
Deepika 9db31d299b Resolve build issues in test
mbed.h was added in test, via greentea and utest header files. 'mbed.h' is removed
from header files and required header file and namespace is added to CPP/C files
2018-10-16 11:50:16 -05:00
Cruz Monrreal ec03df4823
Merge pull request #7980 from kjbracey-arm/thread_deprecations
Clean up rtos::Thread deprecation warnings
2018-10-15 10:09:55 -05:00
Cruz Monrreal 8bf51be75a
Merge pull request #8230 from mprse/issue_8214_fix
Fix for issue #8214
2018-10-12 21:24:08 -05:00
Cruz Monrreal 6d7b655b87
Merge pull request #8331 from deepikabhavnani/getc_fix
Stream: add necessary flushes, removing unneeded IAR workaround
2018-10-12 08:59:16 -05:00
Kevin Bracey 1ef213ec89 Clean up Thread deprecation warnings
Static Thread methods and signal methods have been deprecated. Remove
all references in the main code, and most of the tests. Some tests of
the deprecated APIs themselves remain.
2018-10-12 14:57:13 +03:00
Anna Bridge 24857d0f91
Merge pull request #5285 from c1728p9/minimum_requirements_test
Update devices to have minimum 2K RAM and heap, also added test
2018-10-12 11:04:57 +01:00
Przemyslaw Stekiel 4a3bcee602 tests-mbed_hal-rtc_time: use templates instead of global variable 2018-10-11 11:59:01 +02:00
Przemyslaw Stekiel 8d57429de4 tests-mbed_hal-rtc_time: alocate required test data on stack
This is fix for issue 8368.

Test is causing some problems on `REALTEK_RTL8195AM` and `ARM` compiler. There is some kind of memory issue. Probably there is not enough memory space for global data provided by the test. Data definitions have been moved into test function body so, they will land on stack. With this fix the test works on `REALTEK_RTL8195AM/ARM`.
2018-10-11 11:58:47 +02:00
Cruz Monrreal 5a47318bc2
Merge pull request #8298 from SeppoTakalo/wifi_reset_channel
Reset channel settings back to default
2018-10-10 08:44:39 -05:00
Filip Jagodzinski 3fcd8c4a3b Tests: SleepManager: Fix sleep_auto test
Use us & lp tickers directly, without the common ticker layer.
2018-10-09 17:52:45 +02:00
Filip Jagodzinski 9e34f76b4e Tests: Sleep: Extract test utility functions
Move a few of utility functions so other tests can use them.
2018-10-09 17:52:44 +02:00
Filip Jagodzinski f415af8147 Tests: SleepManager: Update test_check() test
Increase delta to 500 us. This value is still short enough to detect
incorrect behavior of the sleep_manager_can_deep_sleep_test_check() fun,
but allows the targets with low LP timer accuracy to pass, i.e.
NUCLEO_F429ZI.
2018-10-09 17:52:43 +02:00
Filip Jagodzinski 17e29618e6 Tests: SleepManager: Fix test suite setup
Use ticker init functions from upper HAL layer to allow proper handling
of ticker overflows.
2018-10-09 17:52:43 +02:00
Filip Jagodzinski 83745b99c5 Tests: SleepManager: Add test for new check() fun
sleep_manager_can_deep_sleep_test_check() is intended to be used in test
code.
2018-10-09 17:52:43 +02:00
Filip Jagodzinski 43c22e4977 Tests: SleepManager: update concurrent test docs 2018-10-09 17:52:42 +02:00
Filip Jagodzinski f2c222be15 Tests: SleepManager: extend test suite
New test cases:
* "deep sleep lock/unlock"
* "deep sleep unbalanced unlock"
* "deep sleep locked USHRT_MAX times"
* "deep sleep locked more than USHRT_MAX times"
* "sleep_auto calls sleep/deep sleep based on lock"
2018-10-09 17:52:42 +02:00
Cruz Monrreal 15879f5273
Merge pull request #8241 from SeppoTakalo/fix_wifi_connect_params_fail
Fix WIFI_CONNECT_PARAMS_CHANNEL_FAIL testcase.
2018-10-08 10:16:37 -05:00
Cruz Monrreal 506dfca8d0
Merge pull request #8235 from VeijoPesonen/mbedgt-netsocket-tc-fixes
Mbedgt netsocket tc fixes
2018-10-08 10:14:52 -05:00
Deepika f79a354311 Replace fflush to fseek before writes
You are allowed in POSIX / ANSI C to read and write on the same stream, but you
have to do an fseek in between read and write call (getc->fseek->putc)

Thanks @Alex-EEE for sharing the fix: https://github.com/ARMmbed/mbed-os/pull/7749

Added test case for verification of the behavior
2018-10-05 14:29:15 -05:00
Martin Kojtal 9d39f233d2
Merge pull request #8257 from mprse/sleep_test_nrf52_dk_fix
tests-mbed_hal-sleep: finish UART transmission before sleep test
2018-10-05 17:27:39 +02:00
Martin Kojtal 8adb8c3049
Merge pull request #7917 from deepikabhavnani/heap_overhead
Add overhead count in heap stats
2018-10-05 15:29:18 +02:00
deepikabhavnani 5f5882830f 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-03 16:41:24 -05:00
Shrikant Tudavekar dc8b1fa98f use forced_reset_timeout as delay after reset 2018-10-02 18:01:08 -05:00
Seppo Takalo 5fd04ff279 Reset channel settings back to default 2018-10-02 13:11:23 +03:00
Przemyslaw Stekiel 1fced21d3b tests-mbed_hal-sleep: add message with failure details 2018-09-30 19:31:50 +02:00
Cruz Monrreal b1b6399482
Merge pull request #8132 from VeijoPesonen/bugfix-tests-netsocket-tcp-stacksize
gt netsocket tcp -  increases threads' stack size
2018-09-27 17:53:54 -05:00
Cruz Monrreal f35975c782
Merge pull request #7926 from jamesbeyond/fm_test
Increase the timeout for rtostimer test to 10s
2018-09-27 10:20:30 -05:00
Cruz Monrreal 4403a561b3
Merge pull request #7890 from deepikabhavnani/cb_issue_7701
Circular buffer should use conditional statement instead of modulo
2018-09-27 10:20:05 -05:00
Veijo Pesonen c4546910d1 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-09-27 09:13:11 +03:00
Przemyslaw Stekiel 25b23a9286 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-09-26 14:29:14 +02:00
Martin Kojtal a0a9b54e97
Merge pull request #7057 from theamirocohen/trng_test
Add TRNG API test
2018-09-26 09:48:36 +02:00
Amir Cohen e92f41a8a4 Fix print error 2018-09-25 15:30:29 +03:00
Seppo Takalo e7924a98b2 Fix WIFI_CONNECT_PARAMS_CHANNEL_FAIL testcase.
Test case was assuming that secure and unsecure SSID were on different
channels.
This is not a requirement and it should be OK to run on same channel.

Fixed the testcase by using +1 on channel number to get a wrong channel.
2018-09-25 14:11:22 +03:00
Veijo Pesonen d302a62e60 Drops removed mbedgt-netsocket cases from test specification 2018-09-25 11:52:50 +03:00
Veijo Pesonen 6ac099ab1a Makes mbedgt-network-wifi case to skip channel number check
2.4GHz and 5GHz channels might be using the same SSID. Wifi scan
might also fail occasionally to find secure- and unsecure channels
on same scan so lets not assume that we'll find both.
2018-09-25 09:29:53 +03:00
Veijo Pesonen b355c750a6 Makes mbedgt-netsocket cases to accept port 0 as destination 2018-09-25 09:29:53 +03:00
Russ Butler 000ee90bfe Add a minimum requirements HAL test
Add a test to ensure that devices have at least 2K free ram
and 2K free heap. This test should be the first test that fails
due to running out of ram or heap.
2018-09-24 13:54:56 -05:00
Przemyslaw Stekiel 6d5e21741c Fix for issue #8214
Change the base time value to more realistic:
START_TIME = 1537789823 # GMT: Monday, 24 September 2018 11:50:23

This fix has been proposed by STM in order to enhance test efficiency.
Current test version did not detect problem with RTC reset on F1 family boards since the base time was too small.
2018-09-24 14:05:12 +02:00
Martin Kojtal ab882c3416
Merge pull request #8030 from OpenNuvoton/nuvoton_fix_common_tickers_fail
Nuvoton: Fix Greentea test common_tickers failed
2018-09-21 14:55:28 +02:00
Martin Kojtal cbb676ccbd
Merge pull request #8060 from SeppoTakalo/documentation_update
Clarify test configuration in Socket/Networking test document
2018-09-21 09:40:59 +02:00
Martin Kojtal 6a34251b07
Merge pull request #7925 from maciejbocianski/qspi_hal_test_refactoring
Qspi hal test refactoring/update
2018-09-21 09:40:10 +02:00
Cruz Monrreal c005ba24ff
Merge pull request #8171 from SeppoTakalo/skip-dns-test
Skip the unstable SYNCHRONOUS_DNS_CACHE testcase
2018-09-20 13:59:17 -05: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
Martin Kojtal 0233c8df4c
Merge pull request #7882 from mikaleppanen/nw_if_gt_tests
Add greentea tests for network interface status and connect/disconnect
2018-09-19 14:20:07 +02:00
ccli8 4888ff2b11 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-09-18 10:57:14 +08:00
Martin Kojtal 10b5a3a9d8
Merge pull request #7960 from RonEld/set_NULL_as_platform_context
Change mbedtls_platform_context parameter to NULL
2018-09-17 14:30:03 +02:00
Cruz Monrreal 836eec00ae
Merge pull request #7945 from jarlamsa/synchronous_dns_cache
Move SYNCHRONOUS_DNS_CACHE test to extended set
2018-09-14 13:12:04 -05:00
Veijo Pesonen 88eea6a390 Testing with ESP8266's AT firmware v1.7 takes more time 2018-09-14 12:07:19 +03:00
Veijo Pesonen 24905f5b50 Declares gt netsocket test case buffers as static
Original patch https://github.com/ARMmbed/wifi-x-nucleo-idw01m1/issues/17
2018-09-14 12:03:36 +03:00
Seppo Takalo 5e9fb0d562 Clarify test configuration in Socket/Networking test document 2018-09-10 18:08:31 +03:00
Cruz Monrreal 920db63453
Merge pull request #7803 from SeppoTakalo/socket-test-plan
Add Socket test plan
2018-09-09 22:44:00 -05:00
Yossi Levy 79e51111cd Adding complete buffer print in case of failure. 2018-09-05 17:42:06 +03:00
Amir Cohen 6d8dab8e74 Fix trng_len loop 2018-09-05 17:36:55 +03:00
Amir Cohen 780d9c6dbf Remove NVstore unused mechanism 2018-09-05 17:36:54 +03:00
David Saada b2b14ca26f Fix TRNG test to use reset from python script and not from code 2018-09-05 17:36:53 +03:00
Amir Cohen 9b0b63169c Fix messages 2018-09-05 17:36:51 +03:00
Amir Cohen 11f1aaf978 Fix pithy library 2018-09-05 17:36:50 +03:00
Amir Cohen 5f7a6401b8 Fix Compilation problems 2018-09-05 17:36:49 +03:00
Amir Cohen 5256e963f0 Fix IAR issues 2018-09-05 17:36:48 +03:00
Amir Cohen 225a3bfb90 Erase debug prints 2018-09-05 17:36:47 +03:00
Amir Cohen 1f4405c644 Reduce Debug prints 2018-09-05 17:36:45 +03:00
Amir Cohen 1466518644 Fixing PR comments 2018-09-05 17:36:44 +03:00
Amir Cohen abe2b00fac Fix var declaration problem 2018-09-05 17:36:43 +03:00
Amir Cohen 6dadbd897a Repalce compression libs for license issues 2018-09-05 17:36:42 +03:00
Amir Cohen 4d1d1a0313 Fix lisence and style 2018-09-05 17:36:40 +03:00
Amir Cohen 669b618ea1 Add TRNG API test 2018-09-05 17:36:39 +03: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
Ron Eldor 5817d71ad8 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-09-03 08:38:57 +03: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
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
Maciej Bocianski cffd581308 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-08-31 11:27:42 +02:00
Maciej Bocianski 3a64383de5 fix qspi address sending for nrf52
fix address sending in qspi_command_transfer
now address is send MSB first
2018-08-31 10:48:37 +02:00
paul-szczepanek-arm be5527bca4 fix gt test 2018-08-30 08:37:00 +01:00
Maciej Bocianski c836b79e37 qspi_hal_test - remove unused variables 2018-08-30 07:39:41 +02: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
Maciej Bocianski b41ce6c090 qspi_hal_test - randomize flash RW addres
randomize flash address during test to extend flash life
2018-08-29 17:10:29 +02:00
Maciej Bocianski 82c81900bf qspi_hal_test add DPI and QPI support 2018-08-29 17:10:00 +02: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
Qinghao Shi b98bd91a98 increase timeout for rtostimer test to 10s 2018-08-29 13:07:42 +01:00
paul-szczepanek-arm 57b6cca240 fixed define name for test 2018-08-29 10:48:41 +01:00
Maciej Bocianski db8cee04fc 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-08-29 09:32:50 +02: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
paul-szczepanek-arm 5513d29da6 simplify command to function call translation 2018-08-28 09:59:14 +01:00
paul-szczepanek-arm 21c5132482 added test for writing and reading outside set size 2018-08-28 09:59:14 +01:00
paul-szczepanek-arm 8cfe61d949 added check for running out of steps 2018-08-28 09:59:13 +01:00
paul-szczepanek-arm f548de17ea check size was set 2018-08-28 09:59:13 +01:00
paul-szczepanek-arm 1e01fedadd nfc eeprom driver green tea test 2018-08-28 09:59:13 +01:00
Cruz Monrreal 91354184dc
Merge pull request #7825 from SiliconLabs/siliconlabs-qspi
Silicon Labs QSPI HAL implementation
2018-08-27 13:51:38 -05:00
Cruz Monrreal 1b051c7687
Merge pull request #7402 from kegilbert/mem-tracing-config-patch
Replace mbed_mem_tracing_enabled macro with config option
2018-08-27 10:34:24 -05:00
Amanda Butler 940c4b891d
Copy edit requested section of README.md
Copy edit for active voice, inclusion of articles and U.S. spelling.
2018-08-27 10:18:36 -05:00
Deepika 4e263b17b9 Refactor circular buffer test to platform folder 2018-08-27 09:33:07 -05:00