Commit Graph

1099 Commits (mbed-os-5.12.4)

Author SHA1 Message Date
Guillermo Alonso e6fcada930 added QSPI support to target RHOMBIO_L476DMW1K 2019-05-17 15:38:41 +01:00
Mirela Chirica c015bb3011 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-17 15:35:27 +01:00
Olli-Pekka Puolitaival 1dd94c5472 Py3 fixes for test scripts 2019-05-17 15:35:27 +01:00
Alexander Zilberkant 019751cdd3 Update PSA includes to autogenerated files 2019-05-03 12:37:49 +01:00
Alexander Zilberkant 18cabc90a6 Delete autogenerated files 2019-05-03 12:36:55 +01:00
Ryan Morse 697b46ca4a Added support for QSPI to Cypress Boards 2019-05-03 12:24:48 +01:00
Michal Paszta 0328ffd35f UDPSOCKET_ECHOTEST fails if a packet of any given size was not sent at least once 2019-05-03 12:24:48 +01:00
Oren Cohen 4d6dc137cf Fix warnings on PSA secure builds 2019-04-24 13:37:42 +01:00
Filip Jagodzinski a001468f06 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-24 13:37:42 +01:00
Filip Jagodzinski 13c38e59a8 Tests: USBHID: Remove unnecessary wait_ready call
Every test case waits at greentea_parse_kv() anyway.
2019-04-24 13:37:42 +01:00
Filip Jagodzinski 57715cb80e 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-24 13:37:42 +01:00
Filip Jagodzinski 355aadb116 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-24 13:37:42 +01:00
Filip Jagodzinski c9b465fb01 Tests: USBHID: Add tests 2019-04-24 13:37:42 +01:00
Michal Paszta 873074af32 README file for wifi tests gives configuration example. 2019-04-24 13:37:42 +01:00
Michal Paszta 10a1f46f9d 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-24 13:37:42 +01:00
Michal Paszta 4069781677 Relax TLSSOCKET_RECV_TIMEOUT sigio timeout 2019-04-24 13:37:42 +01:00
Michal Paszta d75000de26 Test udpsocket_recv_timeout does not check packet reception ratio 2019-04-24 13:37:42 +01:00
Qinghao Shi b36c32de34 FastModel: Skip low-power ticker time drifting test for models
FastModels are a software simulator for Arm platform/cores.
They mean to be used as a tool for testing or early prototype stage development.
Due to the nature of software simulator can't grantee the timing accuracy like HW.
So time drifting test is skipped for software models.
2019-04-24 13:37:42 +01:00
Michal Paszta 42f676a9da TCP/TLS Socket tests will skip if TCP is not supported 2019-04-05 12:26:56 +01:00
Qinghao Shi e8a39f82a1 TESTS: skip timing accuracy test on FastModels 2019-04-05 12:26:56 +01:00
Michal Paszta 825114ef5c Handle oversized packets in tcp, tls and udp socket tests 2019-04-05 12:26:29 +01:00
itayzafrir 785a3262cf Fix typos 2019-04-05 12:26:29 +01:00
itayzafrir 42b051e00f Crypto acl tests destroy keys 2019-04-05 12:26:29 +01:00
itayzafrir 37d28db597 Add crypto acl test - key agreement 2019-04-05 12:26:28 +01:00
itayzafrir d5af559c53 Add crypto acl test - key derivation 2019-04-05 12:26:28 +01:00
Mirela Chirica 2e61afe694 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-04-05 12:26:26 +01:00
Cruz Monrreal II 7ba2b9bc6f Added missing astyle corrections for TESTS/mbed_hal/* 2019-04-05 12:26:20 +01:00
Michal Paszta 6bd4ea82a8 Refactor socket stats to reduce bioler plate
Add a proper test case setup and teardown which does the socket stats
checks in tcp, udp and tls.
2019-04-05 12:26:19 +01:00
Maciej Bocianski 0e3219e8be Add USB mass storage test 2019-04-05 12:26:19 +01:00
Mirela Chirica 9567800914 Cellular: Fix network interface test for cellular targets 2019-04-05 12:26:18 +01:00
Volodymyr Medvid ba751e3d4a Correctly include EventQueue.h
There are two EventQueue.h in mbed-os codebase:
events/EventQueue.h
features/FEATURE_BLE/ble/pal/EventQueue.h

By accident, `mbed compile` generates includes.txt with the correct
order of include search paths. This is not the case for the CMake
exporter: targets with FEATURE_BLE enables fail to compile with errors:

mbed-os/features/cellular/framework/AT/ATHandler.h:99:60: error:
'events' has not been declared

Update all places to always include either "events/EventQueue.h"
or "ble/pal/EventQueue.h": to always find the correct header.
2019-04-05 12:26:12 +01:00
Oren Cohen 3a024662e1 Remove #ifndef NO_GREENTEA from tests 2019-04-05 12:26:09 +01:00
Michal Paszta 2b80f967a9 Tests: check if recv returned too much data 2019-04-05 12:26:09 +01:00
Netanel Gonen 1668a9d875 move init of test into greentea init function 2019-03-13 10:22:21 +00:00
Alexander Zilberkant 64530095b9 Rename psa_system_reset to mbed_psa_system_reset
add noreturn attributes
update lifecycle service to use psa/error.h
fix doxygen
2019-03-12 10:06:40 -05:00
Oren Cohen 960d52b8d2 Reset ITS before the test start 2019-03-12 10:06:39 -05:00
Mahesh Mahadevan 5e312ee01d Increase the stack pointer check range
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-03-12 10:06:39 -05:00
Oleg Kapshii 78a0057858 Added support for PSA target to WIFI_BT board
Added WiFi_Bt CM4 PSA target in mbedos json
Added SPE-NSPE mailbox initialization for CM4 SystemInit
Made similar to FUTURE_SEQUANA configurations
Copied FUTURE_SEQUANA CM0 SPM part for WiFi_Bt smoke test
Added CY8CKIT_062_WIFI_BT_M0 and CY8CKIT_062_WIFI_BT_M0_PSA targets
Sorted files for new CY8CKIT_062_WIFI_BT_M0 and CY8CKIT_062_WIFI_BT_M0_PSA targets
Copied files for CY8CKIT_062_WIFI_BT_M0_PSA from FUTURE_SEQUANA
Copied and updated cm0p start files
Corrected according to FUTURE_SEQUANA
Changes to M0 startup files to have SPM started
Fixed implicit declaration warning
Commented interrupts enabling according to FUTURE_SEQUANA flow
Updated prebuild spm_smore CM0 hex for CM4 target
Turned on greentea environment
Used special memory region for common CM0/CM4 data
Updated prebuild CM0 SPM hex
Placed shared memory region for flash operations into SPM shared memory region
Updated cyprotection code and configuration
Start address of protected regions is set by a defined number from target.json
Added masters pcMask configuration
Added support for PSA target to WIFI_BT board
Enabled resources protection for SPM
Aligned RAM usage according to Cypress FlashBoot and CyBootloader
alligned protection config
Added CYW943012P6EVB_01_M0 target
Enlarged heap size, remobed nv_seed
Added heap reservation in linker script from mbed-os
Removed heap size definition
turned on nv_seed config
Removed nv_seed macros
Enabled protection for PSoC6 CM0
Added PSoC6 CM0 PSA readme
Enabled mbed_hal-spm test
Enabled nv_seed and removed unneeded ipc config define
Added SPDX string to feature_ble cypress target files
Removed unneeded supported_toolchains lines for Cypress targets
Disabled protection settings
Corrected flash initialization for PSoC6 CM0 PSA
Changed PSoC6 IPC6 protection for flash
Enabled special flash initialization and enabled protection settings
Updated and added new prebuild PSoC6 CM0 PSA hex files
Disabled HW TRNG and CRC for PSoC6 CM4 PSA target
Added missing const to allow types to match
Updated PSoC6 WIFI_BT_PSA prebuilt directory
Moved PSoC6 shared section usage area definition to begin of ld
Added initial ARM_STD linker and startup files for PSoC6 CM0
Added initial IAR linker and startup files for PSoC6 CM0
Added defines to disable some SPM protection settings for PSoC64
Moved Flash function variables into separate memory region
Added defines for new Public area definition
Updated PSoC6 CM0_PSA hex-files
2019-03-12 10:06:32 -05:00
Michael Schwarcz 0d7e548827 Disable SPM tests with TF-M issues for TF-M targets 2019-03-12 10:06:29 -05:00
Martin Kojtal 355f09bbac
Merge pull request #9875 from tymoteuszblochmobica/testfix
Apply proper network interface verification.
Only run for platforms which have two interfaces and prevent crashes otherwise.
2019-03-04 15:24:41 +01:00
Martin Kojtal e75794ec6e
Merge pull request #9888 from ARMmbed/feature-armc6
ARM Toolchain update to ARM Compiler 6.11(ARMC6)
2019-03-04 12:23:38 +01:00
Tymoteusz Bloch f420a5551d Fix multihoming tests for case of no ethernet device 2019-03-04 11:25:56 +01:00
Martin Kojtal 9f6156abb3
Merge pull request #9916 from kfnta/skip_spm_hal_m33
Skip test on Cortex M33 devices
2019-03-04 10:51:14 +01:00
Oren Cohen 577d286639 Skip test on Cortex M33 devices
On platforms using coretx m33 accessing the secure memory will cause SecureFault instead of Hardfault.
SecureFault is implemented in the secure image and cannot be changed in runtime.
2019-03-03 18:43:04 +00:00
Martin Kojtal fa65546aa2
Merge pull request #9913 from kfnta/fix_acl_test
Fix bug in crypto_acl test
2019-03-03 19:30:43 +01:00
Oren Cohen 4fe5a41734 Fix bug in crypto_acl test 2019-03-03 14:41:27 +02:00
Oren Cohen cfb60ec955 Fixes
* Add #include <stddef.h> to psa/client.h
* Add Attestation service to TFM
* Update FUTURE_SEQUANA_PSA secure binaries
* Remove MBED_SPM from K64F
* Refactor psa_manifest/sid.h
* Increase stackl size in spm-client tests
* Add handling of errors from psa_get in partitions
2019-03-03 13:30:58 +02:00
Michael Schwarcz b62c48977f Review fixes 2019-03-03 10:55:46 +02:00
Michael Schwarcz 20d7f817df Fix astyle 2019-03-03 10:55:46 +02:00
Michael Schwarcz ef76ec83ee Generate psa_manifest/sid.h 2019-03-03 10:55:46 +02:00