Martin Kojtal
355f09bbac
Merge pull request #9875 from tymoteuszblochmobica/testfix
...
Apply proper network interface verification.
Only run for platforms which have two interfaces and prevent crashes otherwise.
2019-03-04 15:24:41 +01:00
Martin Kojtal
e75794ec6e
Merge pull request #9888 from ARMmbed/feature-armc6
...
ARM Toolchain update to ARM Compiler 6.11(ARMC6)
2019-03-04 12:23:38 +01:00
Tymoteusz Bloch
f420a5551d
Fix multihoming tests for case of no ethernet device
2019-03-04 11:25:56 +01:00
Martin Kojtal
9f6156abb3
Merge pull request #9916 from kfnta/skip_spm_hal_m33
...
Skip test on Cortex M33 devices
2019-03-04 10:51:14 +01:00
Oren Cohen
577d286639
Skip test on Cortex M33 devices
...
On platforms using coretx m33 accessing the secure memory will cause SecureFault instead of Hardfault.
SecureFault is implemented in the secure image and cannot be changed in runtime.
2019-03-03 18:43:04 +00:00
Martin Kojtal
fa65546aa2
Merge pull request #9913 from kfnta/fix_acl_test
...
Fix bug in crypto_acl test
2019-03-03 19:30:43 +01:00
Oren Cohen
4fe5a41734
Fix bug in crypto_acl test
2019-03-03 14:41:27 +02:00
Oren Cohen
cfb60ec955
Fixes
...
* Add #include <stddef.h> to psa/client.h
* Add Attestation service to TFM
* Update FUTURE_SEQUANA_PSA secure binaries
* Remove MBED_SPM from K64F
* Refactor psa_manifest/sid.h
* Increase stackl size in spm-client tests
* Add handling of errors from psa_get in partitions
2019-03-03 13:30:58 +02:00
Michael Schwarcz
b62c48977f
Review fixes
2019-03-03 10:55:46 +02:00
Michael Schwarcz
20d7f817df
Fix astyle
2019-03-03 10:55:46 +02:00
Michael Schwarcz
ef76ec83ee
Generate psa_manifest/sid.h
2019-03-03 10:55:46 +02:00
Oren Cohen
a1bd657594
Test partition modification
2019-03-03 10:55:44 +02:00
Oren Cohen
bd9a738473
Move SPM_PANIC to psa/service.h
2019-03-03 10:55:44 +02:00
Oren Cohen
306a51f6c0
Update psa_get() to return psa_status_t
2019-03-03 10:55:44 +02:00
Michael Schwarcz
3edcf455a6
mbed-crypto sanity tests enable run without greentea
2019-03-03 10:55:43 +02:00
Michael Schwarcz
f9fbd6ae82
Align PSA SPM tests to TF-M
2019-03-03 10:55:42 +02:00
Oren Cohen
483b23c318
Fix SPM warnings
2019-03-03 10:54:55 +02:00
Oren Cohen
68d91fb277
Remove osDelay from smoke test
2019-03-03 10:54:55 +02:00
Oren Cohen
5e4649bae8
Remove obsolete test
2019-03-03 10:54:54 +02:00
Oren Cohen
dfbc7b6b7a
Adapt partitons
2019-03-03 10:54:54 +02:00
Oren Cohen
aad114aa55
Genrerate SPM data
2019-03-03 10:54:54 +02:00
kegilbert
194fa129fb
Update recently added previous macro name uses in tests
2019-03-01 13:53:47 -06:00
Michal Paszta
c81f71b2de
Tests: check if recv returned too much data
2019-03-01 18:01:38 +02:00
Michael Schwarcz
3c0c5759bf
Regenerate mbed-spm files
2019-03-01 09:40:45 +02:00
Cruz Monrreal
befed111f5
Merge pull request #9668 from moranpeker/psa-init-attestation
...
PSA Initial Attestation service
2019-02-28 18:25:16 -06:00
Cruz Monrreal
e393c2dc0b
Merge pull request #9785 from c1728p9/default_to_us_ticker
...
Use us ticker for tickless on devs with wrapper
2019-02-28 18:25:01 -06:00
Cruz Monrreal
e6caa122cb
Merge pull request #9812 from kjbracey-arm/wait_ns
...
Add wait_ns API
2019-02-28 18:21:46 -06:00
Senthil Ramakrishnan
15cb4a4fee
Fix compiler flags for ARMC6 in sys stats test
2019-02-28 12:03:15 -06:00
Russ Butler
8d880bb63e
Skip deep sleep test when running from US ticker
...
Skip the systimer deep sleep test when running from the microsecond
ticker, since the microsecond ticker doesn't support operation in deep
sleep mode.
2019-02-28 10:57:00 -06:00
itayzafrir
b8bdaf9e9f
Fix acl test asymmetric encrypt decrypt
2019-02-28 10:29:53 +02:00
itayzafrir
31d202b3f6
Change error code handling of calls to psa_call
2019-02-28 10:29:52 +02:00
Maciej Bocianski
7ff689be20
Add USB mass storage test
2019-02-27 17:18:41 +01:00
itayzafrir
2918f74883
Free dynamic memory in test partition
2019-02-27 16:28:36 +02:00
itayzafrir
2227e33e5a
Add acl test - use other partitions' key - asymmetric encrypt decrypt
2019-02-27 16:28:36 +02:00
itayzafrir
5a7ed318ae
Add acl test - use other partitions' key - asymmetric sign verify
2019-02-27 16:28:36 +02:00
itayzafrir
db90606a34
Add acl test - use other partitions' key - aead
2019-02-27 16:28:36 +02:00
itayzafrir
b8079c3d09
Add acl test - use other partitions' key - cipher
2019-02-27 16:28:36 +02:00
itayzafrir
d1e61a0df4
Add acl test - use other partitions' key - mac
2019-02-27 16:28:35 +02:00
itayzafrir
200930d752
Refactor test partition helper function to create and generate a key
2019-02-27 16:28:35 +02:00
itayzafrir
2c1f0b37f2
Add acl test - use other partitions' key - manage key
2019-02-27 16:28:35 +02:00
itayzafrir
8c21f10696
Add acl test - create key same id different partitions
2019-02-27 16:28:35 +02:00
itayzafrir
9adda5b88e
Add acl test - open other partitions' key
2019-02-27 16:28:35 +02:00
itayzafrir
2146e74c84
Prepare for crypto access control tests
...
- Add a secure side test partition
- Add a proxy to communicate with the test partition
- Add main test file
2019-02-27 16:28:35 +02:00
Moran Peker
e819b23638
Fix attestation main to check PSA target before includes
2019-02-27 14:14:33 +02:00
Moran Peker
41bd381462
General fixes of spelling, newline, un needed code
...
-Correct spelling errors
-Add newline at end of file
-Remove un needed code
2019-02-27 14:14:27 +02:00
Moran Peker
e12f5eeaa7
Add ifdef TARGET_PSA and MBEDTLS_PSA_CRYPTO_C to test file
...
if not supported return error
2019-02-27 14:14:23 +02:00
Moran Peker
2117a26cb1
Get security lifecycle by psa_security_lifecycle_state function
...
-Add bug fix for psa_security_lifecycle_state function - PR #9745
-Remove lifecycle data from temp boot status data
-Update attesttation_partition_json file to use
PSA_PLATFORM_LC_GET and generate partition
code - auto generated files update
2019-02-27 14:14:17 +02:00
Moran Peker
4101ee92df
Add checks ,initialization,remove unneeded code and files license update
2019-02-27 14:14:14 +02:00
Moran Peker
636753b404
Attestation: Add a new define for attestation private key id
2019-02-27 14:14:13 +02:00
Moran Peker
8fc9c8fdab
Attestation: astyle fixs
...
Runing astyle over attestation file to pass CI
2019-02-27 14:14:11 +02:00
Moran Peker
a994499bf3
Atteststaion: Update header files
...
-Remove psa_initial_attesttaion.h
-Move psa_initial_attesttaion_api.h and psa_attest_inject_key.h into
inc folder
-Update include in test file
2019-02-27 14:14:11 +02:00
Moran Peker
22437fca7e
Attestation: Add test for initial attestation service
...
Add single test that check inject attestation key and attestation get token
2019-02-27 14:14:10 +02:00
Moran Peker
5f45b0af92
Attestation: aut- generated files by generate_partition_code.py
...
Atestation paration added.
2019-02-27 14:14:09 +02:00
Cruz Monrreal
4b13c8a212
Merge pull request #9768 from c1728p9/feature-hal-spec-usb-device
...
Bring USB Feature branch into master
2019-02-26 22:48:02 -06:00
Kevin Bracey
d2df5a03cb
Increase wait_ns test tolerance
2019-02-26 17:30:52 +02:00
Kevin Bracey
08a8f16e73
Add wait_ns timing test
2019-02-26 17:30:51 +02:00
Martin Kojtal
b08ddaad8b
Merge pull request #9794 from michalpasztamobica/greentea_tcpsocket_sigio
...
Refactor tcpsocket tests to use sigio and not to wait
2019-02-26 10:30:56 +01:00
Cruz Monrreal
044d0c9cb1
Merge pull request #9778 from michalpasztamobica/add_missing_wifi_config_params
...
Add missing wifi parameters to test configs
2019-02-25 17:30:36 -06:00
Michal Paszta
999273f7e5
Refactor tcpsocket tests to use sigio and not to wait
2019-02-25 15:33:09 +02:00
Russ Butler
6527cf2bad
Update files to include SPDX-License-Identifier
...
Update the header of all files to use a newer license template which
includes SPDX-License-Identifier.
2019-02-22 10:53:24 -06:00
Russ Butler
9f116d9f33
Applied more astyle fixes
2019-02-22 10:53:24 -06:00
Russ Butler
005df3559c
Applied suggested astyle fixes
2019-02-22 10:53:23 -06:00
Russ Butler
8d731561cf
Remove inclusion of mbed.h from USB
...
Remove mbed.h from USB files and fix the build errors this causes.
This is required to pass CI.
2019-02-22 10:53:23 -06:00
Filip Jagodzinski
4a4dcdb5b8
Tests: USB: Use astyle to format the test class
2019-02-22 10:53:23 -06:00
Filip Jagodzinski
38032453a5
Tests: USB: Fix 'endpoint halt' test
...
Abort all endpoint transfers before running the test again.
Use an updated vendor request to explicitly restart device reads.
2019-02-22 10:53:23 -06:00
Filip Jagodzinski
1ec448dbd0
Tests: USB: Add a README for Linux users
...
Explain how to overcome xHCI limitations in kernels prior to v4.17 and
successfully run USB tests.
2019-02-22 10:53:22 -06:00
Filip Jagodzinski
7db3a8a34a
Tests: USB: DTR fix for Linux hosts
...
A DTR line is used to signal that the host has configured a terminal and
is ready to transmit and receive data from the USB CDC/Serial device.
When this test suite is run with the use of a Linux host, a workaround has
to be used to overcome some platform specific DTR line behavior.
Every time the serial port file descriptor is opened, the DTR line is
asserted until the terminal attributes are set.
As a consequence, the device receives a premature DTR signal with a
duration of 200-500 us before the correct, long-lasting DTR signal set by
the host-side test script. (tested on the Linux kernel 4.15.0)
The solution is to wait for the first DTR spike, ignore it, and wait for
the correct DTR signal again.
2019-02-22 10:53:21 -06:00
Russ Butler
a4a3b3d429
Remove USB disconnect delay from Serial test
...
Remove the USB disconnect delay since there is no reason this is
needed. Failures which occur without this indicate a device or host
problem.
2019-02-22 10:53:21 -06:00
Russ Butler
930b29dd83
Tests: USB: Increase serial open retries
...
Double the number of attempts that are made to open a serial port.
This makes tests run more reliably on Windows.
2019-02-22 10:53:21 -06:00
Russ Butler
96154b577a
Tests: USB: Remove TX_DELAY_MS from serial test
...
Remove TX_DELAY_MS and all the places it was called since it is not
needed when DTR flow control is used.
2019-02-22 10:53:21 -06:00
Russ Butler
8f72f314d7
Tests: USB: Use DTR to make Serial tests reliable
...
Update the serial host test to set DTR low before opening a serial
port. Set DTR high once the serial object is ready. This ensures that
no data is sent by the device until the host is ready.
2019-02-22 10:53:21 -06:00
Filip Jagodzinski
31fe3ee11e
Tests: USB: Increas the size of RX CDC test data
...
This ensures the flow control is tested.
2019-02-22 10:53:21 -06:00
Filip Jagodzinski
53f7cd5561
Tests: USB: Fix Windows USB SN handling
2019-02-22 10:53:21 -06:00
Filip Jagodzinski
3d4d10191c
Tests: USB: Update code comments
2019-02-22 10:53:21 -06:00
Filip Jagodzinski
edf360d2fc
Tests: USB: Use SN generated by the host machine
2019-02-22 10:53:21 -06:00
Filip Jagodzinski
fc366291a2
Tests: USB: Correct reconnect delay
...
Setting to 1 ms to be on the safe side. The USB spec defines this delay
to be at least 200 us.
2019-02-22 10:53:21 -06:00
Filip Jagodzinski
2d4d111445
Tests: USB: Wait before transmitting data to host
...
Despite having ECHO and ECHOCTL POSIX lflags disabled by default by
pyserial, a delay is needed for host to properly handle data received
from USB serial/CDC device.
With no delay host would echo 0x00-0x31 characters prefixed with '^'.
2019-02-22 10:53:20 -06:00
Filip Jagodzinski
dbfd43a098
Tests: USB: Wait before closing host's port
...
This delay eliminates the possibility of the device detecting the port
being closed when still waiting for data.
2019-02-22 10:53:20 -06:00
Filip Jagodzinski
7b80cb6586
Tests: USB: Add Serial test for line coding change
2019-02-22 10:53:20 -06:00
Filip Jagodzinski
bf3aa29e0b
Tests: USB: Use the serial number to find device
...
Use the USB device SN instead of VID & PID to find the device port name
on the host system.
2019-02-22 10:53:20 -06:00
Filip Jagodzinski
07ffcb4269
Tests: USB: Fix USB reconnect tests for Win hosts
2019-02-22 10:53:20 -06:00
Filip Jagodzinski
7a4b36c37f
Tests: USB: Add tests for Serial class.
2019-02-22 10:53:20 -06:00
Filip Jagodzinski
3ed7d8139b
Tests: USB: Add tests for CDC class.
2019-02-22 10:53:20 -06:00
Russ Butler
cb6a6dbd20
Fix USB traceback during testing when wrong size
...
In the pyusb_basic host test check the length of control transfers
before comparing contents for equality.
2019-02-22 10:53:20 -06:00
Filip Jagodzinski
1f8bf46f2e
Tests: USB: Check ep buffer is released by abort
...
Validate that endpoint buffer is not used after a transfer has been
aborted.
2019-02-22 10:53:20 -06:00
Filip Jagodzinski
36d4c355a9
Tests: USB: Update endpoint halt test
...
Wait for a locally created Timer thread to finish before returning.
2019-02-22 10:53:19 -06:00
Filip Jagodzinski
c677bf7426
Tests: USB: Decrease the max data size for iso ep
...
Although the USB spec sets the upper limit on FS isochronous endpoint
payloads to 1023 B, this value is hard to test in practice. Moreover,
not all the targets Mbed OS supports (like NUCLEO_F207ZG) are able to
handle all the endpoints set to max.
2019-02-22 10:53:19 -06:00
Russ Butler
7563a0f03f
Update test to restart reads after unstall
...
After an endpoint is unstalled any pending transfers are terminated.
This patch re-starts any reads that were ongoing.
2019-02-22 10:53:19 -06:00
Filip Jagodzinski
27bd1656b1
Tests: USB: Update ep callbacks
...
Endpoint callbacks no longer have endpoint as a param. This update was
introduced in #7267 .
2019-02-22 10:53:19 -06:00
Filip Jagodzinski
c12e2d15f5
Tests: USB: Add data toggle test
2019-02-22 10:53:19 -06:00
Filip Jagodzinski
ff8a9b6ae8
Tests: USB: Update endpoint tests
...
Fix the host script issues present on Windows machines.
Add 0 B payload size to bulk endpoints test.
Update halt and abort tests according to PR comments.
Add an explicit request to start reading on OUT endpoints.
2019-02-22 10:53:19 -06:00
Filip Jagodzinski
62dc95f60a
Tests: USB: Generic: Update documentation
2019-02-22 10:53:19 -06:00
Filip Jagodzinski
686126b8ea
Tests: USB: Generic: Add basic endpoint tests
2019-02-22 10:53:19 -06:00
Filip Jagodzinski
79376c6f00
Tests: USB: Add device config files for Zadig
...
Zadig is a tool used to install generic USB drivers on Windows machines.
These drivers are necessary to run USB device test suite on Windows
hosts.
2019-02-22 10:53:18 -06:00
Russ Butler
799cde0fc3
Remove endpoint parameter from USB callbacks
...
Remove the endpoint parameter from endpoint callbacks. This
information is redundant because endpoints are known at
construction time because they must be in the configuration
descriptor.
2019-02-22 10:53:18 -06:00
Russ Butler
793044eb26
Fix various USB warnings
...
Fix the following warnings:
-[Warning] USBTester.cpp@45,0: #1299-D: members and base-classes will
be initialized in declaration order, not in member initialisation
list order
-[Warning] USBTester.h@41,0: #1300-D: ~USBTester inherits implicit
virtual
-[Warning] USBAudio.cpp@345,0: #1035-D: single-precision operand
implicitly converted to double-precision
-[Warning] USBHID.cpp@29,0: #1300-D: ~AsyncSend inherits implicit
virtual
-[Warning] USBHID.cpp@61,0: #1300-D: ~AsyncRead inherits implicit
virtual
-[Warning] USBHID.cpp@93,0: #1300-D: ~AsyncWait inherits implicit
virtual
-[Warning] EndpointResolver.cpp@125,26: '<<' in boolean context, did
you mean '<' ? [-Wint-in-bool-context]
2019-02-22 10:53:17 -06:00
Maciej Bocianski
d66e576227
USB basic test documentation update
2019-02-22 10:53:15 -06:00
Maciej Bocianski
fee14771e9
USB basic test update
...
disable suspend/resume test
disable sync frame test
improve reset test
2019-02-22 10:53:15 -06:00
Maciej Bocianski
bcfe96b83c
Update usb test to connect and block itself
...
Update the basic usb test so it does blocking itself since blocking
connect was removed from USBDevice.
2019-02-22 10:53:15 -06:00
Russ Butler
9f94a5fc56
Fix typo in USBTester.h
...
Fix the spelling of product_release.
2019-02-22 10:53:15 -06:00
Maciej Bocianski
12c91c3b7e
pyusb_basic test update
...
test code refactoring
align test to use device multiconfiguration
2019-02-22 10:53:14 -06:00
Maciej Bocianski
e85d5a33cd
pyusb_basic test add helper functions
2019-02-22 10:53:14 -06:00
Maciej Bocianski
972fee6143
pyusb_basic test formatting fixes
2019-02-22 10:53:14 -06:00
Maciej Bocianski
9b4970342b
Extend USB test class configuration
2019-02-22 10:53:14 -06:00
Russ Butler
6bb6d6fb42
Explicitly specify USBPhy used for testing
...
Add a parameter to the USBPhy class so mock or wrapper USBPhy classes
can be used.
2019-02-22 10:53:14 -06:00
Russ Butler
a341a7c258
Make USB disconnect + connect time explicit
...
Create the define MIN_DISCONNECT_TIME_US to be used as the amount of
time that must pass between connect and disconnect for the host to
reliably detect reconnection. Replace the wait calls delaying for this
value to wait_us to indicate the precision required. Finally, remove
the unnecessary calls to wait_ms in
repeated_construction_destruction_test.
2019-02-22 10:53:14 -06:00
Maciej Bocianski
ff3b0c1623
code formatting fixes
2019-02-22 10:53:13 -06:00
Maciej Bocianski
69a095cf3e
USBDevice - add multiconfiguration support
2019-02-22 10:53:13 -06:00
Maciej Bocianski
c2c3e01c36
USBDevice - add support for deconfiguration
2019-02-22 10:53:13 -06:00
Maciej Bocianski
e4ffc6dea0
USB reset test fix
2019-02-22 10:53:13 -06:00
Russ Butler
50adb03f88
Fix USB tests
...
Change the direction used in set interface to match the USB
specification. This allows USB tests to pass on OSX.
2019-02-22 10:53:13 -06:00
Russ Butler
0a787e7fe9
Skip USB reset tests on OSX
...
OSX machines don't allow you to reset USB devices. Skip this test on
OSX so testing can still be used.
2019-02-22 10:53:13 -06:00
Maciej Bocianski
49504d66ca
Fix for USB set_clear_feature_test for OSX
2019-02-22 10:53:13 -06:00
Russ Butler
f31eb68ec5
Update USBTester product name
...
Change the name reported by USBTester from CDC DEVICE to
MBED TEST DEVICE.
2019-02-22 10:53:12 -06:00
Maciej Bocianski
33bef331e6
USB generic tests
2019-02-22 10:52:35 -06:00
Russ Butler
aedeee068a
Update USBTester for the new USB API
...
Update the class USBTester so it works with the new zero-copy
USBDevice API.
2019-02-22 10:52:34 -06:00
Russ Butler
de12bb57fa
Update USBTester for simplified read handling
...
Remove read_start and replace read_finish with read to match the new
USBDevice API.
2019-02-22 10:52:33 -06:00
Russ Butler
f9f12766d8
Add USBDevice test code
...
Add a USB test and the class USBTester.cpp to go along with it.
2019-02-22 10:52:32 -06:00
Michal Paszta
19c6732105
Add missing wifi parameters to test configs
2019-02-22 10:13:14 +02:00
Oren Cohen
49aae7b43e
Update secure binaries
2019-02-22 02:04:00 +02:00
Cruz Monrreal
870bd05904
Merge pull request #9708 from davidsaada/david_protected_storage
...
Implement PSA protected storage & restructure PSA storage implementation
2019-02-21 17:30:56 -06:00
David Saada
41eb5cbfd9
Implement PSA protected storage & restructure PSA storage implementation
...
- Move all PSA storage code under psa/storage directory
- Create a global PSA error codes header, eliminating ITS specific ones
- Create a common header file for PSA storage type definitions,
eliminating ITS specific ones
- Create a common implementation for PS & ITS
- Implement protected storage feature
- Change ITS test to be common to PS as well
2019-02-21 20:58:59 +02:00
Volodymyr Medvid
b0a33273ff
Correctly include EventQueue.h
...
There are two EventQueue.h in mbed-os codebase:
events/EventQueue.h
features/FEATURE_BLE/ble/pal/EventQueue.h
By accident, `mbed compile` generates includes.txt with the correct
order of include search paths. This is not the case for the CMake
exporter: targets with FEATURE_BLE enables fail to compile with errors:
mbed-os/features/cellular/framework/AT/ATHandler.h:99:60: error:
'events' has not been declared
Update all places to always include either "events/EventQueue.h"
or "ble/pal/EventQueue.h": to always find the correct header.
2019-02-21 17:59:05 +02:00
Martin Kojtal
dbd92c746b
Merge pull request #9387 from tymoteuszblochmobica/Sockets
...
Multihoming initial release
2019-02-21 13:50:03 +01:00
Tymoteusz Bloch
641189c357
Multihoming change parameter orded in gethostbyname
2019-02-20 14:37:33 +02:00
Jaeden Amero
dfab4de4cf
crypto: test: Use new PSA error codes
...
The PSA Framework and PSA Crypto error code names have been unified and
renamed in some cases. Use the new unified names.
2019-02-20 11:31:30 +02:00
Martin Kojtal
7f4475d924
Merge pull request #9736 from 0xc0170/fix_licenses_files
...
tools/test/cmsis: add license header
2019-02-20 09:38:55 +01:00
Cruz Monrreal
b59b8170a6
Merge pull request #9698 from michalpasztamobica/netsocket_documentation_cleanup
...
Netsocket documentation cleanup
2019-02-19 15:34:26 -06:00
Cruz Monrreal
4c04771c5d
Merge pull request #9653 from kfnta/tfm_src_integ
...
TF-M sources integration to Mbed-OS
2019-02-19 15:28:44 -06:00
Cruz Monrreal
feae56eea1
Merge pull request #9493 from RonEld/add_platform_initialization_in_trng_test
...
Initialize platform in trng test
2019-02-19 15:27:40 -06:00
Cruz Monrreal
4cbcc36c3c
Merge pull request #9730 from michalpasztamobica/tlssocketsimultaneous_temporary_removal
...
Greentea: Remove TLSSocket_simultaneous test
2019-02-19 14:56:02 -06:00
Seppo Takalo
00feb5313a
Update copyright years
2019-02-19 17:39:46 +02:00
Tymoteusz Bloch
49141376ee
Multihoming initial release
...
Added Multihoming feature to LWIP (ability to use more than one network interfaces) for increasing networking reliability.
This involves:
LWIP interface
LWIP IP routing
DNS storage
Sockets (bind to interface name possibility)
possibility to add non default network interface
cellular middleware modifications if cellular connection is used
2019-02-19 17:39:46 +02:00
Michael Schwarcz
60c6740c88
Build SPM tests only for MBED_SPM targets
2019-02-19 15:19:05 +02:00
Martin Kojtal
31da50e8fa
Merge pull request #9718 from michalpasztamobica/greentea_tcpsocket_suite_timeout
...
Greentea tests: user-configurable timeouts
2019-02-18 14:15:39 +01:00
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
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
Cruz Monrreal
78d6018ecc
Merge pull request #8745 from kfnta/feature-new-target-future-sequana-psa
...
Add new target future sequana PSA
2018-12-06 13:13:36 -06:00
Oren Cohen
935f2bdfbc
Correct behavior of PSA code generator
...
* Don't generate files if a test does not contain additional partitions
2018-12-06 18:17:09 +02:00