Commit Graph

843 Commits (07cd9a10c7ea47f99ce22bfae518d0031c248022)

Author SHA1 Message Date
Senthil Ramakrishnan 4c39d868fe Add debug prints to triage the test timeouts 2019-01-25 14:29:59 +00:00
Senthil Ramakrishnan 4eec1c618a Increase the timeout for the host side script and the test 2019-01-25 14:29:59 +00:00
Filip Jagodzinski 7643868afd 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-25 14:29:59 +00:00
Seppo Takalo 37ab6ecce2 Allow NSAPI_ERROR_UNSUPPORTED from Socket::setsockopt() 2019-01-25 14:29:59 +00:00
jeromecoutant 9a04abbb23 Netsocket DNS test: increase timeout value 2019-01-25 14:29:59 +00:00
jeromecoutant bb5e45625a FLASH test: skip test if test region overlaps code 2019-01-25 14:29:59 +00:00
Michal Paszta c92dac82fe TCP/UDP greentea tests refactoring and cleanup 2019-01-25 14:29:59 +00:00
jeromecoutant 4b7f273ee5 FLASHIAP test: skip test if test region overlaps code 2019-01-25 14:29:59 +00:00
Michal Paszta 273323d2ed Gemalto Crinterion UDP test adjustments
Adjusting the tests to match the cellular modems ELS61-E2 and BGS2-W requirements.
2019-01-25 14:29:59 +00:00
Alexander Zilberkant e399c89bd0 fix its_reset test 2019-01-14 13:06:14 +00:00
Maciej Bocianski d7529c57ef 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-14 13:06:14 +00:00
Brian Daniels 35266259a7 Fix Python 3 syntax in rtc host test 2019-01-14 13:06:14 +00:00
Michal Paszta 595e4870a7 Greentea tests ignore bind returning UNSUPPORTED 2019-01-14 13:06:14 +00:00
Alexander Zilberkant cc5e9053a1 Update TESTS/mbed_hal/spm/main.cpp
Use r3 instead of r4

Co-Authored-By: orenc17 <oren.cohen@arm.com>
2019-01-14 13:06:14 +00:00
Oren Cohen 8e20890c75 Run the non-secure cases first 2019-01-14 13:06:14 +00:00
Oren Cohen e875e5d4a1 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.
2019-01-14 13:06:14 +00:00
Seppo Takalo 934f4f108c 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-27 22:26:04 -06:00
Alastair D'Silva 5b29b7e6b5 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-27 22:26:04 -06:00
David Saada 67ba976b30 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-27 22:26:03 -06:00
jeromecoutant 6f6cdc948b DNS tests: improve debug messages 2018-12-27 22:26:02 -06:00
jeromecoutant 3da0d3c0a5 WIFI test: improve debug messages 2018-12-27 22:26:02 -06:00
Kevin Bracey c401662941 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-27 22:26:01 -06:00
jeromecoutant 0d9ea35ccf QSPI tests: update STM32 boards configuration
NB: STM directory removed in flash_configs as there is no STM memory
2018-12-27 22:26:01 -06:00
jeromecoutant da806bd59f STM32 DISCO : enable QSPI tests when available 2018-12-27 22:26:00 -06:00
Conrad Braam aaed845cce removed abc insanity 2018-12-27 22:26:00 -06:00
Conrad Braam 43f09b862c writes and reads queue, not overflow stack IOTPAN-295 2018-12-27 22:26:00 -06:00
Kari Haapalehto 4d2f6621c4 Fix test-netsocket-tcp greentea test build fails. main.cpp was missing comma at the end of line. 2018-12-27 22:25:59 -06:00
Filip Jagodzinski b5c4dd5705 Tests: Stream: Use a quote from C99 spec
Use C99 instead of Linux man entry.
2018-12-27 22:25:58 -06:00
Filip Jagodzinski 2ec7bddab3 Tests: Stream: Add more test cases 2018-12-27 22:25:58 -06:00
Michal Paszta 8d218d214c Missing socket greentea tests implementation 2018-12-27 22:25:58 -06:00
Oren Cohen 68c3d6c657 Correct behavior of PSA code generator
* Don't generate files if a test does not contain additional partitions
2018-12-27 22:25:58 -06:00
Veijo Pesonen e35c0a79c9 Tests-network-wifi organize test cases for clarity 2018-12-27 22:25:55 -06:00
Veijo Pesonen 2235150491 Bugfix - drops the assumption that there is more than SSID in vicinity 2018-12-27 22:25:55 -06:00
Kevin Bracey 89d239e8e4 Test MPU is enabled by init 2018-12-11 16:14:49 -06:00
Oren Cohen 8ee3b1d74b Prebuilt images 2018-12-11 16:14:46 -06:00
Oren Cohen f9b9810c5e Fix PSA-HAL, TRNG, TLS tests 2018-12-11 16:14:46 -06:00
Oren Cohen 709d924750 fix mbedmicro-rtos-mbed tests 2018-12-11 16:14:45 -06:00
Oren Cohen 6b87427549 Use entropy injection on any NVseed platform or PSA dual-core/v8 2018-12-11 16:14:45 -06:00
Oren Cohen 6c1d08a503 Basic test can run on single v7's 2018-12-11 16:14:45 -06:00
Alex Volinski f07943d2b1 The inject test can run also on single core CPU's such as K64F 2018-12-11 16:14:45 -06:00
Oren Cohen fee5e42f95 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-11 16:14:45 -06:00
itayzafrir df1d36a0aa Skip Mbed Crypto tests when when Mbed Crypto is OFF 2018-12-11 16:14:44 -06:00
Oren Cohen 132f00ee12 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-12-11 16:14:44 -06:00
itayzafrir 447cd74aa2 Add license 2018-12-11 16:14:44 -06:00
itayzafrir 5ceeb6f69a Add mbed-crypto key derivation test 2018-12-11 16:14:44 -06:00
itayzafrir 4d55d53581 Add mbed-crypto asymmetric sign verify test 2018-12-11 16:14:44 -06:00
itayzafrir 51b11815cc Add mbed-crypto symmetric cipher encrypt decrypt test 2018-12-11 16:14:44 -06:00
itayzafrir e580d1e2a7 Add mbed-crypto hash verify test 2018-12-11 16:14:44 -06:00
itayzafrir 14bd3c3025 Add mbed-crypto asymmetric encrypt decrypt test 2018-12-11 16:14:44 -06:00
itayzafrir 5ee7a2f0ee Introduce mbed-crypto tests
Add tests setup code and random bytes generator test.
2018-12-11 16:14:44 -06:00