Commit Graph

827 Commits (c04cd4eefbdd1fdb86d85e4ce73a2c672286413f)

Author SHA1 Message Date
Seppo Takalo 934f4f108c Drop MBED_EXTENTED_TESTS flagging from network tests.
All properly working IP stacks are required to pass Mbed OS socket tests.
This have now proven with current Ethernet devices with LwIP stack.
2018-12-27 22:26:04 -06:00
Alastair D'Silva 5b29b7e6b5 Don't use define checks on DEVICE_FOO macros (mbed code)
The DEVICE_FOO macros are always defined (either 0 or 1).

This patch replaces any instances of a define check on a DEVICE_FOO
macro with value test instead.

Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
2018-12-27 22:26:04 -06:00
David Saada 67ba976b30 Fix FLASHIAP_ROM_END macro for GCC_ARM & IAR toolchains
- Consider data section in GCC_ARM toolchain
- Consider init_array section in IAR toolchain
- Rename macro to FLASHIAP_APP_ROM_END_ADDR for clarity sake
2018-12-27 22:26:03 -06:00
jeromecoutant 6f6cdc948b DNS tests: improve debug messages 2018-12-27 22:26:02 -06:00
jeromecoutant 3da0d3c0a5 WIFI test: improve debug messages 2018-12-27 22:26:02 -06:00
Kevin Bracey c401662941 Rework fseek/ftell tests
ARM C library is really good at optimising out calls to underlying
seek. The only ones we were actually detecting in the empty file case
were the ones that the default FileHandle::size() made itself during
the SEEK_END case.

When we implement TestFile::size() directly, we will no longer see
a single seek call from the ARM C library in the empty file case, so
remove those tests.

