Commit Graph

1145 Commits (9ab0e0969924d535831b93a1d5c6fc129321a549)

Author SHA1 Message Date
Martin Kojtal dd77957d45
Merge pull request #10665 from tymoteuszblochmobica/json
Add hardcoded Echo server defaults for Greentea socket tests.
2019-06-09 18:05:03 +01:00
Martin Kojtal dc77c40fe9
Merge pull request #10709 from LDong-Arm/nrf52_cordio
Default to Cordio BLE stack for NRF52* targets
2019-06-09 18:03:34 +01:00
Martin Kojtal a2c029404b
Merge pull request #10437 from OpenNuvoton/nuvoton_psa_exclude_test
PSA: Exclude mbed-hal-spm test for M23 target
2019-06-07 17:19:27 +01:00
Lingkai Dong 977eea4447 critical_section tests: do not check APP interrupts on NRF52
APP interrupts are masked on SoftDevice BLE stack only, but we
have switched to Cordio stack on NRF52 targets.
2019-06-05 09:53:53 +01:00
Maciej Bocianski 90fbab0419 hal_qspi_test: undo buggy code
Remove some buggy code introduced to hal_qspi_test by PR #10435
Added support for QSPI to Cypress Boards
a8570ffe6c
2019-06-04 14:14:21 +02:00
Laurent Meunier 19b843d530 timeout_tests: do not call sleep from test thread
This is up to scheduler to call sleep when threads are inactive.
So the thread should simply wait for the semaphore for ever (or test timeout).
2019-05-29 11:48:36 +02:00
ccli8 b4e5a53f48 Exclude mbed-hal-spm test for TrustZone chips
This is because for TrustZone chips like M23/M33, SecureFault is implemented in
secure-side and cannot pass on to non-secure side.
2019-05-29 16:09:03 +08:00
Martin Kojtal 9cc1caa031
Merge pull request #10596 from kjbracey-arm/sem_acquire
Introduce Semaphore::acquire methods
2019-05-29 06:22:30 +01:00
Kevin Bracey 2fbbd9d2ca Introduce Semaphore::acquire methods
Deprecate wait() in favour of acquire(), try_acquire(),
try_acquire_for() and try_acquire_until().

Brings Semaphore more into line with CMSIS-RTOS 2 (which uses "acquire"),
itself (as it has "release"), and other classes having "try", "try for"
and "try until".

Also steps away from vague "wait" term - the primary operation here is
to acquire the semaphore, and this will of course sleep.
2019-05-28 17:02:06 +03:00
Tymoteusz Bloch d42ed4e6a9 Added hardcoded Echo server defaults for Greentea socket tests. 2019-05-27 14:41:17 +02:00
Martin Kojtal ab82f1fca6
Merge pull request #10627 from devran01/remove_future_sequana_target
Remove targets FUTURE_SEQUANA_M0_PSA and FUTURE_SEQUANA_PSA
2019-05-24 12:16:10 +01:00
Michael Schwarcz b8745b8ed8 Build PS tests only if FLASHIAP exists 2019-05-22 17:17:23 +03:00
Martin Kojtal 1dbb478bbb
Merge pull request #10597 from LDong-Arm/systimer_lptimer
SysTimer should be buildable without lp ticker
2019-05-22 11:59:16 +01:00
Devaraj Ranganna 7765d39283 The targets FUTURE_SEQUANA_M0_PSA and FUTURE_SEQUANA_PSA are removed
due to partial implementation. Having FUTURE_SEQUANA_M0 and
FUTURE_SEQUANA PSA targets is misleading.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2019-05-21 15:00:31 +01:00
Martin Kojtal f859289634
Merge pull request #10489 from kjbracey-arm/gpio_api_nc
gpio_api.h: Clarify desired behaviour for NC
2019-05-21 14:36:49 +01:00
Lingkai Dong 9fc54c9774 systimer tests: do not require lp ticker
SysTimer can run on us ticker now. Only deep sleep test
strictly requires lp ticker and it already has build conditions
in place.
2019-05-16 17:04:22 +01:00
Martin Kojtal 3ea1c56124
Merge pull request #10147 from kjbracey-arm/atomic_bitwise
Assembler atomics
2019-05-13 14:18:05 +01:00
Martin Kojtal 548a40ee62
Merge pull request #10541 from guialonsoalb/master
Adding QSPI support to target RHOMBIO_L476DMW1K
2019-05-13 13:59:40 +01:00
Martin Kojtal 2239babf26
Merge pull request #10543 from mirelachirica/wise_1570_udp_echotest_non_recvtimeout
Cellular: Increase receiving timeout for UDP echo non-blocking test
2019-05-13 13:45:11 +01:00
Olli-Pekka Puolitaival 842d145d91 Py3 fixes for test scripts 2019-05-08 13:46:01 +03:00
Mirela Chirica 26facc7f9b Cellular: WISE-1570 needs greater receiving timeout to pass UDPSOCKET_ECHOTEST_NONBLOCK test
Reason for needing greater timeout could be this test's performance.
UDPSOCKET_ECHOTEST_BURST_NONBLOCK is implementing the receiving
differently and is passing with 1 second timeout.
2019-05-08 10:43:08 +03:00
Guillermo Alonso 70bc390410 added QSPI support to target RHOMBIO_L476DMW1K 2019-05-07 15:44:09 +02:00
Kevin Bracey 66f446b9a9 Add GPIO NC test
Check two items of defined behaviour - that you can initialise a
gpio_t with NC, and you can detect that state with gpio_is_connected().
2019-05-02 16:12:21 +03:00
Martin Kojtal 40f8cb95a8
Merge pull request #10435 from morser499/pr/cy-smif
Add support for QSPI to Cypress Boards
2019-05-02 13:41:56 +01:00
Ryan Morse a8570ffe6c Added support for QSPI to Cypress Boards 2019-05-01 07:09:58 -07:00
Alexander Zilberkant 117e3e82b6 Update PSA includes to autogenerated files 2019-04-30 14:41:09 +03:00
Alexander Zilberkant ab01bea46d Delete autogenerated files 2019-04-30 14:10:23 +03:00
Martin Kojtal 1de0712272
Merge pull request #9944 from deepikabhavnani/stm32_splitheap
GCC - Add support to split heap across 2-RAM banks
2019-04-30 11:02:51 +01:00
Anna Bridge a5f1a125f1
Merge pull request #10426 from michalpasztamobica/udp_echo_error_handling
UDPSOCKET_ECHOTEST fails if a packet of every size was not sent
2019-04-26 13:33:25 +01:00
Kevin Bracey 4fe06e0949 Critical tests: use atomics
Get rid of a volatile, and use atomics to synchronise with the interrupt
routine instead.

