Michal Paszta
266d4c43a2
Handle oversized packets in tcp, tls and udp socket tests
2019-03-27 11:01:16 +02:00
Cruz Monrreal
d26fe0fe55
Merge pull request #10184 from mirelachirica/wise_1570_udp_echotest_nonblocking
...
Cellular: Increase receiving timeout for UDP echo non-blocking test
2019-03-27 00:34:47 -05:00
itayzafrir
75e4210633
Fix typos
2019-03-26 15:27:22 +02:00
Kevin Bracey
b8d90fb1dc
MemoryPool: Add timeout and wake tests
2019-03-26 14:12:59 +02:00
Mirela Chirica
ec3c6f37f9
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-03-26 09:10:02 +02:00
Martin Kojtal
e7987a9f04
Merge pull request #10166 from cmonr/astyle-fix
...
Travis CI: Tweak astyle to not over-exclude files
2019-03-22 06:36:07 +01:00
Martin Kojtal
db8a018fec
Merge pull request #9959 from michalpasztamobica/refactor_socket_stats_usage
...
Refactor socket stats to reduce boiler plate
2019-03-21 10:46:15 +01:00
Martin Kojtal
f99431f7c2
Merge pull request #9444 from maciejbocianski/usb_msd_tests
...
Usb msd tests
2019-03-21 10:42:55 +01:00
Cruz Monrreal II
e7c2e66543
Added missing astyle corrections for TESTS/mbed_hal/*
2019-03-20 12:57:36 -05:00
Martin Kojtal
0d86248316
Merge pull request #10120 from mirelachirica/networkinterface_connection_status_fix
...
Cellular: Fix network interface test for cellular targets
2019-03-20 15:40:30 +01:00
itayzafrir
2dfafe6299
Crypto acl tests destroy keys
2019-03-19 17:57:24 +02:00
itayzafrir
f1722cb8dc
Add crypto acl test - key agreement
2019-03-19 17:47:48 +02:00
itayzafrir
c8eb51d576
Add crypto acl test - key derivation
2019-03-19 13:35:24 +02:00
Cruz Monrreal
dbb33ef423
Merge pull request #9801 from vmedcy/fix-eventqueue-h
...
Correctly include EventQueue.h
2019-03-16 22:52:40 -05:00
Martin Kojtal
2fad1547a7
Merge pull request #10116 from 0xc0170/rollup
...
Rollup pt2: fixes for 5.12.1
2019-03-15 16:15:55 +01:00
Martin Kojtal
91b81c65fb
Merge pull request #9905 from michalpasztamobica/test_recv_return_less_or_equal
...
Tests: check if recv returned too much data
2019-03-15 14:57:01 +01:00
Mirela Chirica
d15bcfe83a
Cellular: Fix network interface test for cellular targets
2019-03-15 15:29:46 +02:00
Oren Cohen
fc97a75632
Remove #ifndef NO_GREENTEA from tests
2019-03-14 11:16:44 +02:00
Michal Paszta
b7ed4b5d9e
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-03-14 11:09:35 +02:00
Netanel Gonen
f7a2d4a082
move init of test into greentea init function
2019-03-13 10:43:00 +02:00
Qinghao Shi
83e7b66872
TESTS: skip timing accuracy test on FastModels
2019-03-11 10:40:31 +00:00
Alexander Zilberkant
661613c998
Rename psa_system_reset to mbed_psa_system_reset
...
add noreturn attributes
update lifecycle service to use psa/error.h
fix doxygen
2019-03-11 10:43:19 +02:00
Oren Cohen
5677b386af
Reset ITS before the test start
2019-03-10 10:53:38 +02:00
Mahesh Mahadevan
162425b574
Increase the stack pointer check range
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-03-08 07:33:48 -06:00
Oleg Kapshii
aedec74b9a
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-07 08:40:20 -08:00
Michael Schwarcz
0b4f16f456
Disable SPM tests with TF-M issues for TF-M targets
2019-03-06 16:42:51 +02: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
Oren Cohen
a1bd657594
Test partition modification
2019-03-03 10:55:44 +02:00
Oren Cohen
bd9a738473
Move SPM_PANIC to psa/service.h
2019-03-03 10:55:44 +02:00
Oren Cohen
306a51f6c0
Update psa_get() to return psa_status_t
2019-03-03 10:55:44 +02:00
Michael Schwarcz
3edcf455a6
mbed-crypto sanity tests enable run without greentea
2019-03-03 10:55:43 +02:00
Michael Schwarcz
f9fbd6ae82
Align PSA SPM tests to TF-M
2019-03-03 10:55:42 +02:00
Oren Cohen
483b23c318
Fix SPM warnings
2019-03-03 10:54:55 +02:00
Oren Cohen
68d91fb277
Remove osDelay from smoke test
2019-03-03 10:54:55 +02:00
Oren Cohen
5e4649bae8
Remove obsolete test
2019-03-03 10:54:54 +02:00
Oren Cohen
dfbc7b6b7a
Adapt partitons
2019-03-03 10:54:54 +02:00
Oren Cohen
aad114aa55
Genrerate SPM data
2019-03-03 10:54:54 +02:00
kegilbert
194fa129fb
Update recently added previous macro name uses in tests
2019-03-01 13:53:47 -06:00
Michal Paszta
c81f71b2de
Tests: check if recv returned too much data
2019-03-01 18:01:38 +02:00
Michael Schwarcz
3c0c5759bf
Regenerate mbed-spm files
2019-03-01 09:40:45 +02:00
Cruz Monrreal
befed111f5
Merge pull request #9668 from moranpeker/psa-init-attestation
...
PSA Initial Attestation service
2019-02-28 18:25:16 -06:00
Cruz Monrreal
e393c2dc0b
Merge pull request #9785 from c1728p9/default_to_us_ticker
...
Use us ticker for tickless on devs with wrapper
2019-02-28 18:25:01 -06:00
Cruz Monrreal
e6caa122cb
Merge pull request #9812 from kjbracey-arm/wait_ns
...
Add wait_ns API
2019-02-28 18:21:46 -06:00
Senthil Ramakrishnan
15cb4a4fee
Fix compiler flags for ARMC6 in sys stats test
2019-02-28 12:03:15 -06:00
Russ Butler
8d880bb63e
Skip deep sleep test when running from US ticker
...
Skip the systimer deep sleep test when running from the microsecond
ticker, since the microsecond ticker doesn't support operation in deep
sleep mode.
2019-02-28 10:57:00 -06:00
itayzafrir
b8bdaf9e9f
Fix acl test asymmetric encrypt decrypt
2019-02-28 10:29:53 +02:00
itayzafrir
31d202b3f6
Change error code handling of calls to psa_call
2019-02-28 10:29:52 +02:00
Maciej Bocianski
7ff689be20
Add USB mass storage test
2019-02-27 17:18:41 +01:00
itayzafrir
2918f74883
Free dynamic memory in test partition
2019-02-27 16:28:36 +02:00
itayzafrir
2227e33e5a
Add acl test - use other partitions' key - asymmetric encrypt decrypt
2019-02-27 16:28:36 +02:00
itayzafrir
5a7ed318ae
Add acl test - use other partitions' key - asymmetric sign verify
2019-02-27 16:28:36 +02:00
itayzafrir
db90606a34
Add acl test - use other partitions' key - aead
2019-02-27 16:28:36 +02:00
itayzafrir
b8079c3d09
Add acl test - use other partitions' key - cipher
2019-02-27 16:28:36 +02:00
itayzafrir
d1e61a0df4
Add acl test - use other partitions' key - mac
2019-02-27 16:28:35 +02:00
itayzafrir
200930d752
Refactor test partition helper function to create and generate a key
2019-02-27 16:28:35 +02:00
itayzafrir
2c1f0b37f2
Add acl test - use other partitions' key - manage key
2019-02-27 16:28:35 +02:00
itayzafrir
8c21f10696
Add acl test - create key same id different partitions
2019-02-27 16:28:35 +02:00
itayzafrir
9adda5b88e
Add acl test - open other partitions' key
2019-02-27 16:28:35 +02:00
itayzafrir
2146e74c84
Prepare for crypto access control tests
...
- Add a secure side test partition
- Add a proxy to communicate with the test partition
- Add main test file
2019-02-27 16:28:35 +02:00
Moran Peker
e819b23638
Fix attestation main to check PSA target before includes
2019-02-27 14:14:33 +02:00
Moran Peker
41bd381462
General fixes of spelling, newline, un needed code
...
-Correct spelling errors
-Add newline at end of file
-Remove un needed code
2019-02-27 14:14:27 +02:00
Moran Peker
e12f5eeaa7
Add ifdef TARGET_PSA and MBEDTLS_PSA_CRYPTO_C to test file
...
if not supported return error
2019-02-27 14:14:23 +02:00
Moran Peker
2117a26cb1
Get security lifecycle by psa_security_lifecycle_state function
...
-Add bug fix for psa_security_lifecycle_state function - PR #9745
-Remove lifecycle data from temp boot status data
-Update attesttation_partition_json file to use
PSA_PLATFORM_LC_GET and generate partition
code - auto generated files update
2019-02-27 14:14:17 +02:00
Moran Peker
4101ee92df
Add checks ,initialization,remove unneeded code and files license update
2019-02-27 14:14:14 +02:00
Moran Peker
636753b404
Attestation: Add a new define for attestation private key id
2019-02-27 14:14:13 +02:00
Moran Peker
8fc9c8fdab
Attestation: astyle fixs
...
Runing astyle over attestation file to pass CI
2019-02-27 14:14:11 +02:00
Moran Peker
a994499bf3
Atteststaion: Update header files
...
-Remove psa_initial_attesttaion.h
-Move psa_initial_attesttaion_api.h and psa_attest_inject_key.h into
inc folder
-Update include in test file
2019-02-27 14:14:11 +02:00
Moran Peker
22437fca7e
Attestation: Add test for initial attestation service
...
Add single test that check inject attestation key and attestation get token
2019-02-27 14:14:10 +02:00
Moran Peker
5f45b0af92
Attestation: aut- generated files by generate_partition_code.py
...
Atestation paration added.
2019-02-27 14:14:09 +02:00
Cruz Monrreal
4b13c8a212
Merge pull request #9768 from c1728p9/feature-hal-spec-usb-device
...
Bring USB Feature branch into master
2019-02-26 22:48:02 -06:00
Kevin Bracey
d2df5a03cb
Increase wait_ns test tolerance
2019-02-26 17:30:52 +02:00
Kevin Bracey
08a8f16e73
Add wait_ns timing test
2019-02-26 17:30:51 +02:00
Martin Kojtal
b08ddaad8b
Merge pull request #9794 from michalpasztamobica/greentea_tcpsocket_sigio
...
Refactor tcpsocket tests to use sigio and not to wait
2019-02-26 10:30:56 +01:00
Cruz Monrreal
044d0c9cb1
Merge pull request #9778 from michalpasztamobica/add_missing_wifi_config_params
...
Add missing wifi parameters to test configs
2019-02-25 17:30:36 -06:00
Michal Paszta
999273f7e5
Refactor tcpsocket tests to use sigio and not to wait
2019-02-25 15:33:09 +02:00
Russ Butler
6527cf2bad
Update files to include SPDX-License-Identifier
...
Update the header of all files to use a newer license template which
includes SPDX-License-Identifier.
2019-02-22 10:53:24 -06:00
Russ Butler
9f116d9f33
Applied more astyle fixes
2019-02-22 10:53:24 -06:00
Russ Butler
005df3559c
Applied suggested astyle fixes
2019-02-22 10:53:23 -06:00
Russ Butler
8d731561cf
Remove inclusion of mbed.h from USB
...
Remove mbed.h from USB files and fix the build errors this causes.
This is required to pass CI.
2019-02-22 10:53:23 -06:00
Filip Jagodzinski
4a4dcdb5b8
Tests: USB: Use astyle to format the test class
2019-02-22 10:53:23 -06:00
Filip Jagodzinski
38032453a5
Tests: USB: Fix 'endpoint halt' test
...
Abort all endpoint transfers before running the test again.
Use an updated vendor request to explicitly restart device reads.
2019-02-22 10:53:23 -06:00
Filip Jagodzinski
1ec448dbd0
Tests: USB: Add a README for Linux users
...
Explain how to overcome xHCI limitations in kernels prior to v4.17 and
successfully run USB tests.
2019-02-22 10:53:22 -06:00
Filip Jagodzinski
7db3a8a34a
Tests: USB: DTR fix for Linux hosts
...
A DTR line is used to signal that the host has configured a terminal and
is ready to transmit and receive data from the USB CDC/Serial device.
When this test suite is run with the use of a Linux host, a workaround has
to be used to overcome some platform specific DTR line behavior.
Every time the serial port file descriptor is opened, the DTR line is
asserted until the terminal attributes are set.
As a consequence, the device receives a premature DTR signal with a
duration of 200-500 us before the correct, long-lasting DTR signal set by
the host-side test script. (tested on the Linux kernel 4.15.0)
The solution is to wait for the first DTR spike, ignore it, and wait for
the correct DTR signal again.
2019-02-22 10:53:21 -06:00
Russ Butler
a4a3b3d429
Remove USB disconnect delay from Serial test
...
Remove the USB disconnect delay since there is no reason this is
needed. Failures which occur without this indicate a device or host
problem.
2019-02-22 10:53:21 -06:00
Russ Butler
930b29dd83
Tests: USB: Increase serial open retries
...
Double the number of attempts that are made to open a serial port.
This makes tests run more reliably on Windows.
2019-02-22 10:53:21 -06:00
Russ Butler
96154b577a
Tests: USB: Remove TX_DELAY_MS from serial test
...
Remove TX_DELAY_MS and all the places it was called since it is not
needed when DTR flow control is used.
2019-02-22 10:53:21 -06:00
Russ Butler
8f72f314d7
Tests: USB: Use DTR to make Serial tests reliable
...
Update the serial host test to set DTR low before opening a serial
port. Set DTR high once the serial object is ready. This ensures that
no data is sent by the device until the host is ready.
2019-02-22 10:53:21 -06:00
Filip Jagodzinski
31fe3ee11e
Tests: USB: Increas the size of RX CDC test data
...
This ensures the flow control is tested.
2019-02-22 10:53:21 -06:00
Filip Jagodzinski
53f7cd5561
Tests: USB: Fix Windows USB SN handling
2019-02-22 10:53:21 -06:00
Filip Jagodzinski
3d4d10191c
Tests: USB: Update code comments
2019-02-22 10:53:21 -06:00