Commit Graph

718 Commits (430fb3e7ba267c61852fd88e431d8249fc7984cd)

Author SHA1 Message Date
Cruz Monrreal 5ed07c2dd4
Merge pull request #8328 from kjbracey-arm/noreturn
Error path tightening: use MBED_NORETURN; add+use core_util_atomic_flag
2018-10-29 20:49:54 -05:00
Cruz Monrreal c9eaddd7e0
Merge pull request #8487 from kegilbert/mbed_mem_trace_config_patch2
Update mbed_mem_tracing config option
2018-10-29 18:53:25 -05:00
Kevin Bracey 0b27736536 Remove sleep manager tests that trigger mbed_error
Intercepting mbed_error will be too hard after mbed_error becomes
[[noreturn]], so remove tests that do this.
2018-10-29 13:58:05 +02:00
Kevin Bracey 1397eb5110 Disable RTOS error tests if error traps are enabled
It will be too hard to try to intercept and continue from a trapped
error once error functions are marked [[noreturn]], so make the error
return tests conditional on error trapping being disabled.
2018-10-29 11:56:17 +02:00
kegilbert a2ac895c37 This reverts commit 9b53d1256fb358407acbaf81c70b71d937b1f7cd.i
Move the memory tracing enabled macro to a config option but
revert the !defined -> #if changes to no longer cause breaking
changes.
2018-10-26 17:35:33 -05:00
Cruz Monrreal II 14ce8f2721 Merge branch 'fix-freestanding-tests-module' of ssh://github.com/pan-/mbed into rollup 2018-10-26 11:42:59 -05:00
Martin Kojtal f90f1fc01d sleep test: fix coding style 2018-10-25 09:58:18 +01:00
Martin Kojtal bbfa322afb tests: fix astyle 2018-10-25 09:58:17 +01:00
Vincent Coubard 85bd15ce6e Doxygen: Move free standing HAL tests module inside their related HAL module. 2018-10-24 14:42:29 +01:00
Martin Kojtal 5bed419dd8
Merge pull request #8505 from SeppoTakalo/continue_socket_tests
Continue Socket and WiFi tests even on test failure.
2018-10-24 09:40:22 +01:00
Cruz Monrreal 0db896036c
Merge pull request #8485 from NXPmicro/feature-qspi-kinetis
Feature qspi kinetis
2018-10-23 12:38:11 -05:00
Cruz Monrreal 5b7f4a3ed8
Merge pull request #8476 from VeijoPesonen/tc-ipcore-wifi-wifi_connect
mbedgt-network-wifi WIFI CONNECT TC - check that SSID is cached
2018-10-23 09:07:25 -05: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
Cruz Monrreal b09a843c44
Merge pull request #8482 from adustm/mbedtls_test_fix_typo
[tests-mbedtls-multi] Fix typo in the printf (no functional change)
2018-10-22 11:40:15 -05:00
Cruz Monrreal 1123c2bf9d
Merge pull request #8377 from mprse/fix_for_issue_8368
Fix for issue #8368
2018-10-22 11:32:42 -05:00
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