Useful as a non-RTOS basic compilation check for the atomics - the
fuller atomic test relies on the RTOS.
2019-04-26 13:12:35 +03:00
Kevin Bracey 0fabf37564 Add some atomic tests
These are platform tests, but rely on the RTOS to run multiple threads
to exercise it.

(The atomics are still useful in non-RTOS, to protect against interrupt
handlers, but testing versus other threads is easier. The implementation
is the same either way, so doesn't seem worth testing non-RTOS
specifically).
2019-04-26 13:12:35 +03:00
Michal Paszta d1017ea274 UDPSOCKET_ECHOTEST fails if a packet of any given size was not sent at least once 2019-04-18 11:38:11 +03:00
Martin Kojtal ca887a9712
Merge pull request #10407 from kfnta/warn_fix
Fix warnings on PSA secure builds
2019-04-18 08:16:51 +01:00
Martin Kojtal 6b9d1573fb
Merge pull request #10096 from fkjagodzinski/test-usb-hid
Add USB HID tests
2019-04-17 14:06:51 +01:00
Oren Cohen f51eb6215a Fix warnings on PSA secure builds 2019-04-17 10:37:51 +03:00
Martin Kojtal 0b7d9af4dd
Merge pull request #10385 from michalpasztamobica/wifi_test_readme
README file for wifi tests gives configuration example
2019-04-16 09:10:26 +01:00
Martin Kojtal 79dddf84f0
Merge pull request #10381 from michalpasztamobica/echotests_loop_fix
ECHOTEST internal loop simplification and fix
2019-04-16 08:45:25 +01:00
Michal Paszta 631540a421 ECHOTEST internal loop simplification and fix
The loop was wrongly incrementing the index of the array after assiging
the value. Thus the first array element was used twice and the last one
was never user. The issue is fixed and the loops are refactored and
simplified to avoid such confusion in the future.
2019-04-15 11:54:03 +03:00
Michal Paszta e87d0ce654 README file for wifi tests gives configuration example. 2019-04-12 11:36:28 +03:00
Tymoteusz Bloch 42b5680697 Multihoming fixed according to new LWIP implementation. 2019-04-11 20:54:48 -05:00
Cruz Monrreal b1e48db242
Merge pull request #10225 from kjbracey-arm/memorypool_blocking_alloc
Mail/MemoryPool: blocking alloc
2019-04-11 20:21:44 -05:00
Deepika 56154c096d Update the test case to check multiple bank heap regions 2019-04-09 12:08:49 -05:00
Filip Jagodzinski 852390fcdc Tests: USBHID: Make report test optional on Linux
This test case uses `hidapi` -- a cross-platform Python module.
To keep the initial Mbed setup as simple as possible, the `hidapi`
module is skipped on Linux hosts because of its external dependancies
for this platform.

The module can be easily installed following instructions from the
README file.
The test case is skipped if the host machine lacks `hidapi` module.
2019-04-09 17:03:22 +02:00
Filip Jagodzinski 111f485cbe Tests: USBHID: Remove unnecessary wait_ready call
Every test case waits at greentea_parse_kv() anyway.
2019-04-09 17:03:22 +02:00
Filip Jagodzinski 36eb700ede Tests: USBHID: Handle variable driver setup time
Wait for the host driver to finish setup before sending any HID reports
from the device.

USBHID::wait_ready() blocks until the device reaches 'configured' state,
but the state of the host HID driver remains unknown to the device.
2019-04-09 17:03:22 +02:00
Filip Jagodzinski 4f880691fb Tests: USBHID: Reuse VID & PID from basic test
To successfully use pyusb on Windows hosts, a Zadig configuration has to
be performed. Since config for basic tests has already been provided,
use it again.
2019-04-09 17:03:22 +02:00
Filip Jagodzinski 572beb6731 Tests: USBHID: Add tests 2019-04-09 17:03:21 +02:00
Martin Kojtal af3a7656a4
Merge pull request #10330 from michalpasztamobica/greentea_test_fixes
Reduce greentea socket tests failures related to network issues
2019-04-09 11:03:33 +02:00
Michal Paszta 872edd4964 Relax TLSSOCKET_RECV_TIMEOUT sigio timeout 2019-04-08 12:56:41 +03:00
Michal Paszta 3505923d02 Test udpsocket_recv_timeout does not check packet reception ratio 2019-04-08 12:56:29 +03:00