Martin Kojtal
30070c6055
Merge pull request #9533 from mirelachirica/remove_obsolete_cellular_unittests
...
Cellular: Remove makefile and mbedignore refering to obsolete cellula…
2019-01-30 10:07:02 +01:00
Martin Kojtal
93f0a09344
Merge pull request #9521 from cmonr/py3-tests-and-fixes
...
Py3 fixes and Travis CI enablement
2019-01-30 10:02:50 +01:00
Martin Kojtal
88d7ef155b
Merge pull request #9531 from theamirocohen/remove_flashiap_tests
...
Remove COMPONENT_FLASHIAP tests
2019-01-30 09:57:35 +01:00
Martin Kojtal
8847b87852
Merge pull request #9522 from bridadan/update_test_packages
...
Update all mbed test packages
2019-01-30 09:57:13 +01:00
Martin Kojtal
2a16bbdf98
Merge pull request #9496 from NXPmicro/Add_MXRT_IAR_Support
...
MIMXRT1050_EVK: Add IAR support in the exporter
2019-01-30 09:56:29 +01:00
Martin Kojtal
87851f3e01
Merge pull request #9472 from AriParkkila/cellular-refactor-greentea
...
Cellular: Fix cellular specific Greentea tests
2019-01-30 09:55:55 +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
Martin Kojtal
1031e2d464
Merge pull request #9236 from jeromecoutant/PR_SD_TEST
...
COMPONENT_SD tests update for small RAM targets
2019-01-30 09:54:41 +01:00
Cruz Monrreal
ad04edf9c1
Merge pull request #9532 from kjbracey-arm/trng_mutex
...
Mutex-protect mbedtls_hardware_poll
2019-01-29 16:53:41 -06:00
Jimmy Brisson
b836b340a2
Updated spm test runner wish short import variant
...
Co-Authored-By: cmonr <Cruz.Monrreal@arm.com>
2019-01-29 14:54:42 -06:00
Mahesh Mahadevan
00477ddf68
LPC546XX, MIMXRT1050: Update to fix ARMC6 build failures
...
Fix for issue 9402
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-01-29 14:21:44 -06:00
Kevin Bracey
6e3c492cd8
mbed_retarget.cpp: Combine ARMC5 and ARMC6 tests
...
A couple of places in mbed_retarget.cpp were testing for either ARMC5 or
ARMC6 in a long-winded fashion. Testing for __ARMCC_VERSION being
defined is sufficient.
2019-01-29 17:49:19 +02:00
Kevin Bracey
c55329157a
Use atomics in __cxa_guard functions
...
Similar to SingletonPtr, use atomic accesses when loading the guard word
outside the lock, and when storing, to ensure no races for threads that
don't take the lock.
Lack of atomics unlikely to be a problem in current builds, but code
could conceivably be subject to reordering if link-time optimisation was
enabled.
2019-01-29 17:49:18 +02:00
Brian Daniels
8be2ba4b8d
Update all mbed test packages.
...
This change allows the latest releases of mbed-ls, mbed-host-tests, and
mbed-greentea. This brings new target support, features, and bug fixes.
2019-01-29 09:36:58 -06:00
Kevin Bracey
6e41d6cdb7
Make SingletonPtr safe using atomics
...
SingletonPtr's implementation wasn't totally safe - see "C++ and the
Perils of Double-Checked Locking"by Meyers and Alexandrescu. No problems
observed in practice, but it was potentially susceptible to compiler
optimisation (or maybe even SMP issues).
Now that we have atomic loads and stores, the function can be made safe,
avoiding any potential races for threads that don't take the lock:
ensure that the unlocked load is atomic, and that the pointer store is
atomic.
See https://preshing.com/20130930/double-checked-locking-is-fixed-in-cpp11/
for more discussion.
2019-01-29 16:01:33 +02:00
Amir Cohen
35df2de703
Remove COMPONENT_FLASHIAP tests
...
FlashIAPBlockDevice LittleFS ‘fopen’ falls on nightly tests
LittleFS test on FlashIAP is not relevant and thus removed
2019-01-29 13:54:40 +02:00
Mirela Chirica
2bdfafc9fc
Cellular: Remove makefile and mbedignore refering to obsolete cellular unit tests
2019-01-29 13:23:39 +02:00
Kevin Bracey
983503f9ee
Mutex-protect mbedtls_hardware_poll
...
Like all HAL APIs, the calls in trng_api.h are not expected to
be thread-safe.
All current accesses to the TRNG HAL are currently via
`mbedtls_hardware_poll`. Mbed TLS does not currently serialise these
calls itself, as `MBEDTLS_THREADING_C` is not enabled. But even if
Mbed TLS's own accesses were serialised, there are other direct
users of `mbedtls_hardware_poll` such as randLIB, that need to use
direct calls due to lack of API to extract entropy from Mbed TLS.
As such it makes sense to treat `mbedtls_hardware_poll` as a de facto
public Mbed OS API, akin to the C++ veneers on top of the HAL, and add a
PlatformMutex there so that it is safe for multithreaded use.
2019-01-29 12:45:48 +02: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
861fb0cbf0
crypto service: Implement function psa_hash_clone over IPC
2019-01-29 11:43:27 +02:00
itayzafrir
81a4ff6425
crypto service: Implement IPC according to Mbed Crypto 1.0.0d1 API
...
1. Removed obsolete crypto APIs from IPC implementation.
2. Updated existing crypto APIs in IPC implementation.
3. Added new crypto APIs to IPC implemntation (except for psa_hash_clone).
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
Jaeden Amero
c3223072dc
crypto: Update to Mbed Crypto 1.0.0d1
2019-01-29 11:43:26 +02:00
Jaeden Amero
4a1584696c
crypto: importer: Update with fetch
...
Instead of doing a "pull --rebase" to update to the latest development
branch, do a "fetch" followed by a "checkout" to update to the specified
release. This enables us to get any new tags created since the last
update to the development branch, and removes the noise of updating a
local "development" branch.
2019-01-29 11:43:25 +02:00
Jaeden Amero
c74993bac4
crypto: Re-import Mbed Crypto 0.1.0b2
...
Use the Mbed-Crypto-specific importer script to re-import Mbed Crypto
0.1.0b2 to its new location.
2019-01-29 11:43:24 +02:00
Jaeden Amero
b5cf455bb7
tls/crypto: Make mbed-crypto importer independent
...
Obtain the version of Mbed Crypto to use not from the Mbed TLS
submodule, but independently through the Mbed Crypto importer instead.
2019-01-29 11:43:24 +02:00
Ari Parkkila
7578d5b174
Cellular: Fix mbed2-build of onboard-modems
2019-01-29 01:08:17 -08:00
Veijo Pesonen
b0fca1ffc8
Test UDPSOCKET_SENDTO_INVALID allows NSAPI_ERROR_UNSUPPORTED
2019-01-29 10:59:06 +02:00
Kevin Bracey
f60bb8f3a7
Second barrier for core_util_atomic_flag_clear
...
As barriers were added in #9247 , review comments pointed out that atomic
stores needed a second barrier, and they got one. But atomic_flag_clear
was missed.
2019-01-29 10:45:20 +02:00
Martin Kojtal
d1b367fbab
Merge pull request #9483 from mprse/ticker_sleep_lock_fix
...
Fix for Issue #7308 (Deep_sleep_lock Ticker.h Issue)
2019-01-29 09:27:12 +01:00
Brian Daniels
4a0bb5b35d
Update utest README
2019-01-28 16:35:35 -06:00
Brian Daniels
1a9df4269b
Correct example given in greentea-client readme
2019-01-28 16:35:34 -06:00
Brian Daniels
b694a34873
Remove reference to yotta and mbed-drivers in greentea-client
2019-01-28 16:35:20 -06:00
Brian Daniels
96a71ce59a
Removing references to yotta and minar within utest
2019-01-28 16:31:20 -06:00
Brian Daniels
374d516689
Remove yotta and minar references in NCS36510
2019-01-28 16:22:47 -06:00
Cruz Monrreal II
de4b7607a0
Simplified max/min condition
2019-01-28 14:01:48 -06:00
Cruz Monrreal II
861816c20b
Enable xenail dist for only Py37 job
...
Other jobs will follow with other PR
2019-01-28 13:54:28 -06:00
Cruz Monrreal II
d582451469
Enabled Py3.{5,6,7} in Travis CI
2019-01-28 13:02:37 -06:00
Cruz Monrreal II
533dcf36ff
Added universal_newlines flag to Popen in pylint.py
2019-01-28 12:59:43 -06:00
Cruz Monrreal II
2a9a45d087
Increased path for spm include.
...
Py3 tests were not running as a result
2019-01-28 12:59:43 -06:00
Cruz Monrreal II
149d280e7a
Added encoding to version check for Py3 compat
2019-01-28 12:59:43 -06:00
Cruz Monrreal II
cc3114113d
In Py3.7, a reinit of a mock variable was needed.
...
It seems that initializing mock variables in an object isn't enough
2019-01-28 12:59:43 -06:00
Cruz Monrreal II
d9add3447d
Added None check for min in config tools
2019-01-28 12:59:43 -06:00
Cruz Monrreal II
72dbc52715
Added flag to run_cmd Popen invocation to do default decoding
2019-01-28 12:59:43 -06:00
Cruz Monrreal
e965aa6640
Merge pull request #9509 from vmedcy/psoc6-daplink-hex
...
PSOC6.py: generate hex files with 16 bytes per row
2019-01-28 10:38:15 -06:00
Cruz Monrreal
66cda8a8fe
Merge pull request #9499 from bridadan/remove_yotta_modules
...
Remove unused yotta module metadata
2019-01-28 10:37:30 -06:00
Cruz Monrreal
545d229ab1
Merge pull request #9497 from ARMmbed/AnotherButler-patch-2
...
Remove yotta from README.md
2019-01-28 10:36:36 -06:00
Cruz Monrreal
953acef94c
Merge pull request #9482 from maciejbocianski/arch_pro_spi_pins
...
ARCH_PRO: add missing SPI pin definitions
2019-01-28 10:34:37 -06:00
Cruz Monrreal
f5730a91b2
Merge pull request #9474 from VeijoPesonen/fix-newlines_at_end-of-files
...
Fix newlines at end of files
2019-01-28 10:33:37 -06:00