Cruz Monrreal
1b233c5d5e
Merge pull request #9686 from michalpasztamobica/tlssocket_invalid_handshake_port_fix
...
Greentea tests: set correct port to test against google.com
2019-02-13 17:10:48 -06:00
Oren Cohen
45c44eb07c
Fix dependencies of platform partition
2019-02-13 17:10:12 +02:00
Oren Cohen
eb48d3cbeb
Clear ITS environment in psa entropy tests
...
mbed_psa_reboot_and_request_new_security_state() API replaced its_reset() which is now a secure API only
This change is necessary for a clean environment for the test
2019-02-13 14:21:17 +02:00
Oren Cohen
6bb0894c47
Refactor psa entropy inject test
...
Replace TEST_ASSERT with more specific assertions
2019-02-13 14:20:55 +02:00
Ari Parkkila
56badd8616
Change TESTS/netsocket/ for cellular testing
2019-02-13 01:30:42 -08:00
Cruz Monrreal
3e6cd4e89d
Merge pull request #9501 from caixue1102/mbed-os-rda
...
Add WIFI support for RDA target UNO_91H
2019-02-12 20:05:27 -06:00
Cai
d92e33dcee
Add WIFI support for RDA target UNO_91H
2019-02-12 22:59:53 +08:00
Michal Paszta
b5c00aa6b7
Greentea tests: set correct port to test against google.com
2019-02-12 15:40:11 +02:00
Martin Kojtal
091509705f
Merge pull request #9570 from VeijoPesonen/bugfix-tests-netsocket-udp_udpsocket_echotest_nonblock
...
tests-netsocket-udp: UDPSOCKET_ECHOTEST_NONBLOCK fixes
2019-02-12 09:55:20 +01:00
Cruz Monrreal
799476dd55
Merge pull request #9630 from michalpasztamobica/publish_documentation
...
Publish tests documentation for DNS, Emac, NetworkInterface and Wifi
2019-02-11 18:47:55 -06:00
Cruz Monrreal
5c4d5e346d
Merge pull request #9582 from michalpasztamobica/greentea_socket_improvements
...
Greentea Socket test improvements
2019-02-11 18:45:38 -06:00
Martin Kojtal
8f932a476f
Merge pull request #9449 from c1728p9/pinmap-extension
...
Pinmap extensions
2019-02-11 18:24:19 +01:00
Michal Paszta
6a184da381
ESP8266: connect() can handle ESP's errors.
...
ESP8266Interface::connect() checks the exact return value from
the underlying ESP8266::connect() call.
Increased timeout for network-wifi greentea tests to 6 minutes.
2019-02-11 17:20:14 +02:00
Russ Butler
d5892ce312
Add a sanity check test for pinmaps
...
Add a test which sanity checks all pinmaps.
2019-02-08 09:10:50 -06:00
Amanda Butler
ae20556635
Edit README.md
...
Edit file, mostly for inclusion of articles.
2019-02-07 16:10:38 -06:00
Amanda Butler
e9c44a86ac
Edit README.md
...
Edit file, mostly for inclusion of articles.
2019-02-07 15:52:20 -06:00
Amanda Butler
629e8a0e05
Edit README.md
...
Edit file, mostly for inclusion of articles and complete sentences.
2019-02-07 15:45:08 -06:00
Veijo Pesonen
099cbb1d30
tests-network-interface: drops unreferenced variable
2019-02-07 12:04:09 +02:00
Veijo Pesonen
ba75924c28
tests-netsocket-tls: TLSSOCKET_ECHOTEST deletes socket on failure case
2019-02-07 12:01:09 +02:00
Michal Paszta
ea3d70e0b1
Publish tests documentation for DNS, Emac, NetworkInterface and Wifi
...
Documentation moved from internal Confluence pages.
2019-02-06 16:22:21 +02:00
Martin Kojtal
dcba5ffa3c
Merge pull request #9529 from kfnta/its_crypto
...
RollUp PR Crypto with ITS
2019-02-04 17:14:05 +01:00
Veijo Pesonen
df3cdaa983
tests-netsocket-udp: UDPSOCKET_ECHOTEST_NONBLOCK execution time limit
...
Test case is allowed to take not more than a half what has been given
to the whole UDP suite.
UDP test cases reorganized so that the longest running ones are
executed last.
2019-02-04 12:33:34 +02:00
Michal Paszta
b3fd8a9bef
Greentea DNS test: added debug print
2019-02-01 15:34:38 +02:00
Michal Paszta
99fc26ecdf
Greentea Socket bind tests made ipv6-aware
2019-02-01 15:34:07 +02:00
Michal Paszta
fba66cf7f3
Greentea UDPSOCKET_RECV_TIMEOUT increase time tolerance
2019-02-01 14:22:05 +02:00
Martin Kojtal
3d4582bda0
Merge pull request #9572 from michalpasztamobica/greentea_tls_ipv6_compliant_website
...
Use an ip4- and ip6-compliant site to test TLS certificate error reporting
2019-02-01 08:26:08 +01:00
Oren Cohen
3f92beb08b
Update FUTURE_SEQUANA_PSA secure binaries
2019-01-31 19:31:53 +02:00
Cruz Monrreal
2c5d246249
Merge pull request #9429 from SeppoTakalo/TCPSOCKET_endpoint_close
...
Fix TCPSOCKET_ENDPOINT_CLOSE: Cannot accept WOULD_BLOCK
2019-01-31 10:20:20 -06:00
Oren Cohen
ea9f104463
Fix Licenses
2019-01-31 17:17:58 +02:00
Oren Cohen
f5e4f69c02
Update FUTURE_SEQUANA_PSA secure_binaries
2019-01-31 17:17:56 +02:00
Oren Cohen
47365d4620
Update ITS test
2019-01-31 17:17:56 +02:00
Alexander Zilberkant
3d3ee3834d
Update tests to use new APIs
2019-01-31 17:17:56 +02:00
Oren Cohen
51b76350d9
Remove ITS Reset partitions from tests
2019-01-31 17:17:55 +02:00
Oren Cohen
0de098e149
Add FUTURE_SEQUANA prebuilt binaries
2019-01-31 17:17:55 +02:00
Oren Cohen
156d3b785b
Replace psa_prot_internal_storage.h with psa/internal_trusted_storage.h
2019-01-31 17:17:54 +02:00
Oren Cohen
d2025b7150
Tests
2019-01-31 17:17:54 +02:00
Oren Cohen
34895a05ad
CR fixes
2019-01-31 17:17:54 +02:00
Oren Cohen
8841ba69f8
Align to new spec changes and prep for TFM SPM
...
# Conflicts:
# components/TARGET_PSA/services/crypto/COMPONENT_PSA_SRV_IPC/psa_crypto_spm.c
# components/TARGET_PSA/services/crypto/COMPONENT_SPE/psa_crypto_partition.c
2019-01-31 17:17:53 +02:00
Michal Paszta
c3f3dcbc0e
Use an ip4- and ip6-compliant site to test TLS certificate error reporting
2019-01-31 15:00:13 +02:00
Veijo Pesonen
4d31455a0f
tests-netsocket-udp: UDPSOCKET_ECHOTEST_NONBLOCK restores non-blocking
...
Fixes a bug where after dropping bad packets receiver doesn't restore
the socket back to non-blocking state as it's supposed to.
2019-01-31 12:59:40 +02:00
Martin Kojtal
a4ed473afc
Merge pull request #9515 from VeijoPesonen/bugfix-tests-netsocket-udp_udpsocket_sendto_invalid
...
tests-netsocket-udp UDPSOCKET_SENDTO_INVALID allow unsupported empty UDP packet
2019-01-30 10:08:34 +01:00
Martin Kojtal
7d036b52cd
Merge pull request #9283 from michalpasztamobica/tlssocket_greentea
...
Add TLSSocket greentea tests.
2019-01-30 09:55:21 +01:00
itayzafrir
fa46e3b499
crypto: Add test of hash clone
...
Test hash clone by adding a test to TESTS/mbed-crypto/sanity/main.cpp
2019-01-29 11:43:27 +02:00
itayzafrir
e66b2203a9
crypto: Add test of key handles
...
Test key handles by adding a test to TESTS/mbed-crypto/sanity/main.cpp
2019-01-29 11:43:26 +02:00
itayzafrir
f882a07708
crypto: Update tests to use key handles
...
Update tests in TESTS/mbed-crypto/sanity/main.cpp
2019-01-29 11:43:26 +02:00
Veijo Pesonen
b0fca1ffc8
Test UDPSOCKET_SENDTO_INVALID allows NSAPI_ERROR_UNSUPPORTED
2019-01-29 10:59:06 +02:00
Michal Paszta
af65522652
Publish TLSSocket test documentation
...
The whole README.md had to be updated to match the internal Confluence documentation, which can now be locked. In the process I also updated any spotted mistakes in tests documentation, removed the obsolete TCPServer tests documentation and added a test which was missing from UDPSocket's main.
2019-01-23 16:54:19 +02:00
Senthil Ramakrishnan
815066f853
Add debug prints to triage the test timeouts
2019-01-22 16:40:02 -06:00
Senthil Ramakrishnan
62d6eb5673
Increase the timeout for the host side script and the test
2019-01-22 16:04:47 -06:00
Michal Paszta
d568e2160b
Add TLSSocket greentea tests.
...
TLSSocket tests based on existing TCPSocket greentea tests and TLSSocket icetea tests.
2019-01-22 12:46:48 +01:00
Martin Kojtal
a09b5f5c6b
Merge pull request #9416 from fkjagodzinski/test_update-systimer
...
RTOS: SysTimer: Fix test timing issues
2019-01-21 13:44:53 +01:00
Martin Kojtal
7b29593a41
Merge pull request #9415 from SeppoTakalo/ONME-4140
...
Allow NSAPI_ERROR_UNSUPPORTED from Socket::setsockopt()
2019-01-21 13:43:37 +01:00
Martin Kojtal
5c46faeb86
Merge pull request #9417 from jeromecoutant/PR_DNSTIMEOUT
...
Netsocket DNS test: increase timeout value
2019-01-21 13:42:24 +01:00
Martin Kojtal
27cce81580
Merge pull request #9258 from jeromecoutant/PR_FLASHSKIP
...
FLASH test: skip test if test region overlaps code
2019-01-21 13:15:51 +01:00
Seppo Takalo
6b92d32b3e
Fix TCPSOCKET_ENDPOINT_CLOSE: Cannot accept WOULD_BLOCK
...
This testcase uses Socket in blocking mode, and therefore
WOULD_BLOCK should not be accepted.
The logic was wrong anyway, because return value was tested
to be negative before testing with WOULD_BLOCK which is negative
as well.
Also replaced TEST_FAIL() macro with TEST_ASSERT_EQUAL() to
make the return code visible in test log.
2019-01-21 10:46:11 +02:00
Filip Jagodzinski
5840281682
ROTS: SysTimer: Fix test timing issues
...
Use a busy loop with non-blocking Semaphore::wait(0) calls instead of a
single Semaphore::wait(osWaitForever) to improve time measurement
accuracy. Looping in Semaphore::wait(0) prevents the board from entering
sleep or deepsleep modes while waiting for the semaphore. By skipping
the overhead wakeup time, we get more accurate timings.
2019-01-18 17:10:39 +01:00
Cruz Monrreal
68deb05d1b
Merge pull request #9376 from michalpasztamobica/tcpsocket_greentea
...
TCP/UDP greentea tests refactoring and cleanup
2019-01-17 21:52:40 -06:00
Cruz Monrreal
436d3d043d
Merge pull request #9257 from jeromecoutant/PR_FLASHIAP_TIMING
...
FLASHIAP test: skip test if test region overlaps code
2019-01-17 21:50:20 -06:00
jeromecoutant
3a190656fa
Netsocket DNS test: increase timeout value
2019-01-17 17:39:43 +01:00
Seppo Takalo
26dcd0d90a
Allow NSAPI_ERROR_UNSUPPORTED from Socket::setsockopt()
2019-01-17 18:02:04 +02:00
Michal Paszta
6e629e1ba6
Gemalto Crinterion UDP test adjustments
...
Adjusting the tests to match the cellular modems ELS61-E2 and BGS2-W requirements.
2019-01-15 12:38:48 +01:00
Michal Paszta
59e8dedb67
TCP/UDP greentea tests refactoring and cleanup
2019-01-15 10:00:35 +01:00
Alexander Zilberkant
435d944dd0
fix its_reset test
2019-01-13 18:30:22 +02:00
Przemyslaw Stekiel
ef681bf18d
Add SPDX-License-Identifier and Copyright in new files
2019-01-08 15:32:08 +01:00
Przemyslaw Stekiel
01ca8443a8
Add stack size unification test
...
Test checks stack sizes:
- ISR stack: exactly 1KB (with exception for NORDIC - 2KB and RENESAS - Cortex A targets not supported for this test)
- Main thread stack: exactly 4KB (with some exceptions - 3KB)
- Thread stack: exactly 4KB
2019-01-08 15:32:01 +01:00
jeromecoutant
482396ce7d
FLASH test: skip test if test region overlaps code
2019-01-04 16:50:54 +01:00
jeromecoutant
b712e71194
FLASHIAP test: skip test if test region overlaps code
2019-01-04 16:38:32 +01:00
Martin Kojtal
acd69ae7e1
Merge pull request #9229 from maciejbocianski/qspi_hal_test_k82f_fix
...
hal-qspi_test: move frequency setting before flash init
2019-01-04 08:56:54 +00:00
Brian Daniels
5625b6964d
Fix Python 3 syntax in rtc host test
2019-01-03 12:04:36 -06:00
Martin Kojtal
cc89c20abc
Merge pull request #9175 from michalpasztamobica/greentea_ignore_unsupported
...
Greentea tests ignore bind returning UNSUPPORTED
2019-01-03 14:59:50 +00:00
Maciej Bocianski
fc593d2d6f
hal-qspi_test: move frequency setting before flash init
...
Frequency setting just after erase operation was causing some data
inconsistencies during write/read operations on some targets (frdm-k82f).
To fix this, frequency setting was moved before flash memory init.
2019-01-03 12:17:23 +01:00
Martin Kojtal
d7497a82dd
Merge pull request #9128 from orenc17/spm_hal_test_fix
...
Fix SPM HAL test
2019-01-02 09:18:02 +00:00
Alexander Zilberkant
b409267883
Update TESTS/mbed_hal/spm/main.cpp
...
Use r3 instead of r4
Co-Authored-By: orenc17 <oren.cohen@arm.com>
2018-12-23 11:37:29 +02:00
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
Michal Paszta
a2110d5411
Greentea tests ignore bind returning UNSUPPORTED
2018-12-20 15:38:07 +01: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
Oren Cohen
9b573acfa4
Run the non-secure cases first
2018-12-17 16:43:09 +02:00
Oren Cohen
6a9de3178e
Fix SPM HAL test
...
When accessing non-secure ram and flash r1 was actually used by the calling function.
Change to a callee saved register.
2018-12-17 16:38:13 +02: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
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
itayzafrir
1431e216ad
Skip Mbed Crypto tests when when Mbed Crypto is OFF
2018-11-27 11:56:25 +02:00
Oren Cohen
3e88dcf177
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-11-27 11:54:10 +02:00
Russ Butler
7cdfbee28b
Fix asyle problems
...
Run astyle to fix CI failures.
2018-11-27 09:29:33 +00:00
Russ Butler
caa7b93921
Rename lock functions and classes
...
Invert the name of the lock functions and classes so you are not
locking a negative.
2018-11-27 09:29:32 +00:00
Russ Butler
a7bf312106
Skip MPU fault tests for ARMv8-M
...
For enhanced security ARMv8-M firmware doesn't allow the hardfault
handler to be hooked by non-secure code. Because of this there is no
way to recover from the MPU fault tests. This PR disables those tests
until hardfault recovery is supported by secure firmware.
2018-11-27 09:29:32 +00:00
Russ Butler
47ac8ef3f0
Fix MPU test when MemManage fault enabled
...
Hook both the HardFault and the MemManage IRQs since it is up to the
target to determine which fault is enabled.
2018-11-27 09:29:32 +00:00
Russ Butler
24f002d6dc
Clear caches before RAM execution in MPU test
...
Ensure that code written to ram is flushed and that caches are cleared
before attempting to executing from ram. This fixes CI failures on the
MPU test when it is built for Cotex-M7 devices such as the
NUCLEO-F746ZG.
2018-11-27 09:29:32 +00:00
Russ Butler
1821d37621
Overhaul MPU for new requirements
...
Make the following changes:
-Allow a vector specific ARM MPU driver by defining MBED_MPU_CUSTOM
-Allow ROM address to be configured for ARMv7-M devices by
setting the define MBED_MPU_ROM_END
-Add ROM write protection
-Add new functions and lock
-enable at boot
-disable during flash programming
2018-11-27 09:29:32 +00:00
Russ Butler
7283f9b0ee
Add a formal HAL specification for the MPU API
...
Add a formal HAL specification consisting of:
-defined and undefined behavior
-test descriptions
-enable doxygen for MPU
2018-11-27 09:29:32 +00:00
Russ Butler
d00f59fdc8
Rework MPU layout for future changes
...
Create a dedicated MPU directory for standard Arm MPU implementations
in preparation for the Arm v8m MPU. Replace MBED_MPU_ENABLED with
DEVICE_MPU to align with the porting layer of other HAL APIs.
2018-11-27 09:29:31 +00:00
Russ Butler
c0ff98614a
Disable the MPU when flashing
...
When programming flash using the FlashIAP API allow execution from
ram. Many devices require flashing to be done from RAM.
Also allow execution from ram when running the low level flash tests.
2018-11-27 09:29:31 +00:00
Russ Butler
8e2fd1a5cc
Add an MPU test
...
Test that the MPU correctly stops execution of memory in the stack
region, heap region, data region and bss region. Also check that the
MPU can be enabled, disabled and freed.
2018-11-27 09:29:31 +00:00
Oren Cohen
aea9713c89
Doxygen fixes in tests
2018-11-27 09:16:47 +02:00
Oren Cohen
773ac8dd95
CR fixes
2018-11-27 09:16:45 +02:00
Alexander Zilberkant
2b9f94a0ad
Remove dead code
2018-11-27 09:16:45 +02:00
Oren Cohen
6cd4f7789f
Add Version to SPM templates and generator
2018-11-27 09:16:43 +02:00
Oren Cohen
53be3cccfc
Fix the SPM HAL test
2018-11-27 09:16:41 +02:00
Alexander Zilberkant
9cc017fd48
Normalize license headers
...
- add SPDX license identifier
- add missing license headers
- update year in license headers
2018-11-27 09:16:40 +02:00
Alexander Zilberkant
aea01a86f6
astyle changes
2018-11-27 09:16:38 +02:00
Oren Cohen
dd73fa689c
PSA SPM
...
* Intorduce PSA-SPM to mbed-os
* Add SPM tests (for PSA targets)
* Add PSA PRoT internal storage Secure implementation
* Integrate SPM into the boot proccess
* PSA manifest data generator
* Introduce PSA targets skeleton to mbed-os
* Add artifact delivery to the tools
2018-11-27 09:16:35 +02:00
itayzafrir
7fa969f53d
Add license
2018-11-26 19:23:17 +02:00
itayzafrir
c3a8659c0f
Add mbed-crypto key derivation test
2018-11-26 19:23:16 +02:00
itayzafrir
680d9830d1
Add mbed-crypto asymmetric sign verify test
2018-11-26 19:23:16 +02:00
itayzafrir
ff3a36abcb
Add mbed-crypto symmetric cipher encrypt decrypt test
2018-11-26 19:23:15 +02:00
itayzafrir
29bcb2e327
Add mbed-crypto hash verify test
2018-11-26 19:23:14 +02:00
itayzafrir
118f353e17
Add mbed-crypto asymmetric encrypt decrypt test
2018-11-26 19:23:14 +02:00
itayzafrir
f81bb47ffd
Introduce mbed-crypto tests
...
Add tests setup code and random bytes generator test.
2018-11-26 19:23:13 +02:00
deepikabhavnani
c272377a81
Make sure no memory overhead if statistics are disabled
2018-11-26 09:42:45 -06:00
deepikabhavnani
068f2d14c0
Resolve IAR build issue
...
IAR not able to assign default zero value in array and complaints of
internal error as below:
[ERROR] Internal error: [Front end]: assertion failed at:
"..\..\Translator\compiler_core\src\parser\edg\decl_inits.c", line 2031
2018-11-26 09:42:45 -06:00
deepikabhavnani
117eb0bc87
Add socketstats stub functions for unittest and addressed reviews
2018-11-26 09:42:50 -06:00
Deepika
f6c1a40b29
Add config options for socket statistics
...
1. MBED_CONF_NSAPI_SOCKET_STATS_ENABLE to enable the statistics
2. MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT max sockets statistics cached
2018-11-26 09:42:45 -06:00
Deepika
a851df66e3
Code/bug after testing
...
1. Fixing astyle and docs
2. Extra mutex lock was removed
3. Bytes are updated when send/recv > 0 and not in case of -ve error
4. Review comments
5. Guard statistics implementation in test with MBED_NW_STATS_ENABLED
2018-11-26 09:42:45 -06:00
Deepika
eec54a0fc9
Update tcp test cases to verify network socket statistics
...
Cases Updated are:
1. TCPSOCKET_ECHOTEST_NONBLOCK
2. TCPSOCKET_OPEN_CLOSE_REPEAT
3. TCPSOCKET_OPEN_LIMIT
2018-11-26 09:42:45 -06:00
Deepika
e7ea2927fc
Update udp test cases to verify network socket statistics
...
Cases Updated are:
1. UDPSOCKET_ECHOTEST_NONBLOCK
2. UDPSOCKET_OPEN_CLOSE_REPEAT
3. UDPSOCKET_OPEN_LIMIT
2018-11-26 09:42:45 -06:00
Martin Kojtal
fdca1e3578
Merge pull request #8730 from kfnta/its_kvstore_single_core
...
Add a new PSA Internal Trusted Storage APIs
2018-11-26 11:54:08 +01:00
Michael Schwarcz
aa7e1ce0e5
Fix its tests in non-psa targets
2018-11-25 09:57:23 +02:00
Alexander Zilberkant
9b13e240c3
Add SPDX license identifier
2018-11-25 09:57:23 +02:00
Alexander Zilberkant
9fa1f5a3d5
astyle changes
2018-11-25 09:57:22 +02:00
Danny Shavit
53728e45b7
Add a new PSA Internal Trusted Storage APIs
2018-11-25 09:57:22 +02:00
Martin Kojtal
c873dc06f2
Merge branch 'ONME-3983' of https://github.com/mtomczykmobica/mbed-os into dev_rollup
2018-11-24 21:14:47 +00:00
Martin Kojtal
b16569dc3f
Merge pull request #8838 from 0xc0170/dev_rollup
...
Rollup v2 for 5.11rc1
2018-11-24 21:37:02 +01:00
Veijo Pesonen
386915deb8
Tests-network-wifi organize test cases for clarity
2018-11-24 12:28:14 +02:00
Veijo Pesonen
50bc2e9280
Bugfix - drops the assumption that there is more than SSID in vicinity
2018-11-24 12:20:07 +02:00
Martin Kojtal
52aea31655
Merge pull request #8702 from SenRamakri/sen_CrashReportingImpl
...
Crash Reporting implementation
2018-11-23 20:24:53 +01:00
Martin Kojtal
80ed251c9c
Merge branch 'fix_travis_astyle_files' of https://github.com/0xc0170/mbed-os into dev_rollup
2018-11-23 18:38:13 +00:00
Martin Kojtal
36bc2efdec
Merge branch 'greentea_improvements' of https://github.com/michalpasztamobica/mbed-os into dev_rollup
2018-11-23 18:37:52 +00:00
Martin Kojtal
5b42e2886f
Merge pull request #8607 from aashishc1988/ram_rom_fetch
...
Fetch ram/rom start/size
2018-11-22 10:49:50 +01:00
Martin Kojtal
c1d00df79a
test: fix coding style
2018-11-20 14:50:56 +00:00
Martin Kojtal
00c5b56e32
Merge pull request #8683 from NXPmicro/feature-qspi-lpc546xx
...
Feature qspi lpc546xx
2018-11-19 13:11:44 +00:00
Michal Paszta
e53ee631f9
Greentea netsocket and network tests improvements
...
Added smarter rounding of times in recv_timeout and increased the delta by one, to allow "off-by-one" errors.
Reverted commit 88eea6a
, reducing TESTS_TIMEOUT back to 480.
Introduced a 100ms timeout for waiting on asynchronous DNS resolution.
Improved error handling on disconnects.
2018-11-19 08:58:14 +01:00
Senthil Ramakrishnan
f59b99d889
Removing support for printing error-report after reboot and other minor fixes
2018-11-18 22:42:37 -06:00
Senthil Ramakrishnan
423b52e1c3
Fix crc calculation error, code-style issues and other fixes
2018-11-16 17:24:52 -06:00
Senthil Ramakrishnan
4ec30e3e8f
Added greentea test
2018-11-16 14:00:00 -06:00
Aashish chaddha
329c553595
ifdef ram/rom size/start in case they dont exist
2018-11-16 09:38:26 -06:00
Mahesh Mahadevan
6bd0be186b
Add MT25Q Flash config
...
Signed-off-by: Maciej Bociański <maciej.bocianski@arm.com>
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-16 08:15:48 -06:00
Mahesh Mahadevan
c21c599b25
Update the QSPI unit test for NXP LPC546XX board
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-16 07:56:30 -06:00
Cruz Monrreal II
5c1c7bf71f
Merge branch 'fix_astyle_error' of ssh://github.com/0xc0170/mbed-os into rollup-b.1
2018-11-15 18:26:09 -06:00
Marcin Tomczyk
d3812f3740
ONME-3983 Fix the defects found in IPV4 testing against packet dropping
2018-11-15 13:47:43 +01:00
Martin Kojtal
ef728d01dc
tests: fix doxygen style
2018-11-15 07:20:12 +00:00
Martin Kojtal
501bc29426
rtc time test: fix coding style
2018-11-15 07:20:09 +00:00
Deepika
e3c4dae875
Add tests to verify RAM/ROM sizes
2018-11-14 09:51:53 -06:00
Marcin Tomczyk
29b7c50e30
ONME-3852 Check that test cases disconnect at the end
2018-11-12 11:29:58 +01:00
Cruz Monrreal
9d95d46d6c
Merge pull request #8591 from 0xc0170/fix_coding_style_features
...
features: fix coding style
2018-11-09 09:40:56 -06:00
Cruz Monrreal
e635613b28
Merge pull request #7849 from TacoGrandeTX/fix_rtc_settime
...
Low power timer needs to be reset when setting time
2018-11-08 10:50:04 -06:00
Cruz Monrreal
3046e31349
Merge pull request #8589 from davidsaada/david_flash_erase_value
...
Support erase value in Flash HAL drivers, FlashIAP and block devices
2018-11-08 10:06:58 -06:00
Martin Kojtal
937d68f0fd
Merge pull request #8645 from mtomczykmobica/ONME-3733
...
Detect xinetd service pattern and generate correct pattern (ONME-3733)
2018-11-08 15:19:19 +01:00
Martin Kojtal
28a5906479
tests: fix coding style
2018-11-08 08:54:34 +00:00
David Saada
542744d03c
Support erase value in Flash HAL drivers, FlashIAP and block devices
2018-11-07 14:23:07 +02:00
Marcin Tomczyk
5eabfabc51
ONME-3733 detect xinetd service pattern and generate correct pattern
2018-11-07 13:18:04 +01:00
RFulchiero
0de5ab2686
Add a protected HAL set_time() test
...
When DEVICE_LPTICKER is defined set_time() only works correctly on
the first call. This test calls set_time() twice and ensures the
time set by both calls is correct. This test only runs if
DEVICE_RTC or DEVICE_LPTICKER is defined.
2018-11-01 17:17:56 -05:00
Seppo Takalo
e3623b91fa
Increase EMAC test timeout to 1400 seconds
2018-10-31 17:14:05 +02:00
Cruz Monrreal
5ed07c2dd4
Merge pull request #8328 from kjbracey-arm/noreturn
...
Error path tightening: use MBED_NORETURN; add+use core_util_atomic_flag
2018-10-29 20:49:54 -05:00
Cruz Monrreal
c9eaddd7e0
Merge pull request #8487 from kegilbert/mbed_mem_trace_config_patch2
...
Update mbed_mem_tracing config option
2018-10-29 18:53:25 -05:00