Commit Graph

685 Commits (mbed-os-5.10)

Author SHA1 Message Date
Marcin Tomczyk c9c737089d ONME-3852 Check that test cases disconnect at the end 2018-11-16 14:49:17 +00:00
RFulchiero e8305a4210 Add a protected HAL set_time() test
When DEVICE_LPTICKER is defined set_time() only works correctly on
the first call. This test calls set_time() twice and ensures the
time set by both calls is correct.  This test only runs if
DEVICE_RTC or DEVICE_LPTICKER is defined.
2018-11-16 14:49:17 +00:00
Marcin Tomczyk 571f0e016b ONME-3733 detect xinetd service pattern and generate correct pattern 2018-11-16 14:49:17 +00:00
Seppo Takalo ff0b4c4de7 Increase EMAC test timeout to 1400 seconds 2018-11-16 14:49:17 +00:00
Vincent Coubard 5dd2ac1f77 Doxygen: Move free standing HAL tests module inside their related HAL module. 2018-11-02 19:49:57 -05:00
Seppo Takalo b76e6f12ef 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-11-02 19:49:54 -05:00
Mahesh Mahadevan 0b14c83e13 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-11-02 19:49:53 -05:00
Veijo Pesonen 69de155b06 mbedgt-network-wifi WIFI CONNECT TC - check that SSID is cached by driver 2018-11-02 19:49:52 -05:00
adustm 429fa35539 Fix typo in the printf (no functional change) 2018-11-02 19:49:52 -05:00
Przemyslaw Stekiel 6f18a1be14 tests-mbed_hal-rtc_time: use templates instead of global variable 2018-11-02 19:49:52 -05:00
Przemyslaw Stekiel 01fee5fe49 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-11-02 19:49:52 -05:00
Russ Butler b6826d9c00 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-10-19 12:07:31 +01:00
Veijo Pesonen bdf153a41a mbedgt-network-wifi WIFI CONNECT TC - check for empty passwd 2018-10-19 11:46:55 +01:00
Deepika 4f3ad7db35 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-19 11:46:55 +01:00
Przemyslaw Stekiel 62c0b409e5 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-10-19 11:46:55 +01:00
Seppo Takalo c1eadcf88e Reset channel settings back to default 2018-10-19 11:46:55 +01:00
Filip Jagodzinski d1b66665df Tests: SleepManager: Fix sleep_auto test
Use us & lp tickers directly, without the common ticker layer.
2018-10-19 11:46:55 +01:00
Filip Jagodzinski 24767e48f1 Tests: Sleep: Extract test utility functions
Move a few of utility functions so other tests can use them.
2018-10-19 11:46:55 +01:00
Filip Jagodzinski b385dc2648 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-19 11:46:55 +01:00
Filip Jagodzinski aa09d7bd57 Tests: SleepManager: Fix test suite setup
Use ticker init functions from upper HAL layer to allow proper handling
of ticker overflows.
2018-10-19 11:46:55 +01:00
Filip Jagodzinski a55ee97c2a 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-19 11:46:55 +01:00
Filip Jagodzinski dd710fade6 Tests: SleepManager: update concurrent test docs 2018-10-19 11:46:55 +01:00
Filip Jagodzinski 67638a039d 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-19 11:46:55 +01:00
Seppo Takalo 2ca0f74a21 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-10-19 11:46:55 +01:00
Veijo Pesonen 976c54b498 Drops removed mbedgt-netsocket cases from test specification 2018-10-19 11:46:55 +01:00
Veijo Pesonen 80fc1462eb 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-10-19 11:46:55 +01:00
Veijo Pesonen 584f54fee4 Makes mbedgt-netsocket cases to accept port 0 as destination 2018-10-19 11:46:55 +01:00
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