Skip to content

Release candidate for mbed-os-5.12.2 #10469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 188 commits into from
Apr 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
188 commits
Select commit Hold shift + click to select a range
bf95f43
Fix single-threaded apps for IAR v8 builds
TacoGrandeTX Mar 8, 2019
60b524b
test_soap_connection_handler leaks memory when open_connection fails
janjongboom Mar 7, 2019
f6f92d7
Fastmodel: add HAL low-power ticker implementation
Mar 15, 2019
c4726f9
FastModel: add HAL sleep implementation
Mar 15, 2019
9e1a478
FastModel: refactor us_ticker code, make names intuitive
Mar 15, 2019
b36c32d
FastModel: Skip low-power ticker time drifting test for models
Apr 3, 2019
724c0bc
FastModel: Enable low-power ticker and sleep
Apr 3, 2019
452b295
FastModel: Add SPDX License Identifier
Apr 8, 2019
5c872a4
TARGET_STM32F7: Reset QSPI in default mode on abort for all versions.
VVESTM Apr 8, 2019
7994484
fix missing implementation call
paul-szczepanek-arm Apr 8, 2019
a9115c3
missing default impl
paul-szczepanek-arm Apr 8, 2019
e4aa999
Cellular: Fix deleting of state machine to correct class
Apr 8, 2019
69ee1ef
Check that required toolchains are in PATH
Apr 7, 2019
39205ae
Allow toolchain paths to be wrapped in quotes
bridadan Apr 5, 2019
b8ed898
Break up large prints from --supported
bridadan Mar 28, 2019
d75000d
Test udpsocket_recv_timeout does not check packet reception ratio
michalpasztamobica Apr 5, 2019
4069781
Relax TLSSOCKET_RECV_TIMEOUT sigio timeout
michalpasztamobica Apr 5, 2019
770bc91
Crash with MTB_MXCHIP_EMW3166 has been corrected. There was undined p…
KariHaapalehto Apr 4, 2019
c923ae3
examples test compile optional verbose
alekla01 Apr 2, 2019
8786f4c
rm ["python", "-m"] from build_command
alekla01 Apr 4, 2019
7ec8ce4
Fixing path comparisons on Windows
bridadan Mar 7, 2019
44fad84
Move all generated file paths to FileRefs in the exporters.
bridadan Mar 6, 2019
dac6e3c
Fix incorrect reference to a filetype
bridadan Mar 6, 2019
e29f983
Create template for missing generated vscode file
bridadan Mar 6, 2019
286a369
Add c_cpp_properties file to gen_files for zipping
bridadan Mar 6, 2019
a21c061
Fixing copying of static filerefs
bridadan Mar 6, 2019
5ceedf1
Fixing zipped makefile exports.
bridadan Mar 6, 2019
5251ec6
Remove outdated projectfiles case for makefiles
bridadan Mar 6, 2019
1680d07
Cellular: Check for URC during AT response stop
Apr 5, 2019
492ead2
FUTURE_SEQUANA: Flatten PDL library paths
lrusinowicz Mar 20, 2019
3a149aa
FUTURE_SEQUANA: Fixed ARMC6 compiler errors and warnings
lrusinowicz Mar 20, 2019
87c50f2
FUTURE SEQUANA: Fixed linker scripts for ARMC6
lrusinowicz Apr 5, 2019
9b90f52
Using new rather than malloc in debug_print
Apr 9, 2019
f2b44f5
Basic driver for Quectel EC25/EC21
Mar 29, 2019
b59c264
Removing left over tracing
Apr 3, 2019
99fcf65
CREG can handle lac/ci/lat
Apr 3, 2019
356d8cd
AT+CGSN with EC2X does not take parameter
Apr 3, 2019
2b6f654
Tidying up the boiler plate code
Apr 4, 2019
f54dece
Adding pin polarity and changing the constructor
Apr 8, 2019
b2e0110
Marking TX and RX pins for UARTSerial as NC
Apr 9, 2019
c3fa525
tools: fix the path generated to the sct file
Mar 6, 2019
6774caf
Test to ensure only the last linker file is used in a project
bridadan Apr 2, 2019
c10528b
Only store references to one linker script in a resources object.
bridadan Apr 2, 2019
9c7175f
Correct call to add_file_ref
bridadan Apr 5, 2019
af73a39
Make files call the linker from the build dir, so correct the path
bridadan Apr 9, 2019
db8bb4d
Remove unnecessary toolchain directory TOOLCHAIN_ARM_MICRO
ccli8 Jan 15, 2019
90e5dc7
Rename TOOLCHAIN_ARM_STD TOOLCHAIN_ARMC6
ccli8 Jan 15, 2019
3c833b1
Fix preprocessor command line in ARMC6 .sct file
ccli8 Jan 16, 2019
746b583
Refactor for memory partittion support
ccli8 Jan 15, 2019
ec9598a
Override CMSIS ROM/RAM spec in targets.json
ccli8 Mar 7, 2019
d252d30
Add license header
ccli8 Mar 12, 2019
5eba407
Fix doxygen comment in USBDevice
c1728p9 Apr 8, 2019
9efccff
Correct all linting errors
theotherjimmy Apr 8, 2019
d9b3de3
Parse section starts beginning with whitespace
theotherjimmy Apr 8, 2019
ed72b44
Fix the bug that travis caught
theotherjimmy Apr 9, 2019
f594860
Fix detection of supported targets for mbed 2 builds
bridadan Apr 8, 2019
958394d
Force SAMD21 and SAMR21 targets to ARMC5 due to incompatibility.
bridadan Apr 9, 2019
22f3edd
PSoC uart: Setup RTS and TX lines in deepsleep
cy-vivekp Mar 11, 2019
805f35f
Flagging WEAK method implementation for default construction
Apr 10, 2019
3233820
Fix crypto service abort functionality - cipher
Mar 20, 2019
3085e71
Fix crypto service abort functionality - hash
Mar 20, 2019
28775e1
Fix crypto service abort functionality - mac
Mar 20, 2019
5f997c2
Fix crypto service abort functionality - generators
Mar 24, 2019
36265a5
Do not allocate zero sized buffers - mac
Mar 27, 2019
0807687
Do not allocate zero sized buffers - hash
Mar 27, 2019
bbf7e77
Do not allocate zero sized buffers - asymmetric
Mar 27, 2019
3d8ea16
Do not allocate zero sized buffers - aead
Mar 27, 2019
e3f9a7b
Do not allocate zero sized buffers - cipher
Mar 27, 2019
b2731f1
Do not allocate zero sized buffers - keys
Mar 27, 2019
12cd1b1
Do not allocate zero sized buffers - entropy
Mar 27, 2019
10c36c7
Do not allocate zero sized buffers - rng
Mar 27, 2019
60c9f54
Do not allocate zero sized buffers - generators
Mar 27, 2019
34aa228
Rename internal function destroy_hash_clone to clear_hash_clone
Mar 27, 2019
62905b1
Add message context cleanup helper function
Mar 28, 2019
619fc05
Configure PS with tdbstore
Apr 10, 2019
6c8a93d
L3IP input now use tcpip_input instead of ip_input
tymoteuszblochmobica Apr 10, 2019
73eb1c9
LPC55S69: Fix APB bridge security programming
kjbracey Apr 11, 2019
b0526f8
LPC55S69: Cast to cope with const mismatch
kjbracey Apr 11, 2019
bc99864
create a region instead of a block for crash data
studavekar Apr 8, 2019
cf67aff
enable crash capture for NUMAKER_PFM_NUC472
studavekar Apr 8, 2019
b35d7ba
remove unused __CRASH_DATA_RAM_SIZE__
studavekar Apr 8, 2019
c1df6ea
place crash data region at end of IRAM
studavekar Apr 9, 2019
c7ef343
crash data support for NUC472 with armcc
studavekar Apr 10, 2019
0ad756c
crash data support for NUC472 with gcc_arm
studavekar Apr 10, 2019
fb5c954
removed the redundant RW_IRAM1 region
studavekar Apr 10, 2019
98d076d
Correct Python 3 errors and lint warnings in build_release.py
theotherjimmy Mar 28, 2019
ff47253
Apply suggestions from code review
bridadan Mar 28, 2019
3b89599
Apply suggestions from code review
bridadan Apr 11, 2019
33cc51b
Changed default language to shell.
Mar 7, 2019
34d4345
Removed status reporting.
Mar 7, 2019
bffc168
Grouped jobs into build stages
Mar 7, 2019
8be769a
Re-enabled PR status reporting. Added external bash file to source fu…
Mar 7, 2019
7a36f93
Removed nearly all usage of 'apt-get'.
Mar 7, 2019
9815af3
Fixed littlefs tests to be Py3 compat
Mar 20, 2019
e932c69
Cleaned up LittleFS and Event Queue tests. Added {} around each varia…
Mar 28, 2019
a4b59fe
Fixed shellcheck issues found in functions.sh Added comments to funct…
Mar 28, 2019
dc4aa42
Fixed status reporting. 'tr' command wasn't doing any replacement
Apr 11, 2019
4e44f6c
Made typo to unblock final check
Apr 11, 2019
94b0a49
Data that is written to/read from external flash using QSPI needs to …
j3hill Apr 11, 2019
4e551b1
STM32: protect compilation when DEVICE_USTICKER is disabled
jeromecoutant Apr 11, 2019
19ab786
approcah -> approach
sebastiantoscano Apr 12, 2019
fb35595
mbed_error: Avoid negative left shift
kjbracey Apr 12, 2019
982d1de
Toshiba: Cortex-M4 -> Cortex-M4F
kjbracey Apr 12, 2019
10a1f46
ECHOTEST internal loop simplification and fix
michalpasztamobica Apr 12, 2019
ece83f1
MXRT1050_EVK: Fixes test failure seen with IAR and ARM toolchains
mmahadevan108 Apr 5, 2019
df39479
add a code independent unit test writing example
lorjala Apr 12, 2019
9264b5d
Edit README.md
Apr 15, 2019
873074a
README file for wifi tests gives configuration example.
michalpasztamobica Apr 12, 2019
a160b57
MPS2 Re-Enablement in mbed
ChangwuShan Jan 29, 2019
dcb5b10
Add GCC_ARM support for the target AN500 of MPS2.
ChangwuShan Jan 29, 2019
522056f
Add GCC_ARM support for the target AN386 of MPS2.
ChangwuShan Jan 29, 2019
0d11427
Add GCC_ARM support for the target AN385 of MPS2.
ChangwuShan Jan 29, 2019
4eb375c
Add GCC_ARM support for the target AN383 of MPS2.
ChangwuShan Jan 29, 2019
58f93fa
Add GCC_ARM support for the target AN382 of MPS2.
ChangwuShan Jan 29, 2019
bcb1dda
Add IAR support for the target AN500 of MPS2.
ChangwuShan Jan 29, 2019
3386463
Add IAR support for the target AN386 of MPS2.
ChangwuShan Jan 29, 2019
60c95a5
Add IAR support for the target AN385 of MPS2.
ChangwuShan Jan 29, 2019
880e5a9
Add IAR support for the target AN383 of MPS2.
ChangwuShan Jan 29, 2019
3ef9aa3
Add IAR support for the target AN382 of MPS2.
ChangwuShan Jan 29, 2019
8ac04df
Fix the build failed issue of MPS2 targets with ARMC6.
ChangwuShan Apr 2, 2019
3b366a0
Fix UARTSerial emergency unbuffered write
kjbracey Apr 9, 2019
26e9ae1
mbed_assert_failure: Don't take critical section
kjbracey Apr 9, 2019
8a48162
mbed_error_puts: Prime STDERR_FILENO before writing
kjbracey Apr 9, 2019
05c85ef
Don't trap RTX errors or mutex errors during errors
kjbracey Apr 9, 2019
d751b1b
GigaDevice: Cortex-M4 -> Cortex-M4F
kjbracey Apr 12, 2019
8891851
ExhaustibleBD: licensed under Apache 2.0
0xc0170 Apr 16, 2019
8937cf0
Cellular: Fix to delete PDP context on disconnect
Apr 11, 2019
bb88285
SDP_K1: Cortex-M4 -> Cortex-M4F
kjbracey Apr 12, 2019
5b7e6b9
rtos: add license information
0xc0170 Apr 16, 2019
22ad3ef
drivers: add license information
0xc0170 Apr 16, 2019
d254fde
license: fix files list
0xc0170 Apr 16, 2019
7eda126
USBHID: Fix the initial HID report read operation
Mar 13, 2019
c9b465f
Tests: USBHID: Add tests
Mar 13, 2019
355aadb
Tests: USBHID: Reuse VID & PID from basic test
Mar 14, 2019
57715cb
Tests: USBHID: Handle variable driver setup time
Mar 22, 2019
13c38e5
Tests: USBHID: Remove unnecessary wait_ready call
Mar 25, 2019
a001468
Tests: USBHID: Make report test optional on Linux
Mar 25, 2019
9c055d0
Tests: USBHID: Specify `hidapi` license
Mar 26, 2019
186dcaa
FUTURE_SEQUANA: Clean up "unused variable" compiler warnings
lrusinowicz Apr 16, 2019
8884447
Update Jinja2 for CVE-2019-10906 fix
Apr 16, 2019
c1f049b
Increase background stack size to fix overflows with debug profile
jeromecoutant Apr 10, 2019
0e4520d
Updated mbed-cloud-sdk req to 2.0.6 Test for SMCC failing w/o update.
Apr 16, 2019
651af9c
Make sure to reset settings before applying the properties
Apr 16, 2019
6e4b645
suppress coverity error
paul-szczepanek-arm Apr 16, 2019
4d6dc13
Fix warnings on PSA secure builds
Apr 15, 2019
5118cdf
FUTURE_SEQUANA: Fix flash_api bug introduced with e16d2d81d9
lrusinowicz Apr 16, 2019
b3ef3db
Perform disconnection regardless of the IP address
michalpasztamobica Apr 11, 2019
6d3c973
ESP8266: Timeout if chip keeps returning errors
michalpasztamobica Apr 11, 2019
ebc5e7b
i.MX RT1050: Reactivate data cache
kjbracey Apr 4, 2019
42b1d7f
Fixing default algorithms in cmsis pack index
bridadan Apr 15, 2019
96c0d8f
uARM - Move heap region after IRAM1
Mar 8, 2019
c5bfb6a
Networking: Fix some ARMC6 warnings
kjbracey Apr 12, 2019
0663378
Update CMSIS pack manager to properly handle OSError
j3hill Apr 15, 2019
adb07ef
ARM MPS2: Cortex-M4 -> M4F & M7 -> M7FD
kjbracey Apr 12, 2019
2c67592
Atmel SAMG55: Cortex-M4 -> Cortex-M4F
kjbracey Apr 12, 2019
76453bf
Update comments and improve readability for the BusInOut class
sg- Apr 15, 2019
5dfd29f
Fix typos in BusInOut.h
Apr 17, 2019
651e4e2
Cellular: Added BG96 handling for socket closing URC
Apr 16, 2019
a4562e2
Update Mbed version block
adbridge Apr 24, 2019
ce722f1
TF-M patch: General modifications
Feb 7, 2019
2fbbf5c
TF-M patch: Fix tfm_ns_lock_init issue (TF-M issue #239)
Feb 7, 2019
39c1f6b
Remove outdated patch
Mar 31, 2019
c84329a
[trusted-firmware-m]: Updated to 0101fd37
Mar 31, 2019
60aabae
Update commit sha's
Mar 31, 2019
cec01fd
PSoC6: Remove TARGET_CY8C62XX CSP directory
hennadiykytsun Apr 11, 2019
f96ae8b
PSOC6: remove custom IPC configuration for PSA
hennadiykytsun Apr 11, 2019
d36b670
PSOC6: update version of PDL flash driver
hennadiykytsun Apr 11, 2019
2f29ce6
PSOC6: update version of PDL IPC driver
hennadiykytsun Apr 11, 2019
37e0c5e
PSOC6: add ARMC6 support (fix issue #9830)
hennadiykytsun Apr 11, 2019
d9b0706
FUTURE_SEQUANA: reuse supported_toolchains from TARGET_PSOC6
hennadiykytsun Apr 11, 2019
8196050
PSOC6: remove __attribute__((constructor)) from SystemInit
hennadiykytsun Apr 12, 2019
608a1f5
CY8CKIT_062_WIFI_BT_PSA: mention tools/psa/release.py in README
hennadiykytsun Apr 16, 2019
1e81845
PSOC6: Add WICED library build for ARMC6
cydriftcloud Apr 3, 2019
0a5e610
"Update secure binaries for CY8CKIT_062_WIFI_BT_M0_PSA"
adbridge Apr 24, 2019
2106e70
"Update secure binaries for FUTURE_SEQUANA_M0_PSA"
adbridge Apr 24, 2019
06f1a98
Revert TF-M update PR
Apr 24, 2019
e537951
Remove outdated patch
Mar 31, 2019
abd60fc
[trusted-firmware-m]: Updated to 0101fd37
Mar 31, 2019
fb2f96c
TF-M patch: General modifications
Feb 7, 2019
82a8dc3
TF-M patch: Fix service handles not cleared issue (TF-M issue #230)
Feb 7, 2019
3915c54
TF-M patch: Fix fixed-size partitions stack size (TF-M issue #240)
Feb 7, 2019
e4fbe20
TF-M patch: Fix tfm_psa_call_venner wrong argument type (TF-M issue #…
Feb 7, 2019
fd50f96
TF-M patch: Fix wrong check in tfm_spm_check_client_version (TF-M is…
Feb 7, 2019
e3cd9db
TF-M patch: Fix tfm_memory_check issue (TF-M issue #224)
Mar 3, 2019
a6b8f63
Update commit sha's
Mar 31, 2019
45c1776
Merge pull request #10467 from kfnta/release-candidate
adbridge Apr 24, 2019
51b9a09
Merge branch 'release-candidate' of github.com:ARMmbed/mbed-os into r…
adbridge Apr 24, 2019
a3e7416
"Update secure binaries for LPC55S69_S"
adbridge Apr 24, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
337 changes: 165 additions & 172 deletions .travis.yml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ The Python modules used by Mbed tools are used under the following licenses:
- [pycryptodome](https://pypi.org/project/pycryptodome) - BSD-2-Clause
- [pyusb](https://pypi.org/project/pyusb/) - Apache-2.0
- [cmsis-pack-manager](https://pypi.org/project/cmsis-pack-manager) - Apache-2.0
- [hidapi](https://pypi.org/project/hidapi/) - BSD-style
566 changes: 566 additions & 0 deletions TESTS/host_tests/usb_device_hid.py

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion TESTS/mbed_drivers/lp_timeout/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ Case cases[] = {
Case("1 s delay during deepsleep (attach_us)", test_deepsleep<AttachUSTester<LowPowerTimeout>, 1000000, LONG_DELTA_US>,
greentea_failure_handler),
#endif

#if !defined(__ARM_FM) //FastModels not support time drifting test
Case("Timing drift (attach)", test_drift<AttachTester<LowPowerTimeout> >),
Case("Timing drift (attach_us)", test_drift<AttachUSTester<LowPowerTimeout> >),
#endif
};

utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
Expand Down
3 changes: 0 additions & 3 deletions TESTS/netsocket/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -859,9 +859,6 @@ Within each loop, one `recvfrom()` may return the received packet size
When `NSAPI_ERROR_WOULD_BLOCK` is received, check that time consumed is
more that 100 milliseconds but less than 200 milliseconds.

After repeating for 10 times, at least 5 packets must have been
received.


### UDPSOCKET_SENDTO_TIMEOUT

Expand Down
15 changes: 7 additions & 8 deletions TESTS/netsocket/tcp/tcpsocket_echotest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ void TCPSOCKET_ECHOTEST()

int recvd;
int sent;
int x = 0;
for (int pkt_s = pkt_sizes[x]; x < PKTS; pkt_s = pkt_sizes[x++]) {
for (int s_idx = 0; s_idx < sizeof(pkt_sizes) / sizeof(*pkt_sizes); s_idx++) {
int pkt_s = pkt_sizes[s_idx];
fill_tx_buffer_ascii(tcp_global::tx_buffer, BUFF_SIZE);
sent = sock.send(tcp_global::tx_buffer, pkt_s);
if (sent < 0) {
printf("[Round#%02d] network error %d\n", x, sent);
printf("[Round#%02d] network error %d\n", s_idx, sent);
TEST_FAIL();
break;
} else if (sent != pkt_s) {
printf("[%02d] sock.send return size %d does not match the expectation %d\n", x, sent, pkt_s);
printf("[%02d] sock.send return size %d does not match the expectation %d\n", s_idx, sent, pkt_s);
TEST_FAIL();
break;
}
Expand All @@ -85,7 +85,7 @@ void TCPSOCKET_ECHOTEST()
while (bytes2recv) {
recvd = sock.recv(&(tcp_global::rx_buffer[sent - bytes2recv]), bytes2recv);
if (recvd < 0) {
printf("[Round#%02d] network error %d\n", x, recvd);
printf("[Round#%02d] network error %d\n", s_idx, recvd);
TEST_FAIL();
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock.close());
return;
Expand Down Expand Up @@ -143,7 +143,6 @@ void TCPSOCKET_ECHOTEST_NONBLOCK()

int bytes2send;
int sent;
int s_idx = 0;
receive_error = false;
unsigned char *stack_mem = (unsigned char *)malloc(tcp_global::TCP_OS_STACK_SIZE);
TEST_ASSERT_NOT_NULL(stack_mem);
Expand All @@ -154,8 +153,8 @@ void TCPSOCKET_ECHOTEST_NONBLOCK()

TEST_ASSERT_EQUAL(osOK, receiver_thread->start(callback(&queue, &EventQueue::dispatch_forever)));

for (int pkt_s = pkt_sizes[s_idx]; s_idx < PKTS; ++s_idx) {
pkt_s = pkt_sizes[s_idx];
for (int s_idx = 0; s_idx < sizeof(pkt_sizes) / sizeof(*pkt_sizes); ++s_idx) {
int pkt_s = pkt_sizes[s_idx];
bytes2recv = pkt_s;
bytes2recv_total = pkt_s;

Expand Down
16 changes: 8 additions & 8 deletions TESTS/netsocket/tls/tlssocket_echotest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@ void TLSSOCKET_ECHOTEST()

int recvd;
int sent;
int x = 0;
for (int pkt_s = pkt_sizes[x]; x < PKTS; pkt_s = pkt_sizes[x++]) {
for (int s_idx = 0; s_idx < sizeof(pkt_sizes) / sizeof(*pkt_sizes); s_idx++) {
int pkt_s = pkt_sizes[s_idx];
fill_tx_buffer_ascii(tls_global::tx_buffer, BUFF_SIZE);

sent = sock->send(tls_global::tx_buffer, pkt_s);
if (sent < 0) {
printf("[Round#%02d] network error %d\n", x, sent);
printf("[Round#%02d] network error %d\n", s_idx, sent);
TEST_FAIL();
break;
} else if (sent != pkt_s) {
printf("[%02d] sock.send return size %d does not match the expectation %d\n", x, sent, pkt_s);
printf("[%02d] sock.send return size %d does not match the expectation %d\n", s_idx, sent, pkt_s);
TEST_FAIL();
break;
}
Expand All @@ -89,7 +89,7 @@ void TLSSOCKET_ECHOTEST()
while (bytes2recv) {
recvd = sock->recv(&(tls_global::rx_buffer[sent - bytes2recv]), bytes2recv);
if (recvd < 0) {
printf("[Round#%02d] network error %d\n", x, recvd);
printf("[Round#%02d] network error %d\n", s_idx, recvd);
TEST_FAIL();
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->close());
return;
Expand Down Expand Up @@ -146,7 +146,7 @@ void TLSSOCKET_ECHOTEST_NONBLOCK()

int bytes2send;
int sent;
int s_idx = 0;
;
receive_error = false;
unsigned char *stack_mem = (unsigned char *)malloc(tls_global::TLS_OS_STACK_SIZE);
TEST_ASSERT_NOT_NULL(stack_mem);
Expand All @@ -158,8 +158,8 @@ void TLSSOCKET_ECHOTEST_NONBLOCK()
event_queue = &queue;
TEST_ASSERT_EQUAL(osOK, receiver_thread->start(callback(&queue, &EventQueue::dispatch_forever)));

for (int pkt_s = pkt_sizes[s_idx]; s_idx < PKTS; ++s_idx) {
pkt_s = pkt_sizes[s_idx];
for (int s_idx = 0; s_idx < sizeof(pkt_sizes) / sizeof(*pkt_sizes); ++s_idx) {
int pkt_s = pkt_sizes[s_idx];
bytes2recv = pkt_s;
bytes2recv_total = pkt_s;

Expand Down
2 changes: 1 addition & 1 deletion TESTS/netsocket/tls/tlssocket_recv_timeout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ using namespace utest::v1;

namespace {
static const int SIGNAL_SIGIO = 0x1;
static const int SIGIO_TIMEOUT = 20000; //[ms]
static const int SIGIO_TIMEOUT = 50000; //[ms]
}

static void _sigio_handler(osThreadId id)
Expand Down
10 changes: 4 additions & 6 deletions TESTS/netsocket/udp/udpsocket_echotest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,10 @@ void UDPSOCKET_ECHOTEST()

int recvd;
int sent;
int s_idx = 0;
int packets_sent = 0;
int packets_recv = 0;
for (int pkt_s = pkt_sizes[s_idx]; s_idx < PKTS; pkt_s = ++s_idx) {
pkt_s = pkt_sizes[s_idx];
for (int s_idx = 0; s_idx < sizeof(pkt_sizes) / sizeof(*pkt_sizes); ++s_idx) {
int pkt_s = pkt_sizes[s_idx];

fill_tx_buffer_ascii(tx_buffer, BUFF_SIZE);

Expand Down Expand Up @@ -147,15 +146,14 @@ void UDPSOCKET_ECHOTEST_NONBLOCK()
sock.sigio(callback(_sigio_handler));

int sent;
int s_idx = 0;
int packets_sent = 0;
int packets_recv = 0;
Thread *thread;
unsigned char *stack_mem = (unsigned char *)malloc(OS_STACK_SIZE);
TEST_ASSERT_NOT_NULL(stack_mem);

for (int pkt_s = pkt_sizes[s_idx]; s_idx < PKTS; ++s_idx) {
pkt_s = pkt_sizes[s_idx];
for (int s_idx = 0; s_idx < sizeof(pkt_sizes) / sizeof(*pkt_sizes); ++s_idx) {
int pkt_s = pkt_sizes[s_idx];

thread = new Thread(osPriorityNormal,
OS_STACK_SIZE,
Expand Down
5 changes: 3 additions & 2 deletions TESTS/netsocket/udp/udpsocket_recv_timeout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ using namespace utest::v1;
namespace {
static const int SIGNAL_SIGIO = 0x1;
static const int SIGIO_TIMEOUT = 5000; //[ms]
static const int PKT_NUM = 2;
}

static void _sigio_handler(osThreadId id)
Expand All @@ -52,7 +53,7 @@ void UDPSOCKET_RECV_TIMEOUT()
Timer timer;
SocketAddress temp_addr;
int pkt_success = 0;
for (int i = 0; i < 10; i++) {
for (int i = 0; i < PKT_NUM; i++) {
TEST_ASSERT_EQUAL(DATA_LEN, sock.sendto(udp_addr, buff, DATA_LEN));
timer.reset();
timer.start();
Expand All @@ -75,6 +76,6 @@ void UDPSOCKET_RECV_TIMEOUT()
pkt_success++;
}

TEST_ASSERT(pkt_success >= 5);
printf("MBED: %d out of %d packets were received.\n", pkt_success, PKT_NUM);
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock.close());
}
4 changes: 3 additions & 1 deletion TESTS/network/wifi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,12 @@ git checkout master
cd ..
```

Prepare an `mbed_app.json` configuration file with all the required definitions provided. See [template_mbed_app.txt](template_mbed_app.txt) file for the full list of necessary definitions.

Now build test binaries:

```.sh
mbed test --compile -t <toolchain> -m <target> -n mbed-os-tests-network-wifi
mbed test --compile -t <toolchain> -m <target> --app-config TESTS/network/wifi/template_mbed_app.txt -n mbed-os-tests-network-wifi
```

Running tests
Expand Down
2 changes: 1 addition & 1 deletion TESTS/psa/spm_client/COMPONENT_NSPE/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#include "psa_manifest/sid.h"

#if defined(TARGET_TFM)
#include "psa/service.h"
#define MBED_CONF_SPM_IPC_MAX_NUM_OF_CHANNELS TFM_CONN_HANDLE_MAX_NUM
#define PSA_MAX_IOVEC 4
#endif

using namespace utest::v1;
Expand Down
2 changes: 1 addition & 1 deletion TESTS/psa/spm_server/COMPONENT_NSPE/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "psa_manifest/sid.h"

#if defined(TARGET_TFM)
#include "psa/service.h"
#define PSA_MAX_IOVEC 4
#endif

using namespace utest::v1;
Expand Down
2 changes: 1 addition & 1 deletion TESTS/psa/spm_smoke/COMPONENT_NSPE/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "psa_manifest/sid.h"

#if defined(TARGET_TFM)
#include "psa/service.h"
#define PSA_MAX_IOVEC 4
#endif

using namespace utest::v1;
Expand Down
23 changes: 23 additions & 0 deletions TESTS/usb_device/hid/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Testing the USB HID device with a Linux host

Before running `tests-usb_device-hid` test suite on a Linux machine, please
make sure to install the `hidapi` Python module first, otherwise some test
cases will be skipped. Due to external dependencies for Linux, this module
is not installed during the initial setup, to keep the process as simple
as possible.

For Debian-based Linux distros, the dependencies can be installed as follows
(based on module's [README][1]):

```bash
apt-get install python-dev libusb-1.0-0-dev libudev-dev
pip install --upgrade setuptools
```
To install the `hidapi` module itself, please use the attached
`TESTS/usb_device/hid/requirements.txt` file:
```bash
pip install -r requirements.txt
```

[1]: https://github.com/trezor/cython-hidapi/blob/master/README.rst#install

Loading