Commit Graph

865 Commits (08bd651ae4666420c38ff497c480788ea181918d)

Author SHA1 Message Date
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
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