Ron Eldor
22bf92bb7e
Initialize platform in trng test
...
Add calls to `mbedtls_platform_setup()` and
`mbedtls_platform_terminate()` to the trng greentea test, to
initialize the hardware acceleration engines, in some platforms.
2019-02-18 11:43:32 +02:00
Michal Paszta
5eaf08e899
Netsocket documentation cleanup
2019-02-18 10:40:42 +02:00
Martin Kojtal
c08f51aa36
copyright 2019 fix
2019-02-15 13:37:40 +00:00
Michal Paszta
ca57bdd481
Greentea tests: user-configurable timeouts
...
Now it is enough to add:
"macros": [
"MBED_GREENTEA_TEST_XXXSOCKET_TIMEOUT_S=20"
],
to mbed_app.json, where XXX is on of {DNS, TLS, UDP, TCP}.
Also network-* tests are now configurable: network-interface, network-wifi, network-emac with a similar macro.
2019-02-15 15:08:15 +02:00
Michal Paszta
a089661f05
Greentea: Remove TLSSocket_simultaneous test
...
The reason is that some platforms lack memory to run it. To be brought
back once TLS library memory consumption is optimized.
2019-02-15 11:59:28 +02:00
Amir Cohen
92ed1cb10c
Add flash sum check
...
Check that flash size sum up to all sectors combined
2019-02-14 17:30:51 +02:00
Martin Kojtal
17878e3ce8
test mbedmicro: fix licenses
2019-02-14 14:02:35 +00:00
Martin Kojtal
852f667d05
wifi test: add license info
2019-02-14 13:58:07 +00:00
Cruz Monrreal
f2abdcbcc6
Merge pull request #9639 from michalpasztamobica/esp8266_connect_timeout
...
ESP8266: connect() checks errors from ESP chip
2019-02-13 20:00:37 -06:00
Cruz Monrreal
da5719113c
Merge pull request #9701 from kfnta/entorpy_inject_test_refactor
...
Refactor psa entropy inject test
2019-02-13 17:28:53 -06:00
Cruz Monrreal
2e9d6d2938
Merge pull request #9645 from AriParkkila/cellular-netsocket
...
Change TESTS/netsocket/ for cellular testing
2019-02-13 17:28:35 -06:00
Cruz Monrreal
704a1cb6c8
Merge pull request #9702 from kfnta/psa_fix_partition_dpendecies
...
Fix dependencies of platform partition
2019-02-13 17:11:06 -06:00
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