Beef up the non-empty file case, adding checks that we are making
underlying read+write calls in the correct position, as a proxy for
direct checks for underlying seek being called.
2018-12-27 22:26:01 -06:00
jeromecoutant 0d9ea35ccf QSPI tests: update STM32 boards configuration
NB: STM directory removed in flash_configs as there is no STM memory
2018-12-27 22:26:01 -06:00
jeromecoutant da806bd59f STM32 DISCO : enable QSPI tests when available 2018-12-27 22:26:00 -06:00
Conrad Braam aaed845cce removed abc insanity 2018-12-27 22:26:00 -06:00
Conrad Braam 43f09b862c writes and reads queue, not overflow stack IOTPAN-295 2018-12-27 22:26:00 -06:00
Kari Haapalehto 4d2f6621c4 Fix test-netsocket-tcp greentea test build fails. main.cpp was missing comma at the end of line. 2018-12-27 22:25:59 -06:00
Filip Jagodzinski b5c4dd5705 Tests: Stream: Use a quote from C99 spec
Use C99 instead of Linux man entry.
2018-12-27 22:25:58 -06:00
Filip Jagodzinski 2ec7bddab3 Tests: Stream: Add more test cases 2018-12-27 22:25:58 -06:00
Michal Paszta 8d218d214c Missing socket greentea tests implementation 2018-12-27 22:25:58 -06:00
Oren Cohen 68c3d6c657 Correct behavior of PSA code generator
* Don't generate files if a test does not contain additional partitions
2018-12-27 22:25:58 -06:00
Veijo Pesonen e35c0a79c9 Tests-network-wifi organize test cases for clarity 2018-12-27 22:25:55 -06:00
Veijo Pesonen 2235150491 Bugfix - drops the assumption that there is more than SSID in vicinity 2018-12-27 22:25:55 -06:00
Kevin Bracey 89d239e8e4 Test MPU is enabled by init 2018-12-11 16:14:49 -06:00
Oren Cohen 8ee3b1d74b Prebuilt images 2018-12-11 16:14:46 -06:00
Oren Cohen f9b9810c5e Fix PSA-HAL, TRNG, TLS tests 2018-12-11 16:14:46 -06:00
Oren Cohen 709d924750 fix mbedmicro-rtos-mbed tests 2018-12-11 16:14:45 -06:00
Oren Cohen 6b87427549 Use entropy injection on any NVseed platform or PSA dual-core/v8 2018-12-11 16:14:45 -06:00
Oren Cohen 6c1d08a503 Basic test can run on single v7's 2018-12-11 16:14:45 -06:00
Alex Volinski f07943d2b1 The inject test can run also on single core CPU's such as K64F 2018-12-11 16:14:45 -06:00
Oren Cohen fee5e42f95 Fix PSA crypto partiotion and tests
* Styling
* Correct error codes on failing connection
* Add panics where needed
* correct skip defines
* Fix psa_spm_init_refence_counter bug
2018-12-11 16:14:45 -06:00
itayzafrir df1d36a0aa Skip Mbed Crypto tests when when Mbed Crypto is OFF 2018-12-11 16:14:44 -06:00
Oren Cohen 132f00ee12 Test modifications
* Add support for entropy injection
* Move psa_crypto_init & mbedtls_psa_crypto_free to setup & teardown handlers
* Skip test_crypto_asymmetric_encrypt_decrypt if RSA generation is not supported
2018-12-11 16:14:44 -06:00
itayzafrir 447cd74aa2 Add license 2018-12-11 16:14:44 -06:00
itayzafrir 5ceeb6f69a Add mbed-crypto key derivation test 2018-12-11 16:14:44 -06:00
itayzafrir 4d55d53581 Add mbed-crypto asymmetric sign verify test 2018-12-11 16:14:44 -06:00
itayzafrir 51b11815cc Add mbed-crypto symmetric cipher encrypt decrypt test 2018-12-11 16:14:44 -06:00
itayzafrir e580d1e2a7 Add mbed-crypto hash verify test 2018-12-11 16:14:44 -06:00
itayzafrir 14bd3c3025 Add mbed-crypto asymmetric encrypt decrypt test 2018-12-11 16:14:44 -06:00
itayzafrir 5ee7a2f0ee Introduce mbed-crypto tests
Add tests setup code and random bytes generator test.
2018-12-11 16:14:44 -06:00
Oren Cohen 3b4750ba3e Run SPM code generator 2018-12-11 16:14:44 -06:00
Oren Cohen 094fedfec9 Add SPM code generation test to Travis-CI 2018-12-11 16:14:44 -06:00
Martin Kojtal 52822cb8af
Merge pull request #8871 from c1728p9/mpu
MPU API (Reopened)
2018-11-28 10:28:32 +01:00
Martin Kojtal e62abd8aee
Merge pull request #8804 from mohammad1603/inject_entropy_spm
PSA Crypto SPM
2018-11-28 09:40:31 +01:00
Martin Kojtal e69aa15aea
Merge pull request #8744 from kfnta/psa_spm_base
PSA Secure partition manager and services
2018-11-27 15:26:38 +01:00
Netanel Gonen 5f36447eb6 do not run crypto init SPM test if not SPM target 2018-11-27 15:29:14 +02:00
Alexander Zilberkant daeb19d167 Fix entropy_inject test compilation
Include to crypto.h file will fail on targets without TARGET_PSA support
Moving prerequisites check before include.
2018-11-27 11:57:01 +02:00
Alexander Zilberkant abf1ccc722 Disable crypto_init tests when Mbed Crypto is OFF 2018-11-27 11:57:00 +02:00
mohammad1603 88f4f48fac Astyle fixes for the source
Used running: astyle -n --options=.astylerc
2018-11-27 11:56:57 +02:00
Netanel Gonen 59c3c9fff7 crypto init with multiple client guard & tests 2018-11-27 11:56:48 +02:00
Netanel Gonen 73cb013ac6 skip inject entropy test if they not supported 2018-11-27 11:56:43 +02:00
Mohammad AboMokh 73ebe1a247 Fix inject entropy tests
* Call greentea_case_teardown_handler() and greentea_case_setup_handler() instead of return STATUS_CONTINUE
* Introduce and use new macro MBEDTLS_PSA_INJECT_ENTROPY_MIN_SIZE
2018-11-27 11:56:37 +02:00
Mohammad AboMokh 72037747b1 Update auto generated SPM files 2018-11-27 11:56:35 +02:00
Mohammad AboMokh 1325084b1a Add tests to PSA entropy injection 2018-11-27 11:56:33 +02:00
Oren Cohen f4581faab0 Create a new partition for the crypto service
The following files initially were taken
from https://github.com/ARMmbed/psa-crypto-spm/releases/tag/spm-crypto-5.11
* crypto_platform_spe.h
* crypto_struct.h
* crypto_struct_ipc.h
* psa_crypto_spm.c
* crypto_spe.h
* crypto_partition_psa.json

The rest of the files were autimatically generated
by tools/spm/generate_psa_partition.py
2018-11-27 11:56:29 +02:00
Russ Butler 7cdfbee28b Fix asyle problems
Run astyle to fix CI failures.
2018-11-27 09:29:33 +00:00