Commit Graph

840 Commits (a04498c4bcbe8a3f254f94bcf3daa5a8eee7c8da)

Author SHA1 Message Date
Martin Kojtal aceeb269d1
Merge pull request #9159 from SeppoTakalo/unflag_extented
Drop MBED_EXTENTED_TESTS flagging from network tests.
2018-12-20 16:29:51 +00:00
Martin Kojtal ab1c2be997
Merge pull request #8957 from InfernoEmbedded/fix-8913
Fix incorrect #ifdefs on DEVICE_FOO macros
2018-12-20 10:52:06 +00:00
Martin Kojtal 85c2fc7fb1
Merge pull request #9148 from davidsaada/david_fix_app_end_addr
Fix FLASHIAP_ROM_END macro for GCC_ARM & IAR toolchains
2018-12-20 10:48:26 +00:00
Alastair D'Silva 2617c5d55b 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-20 10:16:42 +11:00
Seppo Takalo 18404e93be 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-19 16:18:33 +02:00
David Saada f3bac3451c 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-19 12:05:08 +02:00
Cruz Monrreal 995725b50a
Merge pull request #9129 from jeromecoutant/PR_DNSDEBUG
DNS tests: improve debug messages
2018-12-18 14:26:35 -06:00
Cruz Monrreal f949ee5388
Merge pull request #9127 from jeromecoutant/PR_WIFIDEBUG
WIFI test: improve debug messages
2018-12-18 13:23:12 -06:00
jeromecoutant bd4b99c498 DNS tests: improve debug messages 2018-12-18 13:32:45 +01:00
Cruz Monrreal 80c6f5f8ee
Merge pull request #8972 from kjbracey-arm/merge_file_truncate
Merge feature-posix branch (FileHandle::truncate)
2018-12-17 14:49:56 -06:00
Cruz Monrreal eed3fb12c7
Merge pull request #9109 from kjbracey-arm/fseek_test_rework
Rework fseek/ftell tests
2018-12-17 14:43:06 -06:00
jeromecoutant da6ad75666 WIFI test: improve debug messages 2018-12-17 15:20:02 +01:00
Kevin Bracey 7b5939c05b Add ftruncate / fstat(st_size) unit test 2018-12-14 19:29:29 +02:00
Kevin Bracey ff7a316a32 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-14 19:29:27 +02:00
Cruz Monrreal 64e7e468b2
Merge pull request #9089 from jeromecoutant/DEV_QSPI_TEST
STM32 QSPI update
2018-12-14 10:14:13 -06:00
Conrad Braam 3b138fba02 Fix long writes/reads stack overflowing (#8802)
* writes and reads queue, not overflow stack IOTPAN-295
2018-12-13 18:18:01 -06:00
jeromecoutant 84ee55bfe0 QSPI tests: update STM32 boards configuration
NB: STM directory removed in flash_configs as there is no STM memory
2018-12-13 10:56:35 +01:00
jeromecoutant 0af1ecd305 STM32 DISCO : enable QSPI tests when available 2018-12-13 10:56:27 +01:00
Kari Haapalehto e502675bd1 Fix test-netsocket-tcp greentea test build fails.
main.cpp was missing comma at the end of line.
2018-12-11 12:51:30 +02:00
Cruz Monrreal 89527604ae
Merge pull request #9033 from fkjagodzinski/fix-stream
Fix Stream for IAR toolchain
2018-12-10 19:20:06 -06:00
Filip Jagodzinski 91e9010dd2 Tests: Stream: Use a quote from C99 spec
Use C99 instead of Linux man entry.
2018-12-10 16:30:16 +01:00
Kevin Bracey 13a24bc0bd Test MPU is enabled by init 2018-12-10 16:45:30 +02:00
Filip Jagodzinski 5c9cc5b8f1 Tests: Stream: Add more test cases 2018-12-10 12:09:22 +01:00
Michal Paszta c48312ded4 Missing socket greentea tests implementation 2018-12-07 10:35:39 +01:00
Cruz Monrreal 035e8e0b77
Merge pull request #8964 from kfnta/parser_empty_tests
Correct behavior of PSA code generator
2018-12-06 21:25:42 -06:00
Cruz Monrreal 78d6018ecc
Merge pull request #8745 from kfnta/feature-new-target-future-sequana-psa
Add new target future sequana PSA
2018-12-06 13:13:36 -06:00
Oren Cohen 935f2bdfbc Correct behavior of PSA code generator
* Don't generate files if a test does not contain additional partitions
2018-12-06 18:17:09 +02:00
Oren Cohen cb58b34581 Prebuilt images 2018-12-06 11:33:35 +02:00
Oren Cohen 2df2fc7d29
Fix PSA-HAL, TRNG, TLS tests 2018-12-06 01:22:50 +02:00
Oren Cohen 51a462aeea Use entropy injection on any NVseed platform or PSA dual-core/v8 2018-12-05 20:08:35 +02:00
Oren Cohen 870bebc9ac fix mbedmicro-rtos-mbed tests 2018-12-05 19:59:54 +02:00
Oren Cohen 86c7a59b36 Basic test can run on single v7's 2018-12-05 15:37:52 +02:00
Alex Volinski d614fd8955 The inject test can run also on single core CPU's such as K64F 2018-12-04 17:07:28 +02:00
Oren Cohen c3bd6f12d2 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-04 17:07:28 +02:00
Martin Kojtal 0df1d49ba1
Merge pull request #8861 from VeijoPesonen/bugfix-mbedgt_wifi_scan_one_ssid
Bugfix-tests-network-wifi drop the assumption about more than one SSID
2018-12-03 13:34:48 +01:00
Martin Kojtal ba6b36cb3b
Merge pull request #8754 from itayzafrir/mbed-crypto-tests
Mbed Crypto Tests
2018-11-30 14:54:02 +01:00
Oren Cohen 01301387f8 Run SPM code generator 2018-11-28 14:40:01 +02:00
Oren Cohen 45bd4f305a Add SPM code generation test to Travis-CI 2018-11-28 14:38:44 +02: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