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
Oren Cohen
cb58b34581
Prebuilt images
2018-12-06 11:33:35 +02:00
Oren Cohen
2df2fc7d29
Fix PSA-HAL, TRNG, TLS tests
2018-12-06 01:22:50 +02:00
Oren Cohen
51a462aeea
Use entropy injection on any NVseed platform or PSA dual-core/v8
2018-12-05 20:08:35 +02:00
Oren Cohen
870bebc9ac
fix mbedmicro-rtos-mbed tests
2018-12-05 19:59:54 +02:00
Oren Cohen
86c7a59b36
Basic test can run on single v7's
2018-12-05 15:37:52 +02:00
Alex Volinski
d614fd8955
The inject test can run also on single core CPU's such as K64F
2018-12-04 17:07:28 +02:00
Oren Cohen
c3bd6f12d2
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-04 17:07:28 +02:00
Martin Kojtal
0df1d49ba1
Merge pull request #8861 from VeijoPesonen/bugfix-mbedgt_wifi_scan_one_ssid
...
Bugfix-tests-network-wifi drop the assumption about more than one SSID
2018-12-03 13:34:48 +01:00
Martin Kojtal
ba6b36cb3b
Merge pull request #8754 from itayzafrir/mbed-crypto-tests
...
Mbed Crypto Tests
2018-11-30 14:54:02 +01:00
Oren Cohen
01301387f8
Run SPM code generator
2018-11-28 14:40:01 +02:00
Oren Cohen
45bd4f305a
Add SPM code generation test to Travis-CI
2018-11-28 14:38:44 +02:00
Martin Kojtal
52822cb8af
Merge pull request #8871 from c1728p9/mpu
...
MPU API (Reopened)
2018-11-28 10:28:32 +01:00
Martin Kojtal
e62abd8aee
Merge pull request #8804 from mohammad1603/inject_entropy_spm
...
PSA Crypto SPM
2018-11-28 09:40:31 +01:00
Martin Kojtal
e69aa15aea
Merge pull request #8744 from kfnta/psa_spm_base
...
PSA Secure partition manager and services
2018-11-27 15:26:38 +01:00
Netanel Gonen
5f36447eb6
do not run crypto init SPM test if not SPM target
2018-11-27 15:29:14 +02:00
Alexander Zilberkant
daeb19d167
Fix entropy_inject test compilation
...
Include to crypto.h file will fail on targets without TARGET_PSA support
Moving prerequisites check before include.
2018-11-27 11:57:01 +02:00
Alexander Zilberkant
abf1ccc722
Disable crypto_init tests when Mbed Crypto is OFF
2018-11-27 11:57:00 +02:00
mohammad1603
88f4f48fac
Astyle fixes for the source
...
Used running: astyle -n --options=.astylerc
2018-11-27 11:56:57 +02:00
Netanel Gonen
59c3c9fff7
crypto init with multiple client guard & tests
2018-11-27 11:56:48 +02:00
Netanel Gonen
73cb013ac6
skip inject entropy test if they not supported
2018-11-27 11:56:43 +02:00
Mohammad AboMokh
73ebe1a247
Fix inject entropy tests
...
* Call greentea_case_teardown_handler() and greentea_case_setup_handler() instead of return STATUS_CONTINUE
* Introduce and use new macro MBEDTLS_PSA_INJECT_ENTROPY_MIN_SIZE
2018-11-27 11:56:37 +02:00
Mohammad AboMokh
72037747b1
Update auto generated SPM files
2018-11-27 11:56:35 +02:00
Mohammad AboMokh
1325084b1a
Add tests to PSA entropy injection
2018-11-27 11:56:33 +02:00
Oren Cohen
f4581faab0
Create a new partition for the crypto service
...
The following files initially were taken
from https://github.com/ARMmbed/psa-crypto-spm/releases/tag/spm-crypto-5.11
* crypto_platform_spe.h
* crypto_struct.h
* crypto_struct_ipc.h
* psa_crypto_spm.c
* crypto_spe.h
* crypto_partition_psa.json
The rest of the files were autimatically generated
by tools/spm/generate_psa_partition.py
2018-11-27 11:56:29 +02:00
itayzafrir
1431e216ad
Skip Mbed Crypto tests when when Mbed Crypto is OFF
2018-11-27 11:56:25 +02:00
Oren Cohen
3e88dcf177
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-11-27 11:54:10 +02:00
Russ Butler
7cdfbee28b
Fix asyle problems
...
Run astyle to fix CI failures.
2018-11-27 09:29:33 +00:00
Russ Butler
caa7b93921
Rename lock functions and classes
...
Invert the name of the lock functions and classes so you are not
locking a negative.
2018-11-27 09:29:32 +00:00
Russ Butler
a7bf312106
Skip MPU fault tests for ARMv8-M
...
For enhanced security ARMv8-M firmware doesn't allow the hardfault
handler to be hooked by non-secure code. Because of this there is no
way to recover from the MPU fault tests. This PR disables those tests
until hardfault recovery is supported by secure firmware.
2018-11-27 09:29:32 +00:00
Russ Butler
47ac8ef3f0
Fix MPU test when MemManage fault enabled
...
Hook both the HardFault and the MemManage IRQs since it is up to the
target to determine which fault is enabled.
2018-11-27 09:29:32 +00:00
Russ Butler
24f002d6dc
Clear caches before RAM execution in MPU test
...
Ensure that code written to ram is flushed and that caches are cleared
before attempting to executing from ram. This fixes CI failures on the
MPU test when it is built for Cotex-M7 devices such as the
NUCLEO-F746ZG.
2018-11-27 09:29:32 +00:00
Russ Butler
1821d37621
Overhaul MPU for new requirements
...
Make the following changes:
-Allow a vector specific ARM MPU driver by defining MBED_MPU_CUSTOM
-Allow ROM address to be configured for ARMv7-M devices by
setting the define MBED_MPU_ROM_END
-Add ROM write protection
-Add new functions and lock
-enable at boot
-disable during flash programming
2018-11-27 09:29:32 +00:00
Russ Butler
7283f9b0ee
Add a formal HAL specification for the MPU API
...
Add a formal HAL specification consisting of:
-defined and undefined behavior
-test descriptions
-enable doxygen for MPU
2018-11-27 09:29:32 +00:00
Russ Butler
d00f59fdc8
Rework MPU layout for future changes
...
Create a dedicated MPU directory for standard Arm MPU implementations
in preparation for the Arm v8m MPU. Replace MBED_MPU_ENABLED with
DEVICE_MPU to align with the porting layer of other HAL APIs.
2018-11-27 09:29:31 +00:00
Russ Butler
c0ff98614a
Disable the MPU when flashing
...
When programming flash using the FlashIAP API allow execution from
ram. Many devices require flashing to be done from RAM.
Also allow execution from ram when running the low level flash tests.
2018-11-27 09:29:31 +00:00
Russ Butler
8e2fd1a5cc
Add an MPU test
...
Test that the MPU correctly stops execution of memory in the stack
region, heap region, data region and bss region. Also check that the
MPU can be enabled, disabled and freed.
2018-11-27 09:29:31 +00:00
Oren Cohen
aea9713c89
Doxygen fixes in tests
2018-11-27 09:16:47 +02:00
Oren Cohen
773ac8dd95
CR fixes
2018-11-27 09:16:45 +02:00
Alexander Zilberkant
2b9f94a0ad
Remove dead code
2018-11-27 09:16:45 +02:00
Oren Cohen
6cd4f7789f
Add Version to SPM templates and generator
2018-11-27 09:16:43 +02:00
Oren Cohen
53be3cccfc
Fix the SPM HAL test
2018-11-27 09:16:41 +02:00
Alexander Zilberkant
9cc017fd48
Normalize license headers
...
- add SPDX license identifier
- add missing license headers
- update year in license headers
2018-11-27 09:16:40 +02:00
Alexander Zilberkant
aea01a86f6
astyle changes
2018-11-27 09:16:38 +02:00
Oren Cohen
dd73fa689c
PSA SPM
...
* Intorduce PSA-SPM to mbed-os
* Add SPM tests (for PSA targets)
* Add PSA PRoT internal storage Secure implementation
* Integrate SPM into the boot proccess
* PSA manifest data generator
* Introduce PSA targets skeleton to mbed-os
* Add artifact delivery to the tools
2018-11-27 09:16:35 +02:00
itayzafrir
7fa969f53d
Add license
2018-11-26 19:23:17 +02:00
itayzafrir
c3a8659c0f
Add mbed-crypto key derivation test
2018-11-26 19:23:16 +02:00
itayzafrir
680d9830d1
Add mbed-crypto asymmetric sign verify test
2018-11-26 19:23:16 +02:00
itayzafrir
ff3a36abcb
Add mbed-crypto symmetric cipher encrypt decrypt test
2018-11-26 19:23:15 +02:00
itayzafrir
29bcb2e327
Add mbed-crypto hash verify test
2018-11-26 19:23:14 +02:00
itayzafrir
118f353e17
Add mbed-crypto asymmetric encrypt decrypt test
2018-11-26 19:23:14 +02:00
itayzafrir
f81bb47ffd
Introduce mbed-crypto tests
...
Add tests setup code and random bytes generator test.
2018-11-26 19:23:13 +02:00
deepikabhavnani
c272377a81
Make sure no memory overhead if statistics are disabled
2018-11-26 09:42:45 -06:00
deepikabhavnani
068f2d14c0
Resolve IAR build issue
...
IAR not able to assign default zero value in array and complaints of
internal error as below:
[ERROR] Internal error: [Front end]: assertion failed at:
"..\..\Translator\compiler_core\src\parser\edg\decl_inits.c", line 2031
2018-11-26 09:42:45 -06:00
deepikabhavnani
117eb0bc87
Add socketstats stub functions for unittest and addressed reviews
2018-11-26 09:42:50 -06:00
Deepika
f6c1a40b29
Add config options for socket statistics
...
1. MBED_CONF_NSAPI_SOCKET_STATS_ENABLE to enable the statistics
2. MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT max sockets statistics cached
2018-11-26 09:42:45 -06:00
Deepika
a851df66e3
Code/bug after testing
...
1. Fixing astyle and docs
2. Extra mutex lock was removed
3. Bytes are updated when send/recv > 0 and not in case of -ve error
4. Review comments
5. Guard statistics implementation in test with MBED_NW_STATS_ENABLED
2018-11-26 09:42:45 -06:00
Deepika
eec54a0fc9
Update tcp test cases to verify network socket statistics
...
Cases Updated are:
1. TCPSOCKET_ECHOTEST_NONBLOCK
2. TCPSOCKET_OPEN_CLOSE_REPEAT
3. TCPSOCKET_OPEN_LIMIT
2018-11-26 09:42:45 -06:00
Deepika
e7ea2927fc
Update udp test cases to verify network socket statistics
...
Cases Updated are:
1. UDPSOCKET_ECHOTEST_NONBLOCK
2. UDPSOCKET_OPEN_CLOSE_REPEAT
3. UDPSOCKET_OPEN_LIMIT
2018-11-26 09:42:45 -06:00
Martin Kojtal
fdca1e3578
Merge pull request #8730 from kfnta/its_kvstore_single_core
...
Add a new PSA Internal Trusted Storage APIs
2018-11-26 11:54:08 +01:00
Michael Schwarcz
aa7e1ce0e5
Fix its tests in non-psa targets
2018-11-25 09:57:23 +02:00
Alexander Zilberkant
9b13e240c3
Add SPDX license identifier
2018-11-25 09:57:23 +02:00
Alexander Zilberkant
9fa1f5a3d5
astyle changes
2018-11-25 09:57:22 +02:00
Danny Shavit
53728e45b7
Add a new PSA Internal Trusted Storage APIs
2018-11-25 09:57:22 +02:00
Martin Kojtal
c873dc06f2
Merge branch 'ONME-3983' of https://github.com/mtomczykmobica/mbed-os into dev_rollup
2018-11-24 21:14:47 +00:00
Martin Kojtal
b16569dc3f
Merge pull request #8838 from 0xc0170/dev_rollup
...
Rollup v2 for 5.11rc1
2018-11-24 21:37:02 +01:00
Veijo Pesonen
386915deb8
Tests-network-wifi organize test cases for clarity
2018-11-24 12:28:14 +02:00
Veijo Pesonen
50bc2e9280
Bugfix - drops the assumption that there is more than SSID in vicinity
2018-11-24 12:20:07 +02:00
Martin Kojtal
52aea31655
Merge pull request #8702 from SenRamakri/sen_CrashReportingImpl
...
Crash Reporting implementation
2018-11-23 20:24:53 +01:00
Martin Kojtal
80ed251c9c
Merge branch 'fix_travis_astyle_files' of https://github.com/0xc0170/mbed-os into dev_rollup
2018-11-23 18:38:13 +00:00
Martin Kojtal
36bc2efdec
Merge branch 'greentea_improvements' of https://github.com/michalpasztamobica/mbed-os into dev_rollup
2018-11-23 18:37:52 +00:00
Martin Kojtal
5b42e2886f
Merge pull request #8607 from aashishc1988/ram_rom_fetch
...
Fetch ram/rom start/size
2018-11-22 10:49:50 +01:00
Martin Kojtal
c1d00df79a
test: fix coding style
2018-11-20 14:50:56 +00:00
Martin Kojtal
00c5b56e32
Merge pull request #8683 from NXPmicro/feature-qspi-lpc546xx
...
Feature qspi lpc546xx
2018-11-19 13:11:44 +00:00
Michal Paszta
e53ee631f9
Greentea netsocket and network tests improvements
...
Added smarter rounding of times in recv_timeout and increased the delta by one, to allow "off-by-one" errors.
Reverted commit 88eea6a
, reducing TESTS_TIMEOUT back to 480.
Introduced a 100ms timeout for waiting on asynchronous DNS resolution.
Improved error handling on disconnects.
2018-11-19 08:58:14 +01:00
Senthil Ramakrishnan
f59b99d889
Removing support for printing error-report after reboot and other minor fixes
2018-11-18 22:42:37 -06:00
Senthil Ramakrishnan
423b52e1c3
Fix crc calculation error, code-style issues and other fixes
2018-11-16 17:24:52 -06:00
Senthil Ramakrishnan
4ec30e3e8f
Added greentea test
2018-11-16 14:00:00 -06:00
Aashish chaddha
329c553595
ifdef ram/rom size/start in case they dont exist
2018-11-16 09:38:26 -06:00
Mahesh Mahadevan
6bd0be186b
Add MT25Q Flash config
...
Signed-off-by: Maciej Bociański <maciej.bocianski@arm.com>
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-16 08:15:48 -06:00
Mahesh Mahadevan
c21c599b25
Update the QSPI unit test for NXP LPC546XX board
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-16 07:56:30 -06:00
Cruz Monrreal II
5c1c7bf71f
Merge branch 'fix_astyle_error' of ssh://github.com/0xc0170/mbed-os into rollup-b.1
2018-11-15 18:26:09 -06:00
Marcin Tomczyk
d3812f3740
ONME-3983 Fix the defects found in IPV4 testing against packet dropping
2018-11-15 13:47:43 +01:00
Martin Kojtal
ef728d01dc
tests: fix doxygen style
2018-11-15 07:20:12 +00:00
Martin Kojtal
501bc29426
rtc time test: fix coding style
2018-11-15 07:20:09 +00:00
Deepika
e3c4dae875
Add tests to verify RAM/ROM sizes
2018-11-14 09:51:53 -06:00
Marcin Tomczyk
29b7c50e30
ONME-3852 Check that test cases disconnect at the end
2018-11-12 11:29:58 +01:00
Cruz Monrreal
9d95d46d6c
Merge pull request #8591 from 0xc0170/fix_coding_style_features
...
features: fix coding style
2018-11-09 09:40:56 -06:00
Cruz Monrreal
e635613b28
Merge pull request #7849 from TacoGrandeTX/fix_rtc_settime
...
Low power timer needs to be reset when setting time
2018-11-08 10:50:04 -06:00
Cruz Monrreal
3046e31349
Merge pull request #8589 from davidsaada/david_flash_erase_value
...
Support erase value in Flash HAL drivers, FlashIAP and block devices
2018-11-08 10:06:58 -06:00
Martin Kojtal
937d68f0fd
Merge pull request #8645 from mtomczykmobica/ONME-3733
...
Detect xinetd service pattern and generate correct pattern (ONME-3733)
2018-11-08 15:19:19 +01:00
Martin Kojtal
28a5906479
tests: fix coding style
2018-11-08 08:54:34 +00:00
David Saada
542744d03c
Support erase value in Flash HAL drivers, FlashIAP and block devices
2018-11-07 14:23:07 +02:00
Marcin Tomczyk
5eabfabc51
ONME-3733 detect xinetd service pattern and generate correct pattern
2018-11-07 13:18:04 +01:00
RFulchiero
0de5ab2686
Add a protected HAL set_time() test
...
When DEVICE_LPTICKER is defined set_time() only works correctly on
the first call. This test calls set_time() twice and ensures the
time set by both calls is correct. This test only runs if
DEVICE_RTC or DEVICE_LPTICKER is defined.
2018-11-01 17:17:56 -05:00
Seppo Takalo
e3623b91fa
Increase EMAC test timeout to 1400 seconds
2018-10-31 17:14:05 +02:00
Cruz Monrreal
5ed07c2dd4
Merge pull request #8328 from kjbracey-arm/noreturn
...
Error path tightening: use MBED_NORETURN; add+use core_util_atomic_flag
2018-10-29 20:49:54 -05:00
Cruz Monrreal
c9eaddd7e0
Merge pull request #8487 from kegilbert/mbed_mem_trace_config_patch2
...
Update mbed_mem_tracing config option
2018-10-29 18:53:25 -05:00
Kevin Bracey
0b27736536
Remove sleep manager tests that trigger mbed_error
...
Intercepting mbed_error will be too hard after mbed_error becomes
[[noreturn]], so remove tests that do this.
2018-10-29 13:58:05 +02:00
Kevin Bracey
1397eb5110
Disable RTOS error tests if error traps are enabled
...
It will be too hard to try to intercept and continue from a trapped
error once error functions are marked [[noreturn]], so make the error
return tests conditional on error trapping being disabled.
2018-10-29 11:56:17 +02:00
kegilbert
a2ac895c37
This reverts commit 9b53d1256fb358407acbaf81c70b71d937b1f7cd.i
...
Move the memory tracing enabled macro to a config option but
revert the !defined -> #if changes to no longer cause breaking
changes.
2018-10-26 17:35:33 -05:00
Cruz Monrreal II
14ce8f2721
Merge branch 'fix-freestanding-tests-module' of ssh://github.com/pan-/mbed into rollup
2018-10-26 11:42:59 -05:00
Martin Kojtal
f90f1fc01d
sleep test: fix coding style
2018-10-25 09:58:18 +01:00
Martin Kojtal
bbfa322afb
tests: fix astyle
2018-10-25 09:58:17 +01:00
Vincent Coubard
85bd15ce6e
Doxygen: Move free standing HAL tests module inside their related HAL module.
2018-10-24 14:42:29 +01:00
Martin Kojtal
5bed419dd8
Merge pull request #8505 from SeppoTakalo/continue_socket_tests
...
Continue Socket and WiFi tests even on test failure.
2018-10-24 09:40:22 +01:00
Cruz Monrreal
0db896036c
Merge pull request #8485 from NXPmicro/feature-qspi-kinetis
...
Feature qspi kinetis
2018-10-23 12:38:11 -05:00
Cruz Monrreal
5b7f4a3ed8
Merge pull request #8476 from VeijoPesonen/tc-ipcore-wifi-wifi_connect
...
mbedgt-network-wifi WIFI CONNECT TC - check that SSID is cached
2018-10-23 09:07:25 -05:00
Seppo Takalo
66a2101006
Continue Socket and WiFi tests even on test failure.
...
Purpose is to run full set of testcases on each run.
Testcases should contain proper cleanup handlers so that they are
independent.
2018-10-23 13:58:21 +03:00
Cruz Monrreal
b09a843c44
Merge pull request #8482 from adustm/mbedtls_test_fix_typo
...
[tests-mbedtls-multi] Fix typo in the printf (no functional change)
2018-10-22 11:40:15 -05:00
Cruz Monrreal
1123c2bf9d
Merge pull request #8377 from mprse/fix_for_issue_8368
...
Fix for issue #8368
2018-10-22 11:32:42 -05:00
Mahesh Mahadevan
86ae041b7a
Update the QSPI unit test for Freescale boards
...
1. Add flash config files.
2. Flash used is MX25U3235F, include information for this
device in the flash config file
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-19 10:34:12 -05:00
adustm
e775990c6a
Fix typo in the printf (no functional change)
2018-10-19 14:15:53 +02:00
Veijo Pesonen
f9a723e8ad
mbedgt-network-wifi WIFI CONNECT TC - check that SSID is cached by driver
2018-10-19 09:09:34 +03:00
Veijo Pesonen
0823b3ef2d
mbedgt-network-wifi WIFI CONNECT TC - check for empty passwd
2018-10-18 14:12:53 +03:00
Deepika
9db31d299b
Resolve build issues in test
...
mbed.h was added in test, via greentea and utest header files. 'mbed.h' is removed
from header files and required header file and namespace is added to CPP/C files
2018-10-16 11:50:16 -05:00
Cruz Monrreal
ec03df4823
Merge pull request #7980 from kjbracey-arm/thread_deprecations
...
Clean up rtos::Thread deprecation warnings
2018-10-15 10:09:55 -05:00
Cruz Monrreal
8bf51be75a
Merge pull request #8230 from mprse/issue_8214_fix
...
Fix for issue #8214
2018-10-12 21:24:08 -05:00
Cruz Monrreal
6d7b655b87
Merge pull request #8331 from deepikabhavnani/getc_fix
...
Stream: add necessary flushes, removing unneeded IAR workaround
2018-10-12 08:59:16 -05:00
Kevin Bracey
1ef213ec89
Clean up Thread deprecation warnings
...
Static Thread methods and signal methods have been deprecated. Remove
all references in the main code, and most of the tests. Some tests of
the deprecated APIs themselves remain.
2018-10-12 14:57:13 +03:00
Anna Bridge
24857d0f91
Merge pull request #5285 from c1728p9/minimum_requirements_test
...
Update devices to have minimum 2K RAM and heap, also added test
2018-10-12 11:04:57 +01:00
Przemyslaw Stekiel
4a3bcee602
tests-mbed_hal-rtc_time: use templates instead of global variable
2018-10-11 11:59:01 +02:00
Przemyslaw Stekiel
8d57429de4
tests-mbed_hal-rtc_time: alocate required test data on stack
...
This is fix for issue 8368.
Test is causing some problems on `REALTEK_RTL8195AM` and `ARM` compiler. There is some kind of memory issue. Probably there is not enough memory space for global data provided by the test. Data definitions have been moved into test function body so, they will land on stack. With this fix the test works on `REALTEK_RTL8195AM/ARM`.
2018-10-11 11:58:47 +02:00
Cruz Monrreal
5a47318bc2
Merge pull request #8298 from SeppoTakalo/wifi_reset_channel
...
Reset channel settings back to default
2018-10-10 08:44:39 -05:00
Filip Jagodzinski
3fcd8c4a3b
Tests: SleepManager: Fix sleep_auto test
...
Use us & lp tickers directly, without the common ticker layer.
2018-10-09 17:52:45 +02:00
Filip Jagodzinski
9e34f76b4e
Tests: Sleep: Extract test utility functions
...
Move a few of utility functions so other tests can use them.
2018-10-09 17:52:44 +02:00
Filip Jagodzinski
f415af8147
Tests: SleepManager: Update test_check() test
...
Increase delta to 500 us. This value is still short enough to detect
incorrect behavior of the sleep_manager_can_deep_sleep_test_check() fun,
but allows the targets with low LP timer accuracy to pass, i.e.
NUCLEO_F429ZI.
2018-10-09 17:52:43 +02:00
Filip Jagodzinski
17e29618e6
Tests: SleepManager: Fix test suite setup
...
Use ticker init functions from upper HAL layer to allow proper handling
of ticker overflows.
2018-10-09 17:52:43 +02:00
Filip Jagodzinski
83745b99c5
Tests: SleepManager: Add test for new check() fun
...
sleep_manager_can_deep_sleep_test_check() is intended to be used in test
code.
2018-10-09 17:52:43 +02:00
Filip Jagodzinski
43c22e4977
Tests: SleepManager: update concurrent test docs
2018-10-09 17:52:42 +02:00
Filip Jagodzinski
f2c222be15
Tests: SleepManager: extend test suite
...
New test cases:
* "deep sleep lock/unlock"
* "deep sleep unbalanced unlock"
* "deep sleep locked USHRT_MAX times"
* "deep sleep locked more than USHRT_MAX times"
* "sleep_auto calls sleep/deep sleep based on lock"
2018-10-09 17:52:42 +02:00
Cruz Monrreal
15879f5273
Merge pull request #8241 from SeppoTakalo/fix_wifi_connect_params_fail
...
Fix WIFI_CONNECT_PARAMS_CHANNEL_FAIL testcase.
2018-10-08 10:16:37 -05:00
Cruz Monrreal
506dfca8d0
Merge pull request #8235 from VeijoPesonen/mbedgt-netsocket-tc-fixes
...
Mbedgt netsocket tc fixes
2018-10-08 10:14:52 -05:00
Deepika
f79a354311
Replace fflush to fseek before writes
...
You are allowed in POSIX / ANSI C to read and write on the same stream, but you
have to do an fseek in between read and write call (getc->fseek->putc)
Thanks @Alex-EEE for sharing the fix: https://github.com/ARMmbed/mbed-os/pull/7749
Added test case for verification of the behavior
2018-10-05 14:29:15 -05:00
Martin Kojtal
9d39f233d2
Merge pull request #8257 from mprse/sleep_test_nrf52_dk_fix
...
tests-mbed_hal-sleep: finish UART transmission before sleep test
2018-10-05 17:27:39 +02:00
Martin Kojtal
8adb8c3049
Merge pull request #7917 from deepikabhavnani/heap_overhead
...
Add overhead count in heap stats
2018-10-05 15:29:18 +02:00
deepikabhavnani
5f5882830f
Add `overhead_size` element to get the overhead of stats
...
Heap statistics are used for analysing heap stats, but it doesn't tell anything
about real heap usage or malloc overheads. Adding `overhead_size` element
will help users to get the real heap usage.
2018-10-03 16:41:24 -05:00
Shrikant Tudavekar
dc8b1fa98f
use forced_reset_timeout as delay after reset
2018-10-02 18:01:08 -05:00
Seppo Takalo
5fd04ff279
Reset channel settings back to default
2018-10-02 13:11:23 +03:00
Przemyslaw Stekiel
1fced21d3b
tests-mbed_hal-sleep: add message with failure details
2018-09-30 19:31:50 +02:00
Cruz Monrreal
b1b6399482
Merge pull request #8132 from VeijoPesonen/bugfix-tests-netsocket-tcp-stacksize
...
gt netsocket tcp - increases threads' stack size
2018-09-27 17:53:54 -05:00
Cruz Monrreal
f35975c782
Merge pull request #7926 from jamesbeyond/fm_test
...
Increase the timeout for rtostimer test to 10s
2018-09-27 10:20:30 -05:00
Cruz Monrreal
4403a561b3
Merge pull request #7890 from deepikabhavnani/cb_issue_7701
...
Circular buffer should use conditional statement instead of modulo
2018-09-27 10:20:05 -05:00
Veijo Pesonen
c4546910d1
Increases stack size for threads used in gt netsocket tcp test cases
...
Stack size is insufficient for debug profile
Stack size is insufficient for NUCLEO_F401RE+IDW01M1
Please see https://github.com/ARMmbed/wifi-x-nucleo-idw01m1/issues/17
2018-09-27 09:13:11 +03:00
Przemyslaw Stekiel
25b23a9286
tests-mbed_hal-sleep: finish UART transmission before sleep test
...
There is no problem with this test during the morph, but some issue has been noticed while testing new Jenkins CI in Oulu on NRF52_DK.
I was able to reproduce the issue locally. The difference between morph and local run is that CPU statistics are enabled on morph. This makes the difference and test passes.
The sleep test case perform sleep for 100 us, 200 us, ... ,1000 us in loop (us ticker wakes the board) and verifies if sleep time matches the assumption.
I got the following results:
sleep wake-up after
100 us ~100 us ok
200 us ~200 us ok
300 us ~300 us ok
400 us ~400 us ok
500 us ~14 us (??)
When requested sleep time is equal to 500 us some unexpected interrupt occurs which wakeup the board and force the test to fail.
Register state just after exit from sleep:
Control and State Register: 0x00400000 (ISRPENDING - Interrupt pending flag is set).
NVIC Interrupt Set-pending Register[0]: 0x00000004 (UARTE0_UART0_IRQn) or 0x00000200 (TIMER1_IRQn - timer used by us ticker).
UART interrupt is generated because of green-tea transmission. We know that it is performed while test is executed since we need to wait before going into deep-sleep since otherwise the transmission will be broken. So to take care of UART interrupt we need to wait before sleep test in the same way like it is done in deep-sleep test.
2018-09-26 14:29:14 +02:00
Martin Kojtal
a0a9b54e97
Merge pull request #7057 from theamirocohen/trng_test
...
Add TRNG API test
2018-09-26 09:48:36 +02:00
Amir Cohen
e92f41a8a4
Fix print error
2018-09-25 15:30:29 +03:00
Seppo Takalo
e7924a98b2
Fix WIFI_CONNECT_PARAMS_CHANNEL_FAIL testcase.
...
Test case was assuming that secure and unsecure SSID were on different
channels.
This is not a requirement and it should be OK to run on same channel.
Fixed the testcase by using +1 on channel number to get a wrong channel.
2018-09-25 14:11:22 +03:00
Veijo Pesonen
d302a62e60
Drops removed mbedgt-netsocket cases from test specification
2018-09-25 11:52:50 +03:00
Veijo Pesonen
6ac099ab1a
Makes mbedgt-network-wifi case to skip channel number check
...
2.4GHz and 5GHz channels might be using the same SSID. Wifi scan
might also fail occasionally to find secure- and unsecure channels
on same scan so lets not assume that we'll find both.
2018-09-25 09:29:53 +03:00
Veijo Pesonen
b355c750a6
Makes mbedgt-netsocket cases to accept port 0 as destination
2018-09-25 09:29:53 +03:00
Russ Butler
000ee90bfe
Add a minimum requirements HAL test
...
Add a test to ensure that devices have at least 2K free ram
and 2K free heap. This test should be the first test that fails
due to running out of ram or heap.
2018-09-24 13:54:56 -05:00
Przemyslaw Stekiel
6d5e21741c
Fix for issue #8214
...
Change the base time value to more realistic:
START_TIME = 1537789823 # GMT: Monday, 24 September 2018 11:50:23
This fix has been proposed by STM in order to enhance test efficiency.
Current test version did not detect problem with RTC reset on F1 family boards since the base time was too small.
2018-09-24 14:05:12 +02:00
Martin Kojtal
ab882c3416
Merge pull request #8030 from OpenNuvoton/nuvoton_fix_common_tickers_fail
...
Nuvoton: Fix Greentea test common_tickers failed
2018-09-21 14:55:28 +02:00
Martin Kojtal
cbb676ccbd
Merge pull request #8060 from SeppoTakalo/documentation_update
...
Clarify test configuration in Socket/Networking test document
2018-09-21 09:40:59 +02:00
Martin Kojtal
6a34251b07
Merge pull request #7925 from maciejbocianski/qspi_hal_test_refactoring
...
Qspi hal test refactoring/update
2018-09-21 09:40:10 +02:00
Cruz Monrreal
c005ba24ff
Merge pull request #8171 from SeppoTakalo/skip-dns-test
...
Skip the unstable SYNCHRONOUS_DNS_CACHE testcase
2018-09-20 13:59:17 -05:00
Seppo Takalo
558b579a8d
Remove the unstable SYNCHRONOUS_DNS_CACHE testcase
...
Will be reverted once the test case is fixed
2018-09-20 10:59:20 +01:00
Martin Kojtal
0233c8df4c
Merge pull request #7882 from mikaleppanen/nw_if_gt_tests
...
Add greentea tests for network interface status and connect/disconnect
2018-09-19 14:20:07 +02:00
ccli8
4888ff2b11
Fix Greentea test common_tickers failed
...
1. Disable ticker interrupt which would interfere with fire_interrupt speed test
2. Enlarge test period to avoid timeout error
2018-09-18 10:57:14 +08:00
Martin Kojtal
10b5a3a9d8
Merge pull request #7960 from RonEld/set_NULL_as_platform_context
...
Change mbedtls_platform_context parameter to NULL
2018-09-17 14:30:03 +02:00
Cruz Monrreal
836eec00ae
Merge pull request #7945 from jarlamsa/synchronous_dns_cache
...
Move SYNCHRONOUS_DNS_CACHE test to extended set
2018-09-14 13:12:04 -05:00
Veijo Pesonen
88eea6a390
Testing with ESP8266's AT firmware v1.7 takes more time
2018-09-14 12:07:19 +03:00
Veijo Pesonen
24905f5b50
Declares gt netsocket test case buffers as static
...
Original patch https://github.com/ARMmbed/wifi-x-nucleo-idw01m1/issues/17
2018-09-14 12:03:36 +03:00
Seppo Takalo
5e9fb0d562
Clarify test configuration in Socket/Networking test document
2018-09-10 18:08:31 +03:00
Cruz Monrreal
920db63453
Merge pull request #7803 from SeppoTakalo/socket-test-plan
...
Add Socket test plan
2018-09-09 22:44:00 -05:00
Yossi Levy
79e51111cd
Adding complete buffer print in case of failure.
2018-09-05 17:42:06 +03:00
Amir Cohen
6d8dab8e74
Fix trng_len loop
2018-09-05 17:36:55 +03:00
Amir Cohen
780d9c6dbf
Remove NVstore unused mechanism
2018-09-05 17:36:54 +03:00
David Saada
b2b14ca26f
Fix TRNG test to use reset from python script and not from code
2018-09-05 17:36:53 +03:00
Amir Cohen
9b0b63169c
Fix messages
2018-09-05 17:36:51 +03:00
Amir Cohen
11f1aaf978
Fix pithy library
2018-09-05 17:36:50 +03:00
Amir Cohen
5f7a6401b8
Fix Compilation problems
2018-09-05 17:36:49 +03:00
Amir Cohen
5256e963f0
Fix IAR issues
2018-09-05 17:36:48 +03:00
Amir Cohen
225a3bfb90
Erase debug prints
2018-09-05 17:36:47 +03:00
Amir Cohen
1f4405c644
Reduce Debug prints
2018-09-05 17:36:45 +03:00
Amir Cohen
1466518644
Fixing PR comments
2018-09-05 17:36:44 +03:00
Amir Cohen
abe2b00fac
Fix var declaration problem
2018-09-05 17:36:43 +03:00
Amir Cohen
6dadbd897a
Repalce compression libs for license issues
2018-09-05 17:36:42 +03:00
Amir Cohen
4d1d1a0313
Fix lisence and style
2018-09-05 17:36:40 +03:00
Amir Cohen
669b618ea1
Add TRNG API test
2018-09-05 17:36:39 +03:00
Anna Bridge
c2fdc0d972
Merge pull request #7423 from mprse/mutex_lock_assert
...
Fix issue #6872 - Mutex lock has possibility to fail at runtime (returning status flag)
2018-09-03 14:14:24 +01:00
Ron Eldor
5817d71ad8
Change mbedtls_platform_context parameter to NULL
...
Change the parameter being sent to `mbedtls_platform_setup()` and
`mbedtls_platfrm_teardown()` to NULL, as it is now being unused
in Mbed OS.
2018-09-03 08:38:57 +03:00
Cruz Monrreal
48232be98e
Merge pull request #7872 from kjbracey-arm/thisthread
...
Add ThisThread namespace and deprecate static Thread methods
2018-09-02 15:10:18 -05:00
Cruz Monrreal
f82feecc51
Merge pull request #7822 from donatieng/nfc-impl
...
Add initial NFC support to Mbed OS
2018-08-31 19:01:25 -05:00
Cruz Monrreal
00b7700be2
Merge pull request #7875 from c1728p9/feature_CMSIS_5_0b521765
...
Update CMSIS to 5.4.0
2018-08-31 11:31:37 -05:00
Jarno Lamsa
bc2166e62d
Temporarily move SYNCHRONOUS_DNS_CACHE test to extended set until issues fixed with it
2018-08-31 16:12:51 +03:00
Maciej Bocianski
cffd581308
qspi_hal_test - adjust used memory sector count
...
set flash sector count to 1024 for EFM32GG11_STK3701(MX25R3235F)
set flash sector count to 2048 for NRF52840_DK(MX25R6435F)
2018-08-31 11:27:42 +02:00
Maciej Bocianski
3a64383de5
fix qspi address sending for nrf52
...
fix address sending in qspi_command_transfer
now address is send MSB first
2018-08-31 10:48:37 +02:00
paul-szczepanek-arm
be5527bca4
fix gt test
2018-08-30 08:37:00 +01:00
Maciej Bocianski
c836b79e37
qspi_hal_test - remove unused variables
2018-08-30 07:39:41 +02:00
Cruz Monrreal
1e3e69463f
Merge pull request #7781 from deepikabhavnani/crc_safety
...
Add thread safety to CRC class
2018-08-29 15:42:23 -05:00
Donatien Garnier
bfd433984f
Re-run astyle
2018-08-29 16:59:45 +01:00
Maciej Bocianski
b41ce6c090
qspi_hal_test - randomize flash RW addres
...
randomize flash address during test to extend flash life
2018-08-29 17:10:29 +02:00
Maciej Bocianski
82c81900bf
qspi_hal_test add DPI and QPI support
2018-08-29 17:10:00 +02:00
Cruz Monrreal
7d871bfff5
Merge pull request #7879 from jarlamsa/synchronous_dns_tests
...
Add tests for synchronous dns
2018-08-29 09:38:41 -05:00
Qinghao Shi
b98bd91a98
increase timeout for rtostimer test to 10s
2018-08-29 13:07:42 +01:00
paul-szczepanek-arm
57b6cca240
fixed define name for test
2018-08-29 10:48:41 +01:00
Maciej Bocianski
db8cee04fc
qspi_hal_test refactoring
...
- code refactoring and preparation for enabling DPI/QPI tests
- reduced multiple test count to 4
- use common flash config header for all MX25RXX35F chips
- fix sector erase max time on N25Q128A
2018-08-29 09:32:50 +02:00
Martin Kojtal
32445ae326
Merge pull request #7880 from juhaylinen/fix-greentea-emac-timeout
...
Update Greentea EMAC tests
2018-08-28 14:38:08 +02:00
Kevin Bracey
1330eeecd0
Add ThisThread
2018-08-28 13:25:17 +03:00
paul-szczepanek-arm
17b5e2ef3e
require EEPROM define to eclude from CI builds
2018-08-28 09:59:15 +01:00
paul-szczepanek-arm
5513d29da6
simplify command to function call translation
2018-08-28 09:59:14 +01:00
paul-szczepanek-arm
21c5132482
added test for writing and reading outside set size
2018-08-28 09:59:14 +01:00
paul-szczepanek-arm
8cfe61d949
added check for running out of steps
2018-08-28 09:59:13 +01:00
paul-szczepanek-arm
f548de17ea
check size was set
2018-08-28 09:59:13 +01:00
paul-szczepanek-arm
1e01fedadd
nfc eeprom driver green tea test
2018-08-28 09:59:13 +01:00
Cruz Monrreal
91354184dc
Merge pull request #7825 from SiliconLabs/siliconlabs-qspi
...
Silicon Labs QSPI HAL implementation
2018-08-27 13:51:38 -05:00
Cruz Monrreal
1b051c7687
Merge pull request #7402 from kegilbert/mem-tracing-config-patch
...
Replace mbed_mem_tracing_enabled macro with config option
2018-08-27 10:34:24 -05:00
Amanda Butler
940c4b891d
Copy edit requested section of README.md
...
Copy edit for active voice, inclusion of articles and U.S. spelling.
2018-08-27 10:18:36 -05:00
Deepika
4e263b17b9
Refactor circular buffer test to platform folder
2018-08-27 09:33:07 -05:00
Jarno Lamsa
0c758b9ee1
Add tests for synchronous dns
2018-08-27 15:05:41 +03:00
Martin Kojtal
a24cecfc94
Merge pull request #7805 from jamesbeyond/fm_test
...
Skip Greentea tests for Mbed OS code coverage on Fast Models
2018-08-27 10:39:43 +02:00
Martin Kojtal
ce28c91405
Merge pull request #7534 from bentcooke/mote_L152_en_os5
...
enable MOTE_L152 for OS5
2018-08-27 10:27:36 +02:00
Steven
845a5beb30
Initial commit of Silicon Labs QSPI HAL implementation
...
* For EFM32GG11, since that is the only Silicon Labs target with QSPI per today
* Verified working using the on-board flash and tests-mbed_hal-qspi
2018-08-27 10:03:08 +02:00
Przemyslaw Stekiel
6a5062c5e3
Adapt `tests-mbedmicro-rtos-mbed-mutex` test - use new void unlock(void) function
2018-08-27 08:50:00 +02:00
Przemyslaw Stekiel
f65bba9a23
Adapt `tests-mbedmicro-rtos-mbed-mutex` test - use new lock(void) function instead of deprecated one.
2018-08-27 08:48:59 +02:00
Russ Butler
c3f5b64b79
Remove double free RTOS tests
...
Remove the double free RTOS tests since this was never defined
behavior of CMSIS-RTOS. This allows testing to pass.
The RTX commit which caused this test to start failing is:
c3b123ef4256f65537e2597af475fc20ec9a383e
RTX5: updated MemoryPoolFree (removed count check) [SDCMSIS-801]
Note - Double freeing an element from a memory pool was never safe.
The error return value when double freeing was misleading since memory
corruption may still be occurring in that case. For more information
on this see SDCMSIS-801.
2018-08-26 12:54:32 -05:00
Cruz Monrreal
5ffcc01be1
Merge pull request #7812 from mikaleppanen/greentea_def_interf
...
Update greentea tests to use default interface
2018-08-24 19:31:00 -05:00
Maciej Bocianski
9a41043c0b
adjust hal QSPI test to new pin names
2018-08-24 12:40:59 +02:00
Mika Leppänen
fef021810e
Added greentea tests for network interface status and connect/disconnect
...
Added tests:
NETWORKINTERFACE_STATUS
NETWORKINTERFACE_STATUS_NONBLOCK
NETWORKINTERFACE_STATUS_GET
NETWORKINTERFACE_CONN_DISC_REPEAT
2018-08-24 13:21:48 +03:00
Juha Ylinen
4a66eb6bb1
Update Greentea EMAC tests
...
Increase timeout for EMAC tests. Old timeout (600 seconds) was not
enough for slower devices to complete the tests.
Check that connection was successful when running test case
emac_test_initialize.
2018-08-24 12:55:04 +03:00
Martin Kojtal
812c6d5c88
Merge pull request #7783 from maciejbocianski/feature-qspi_merging
...
merge QSPI feature branch
2018-08-24 10:50:18 +02:00
Qinghao Shi
c9ac4868ac
move test skipping macro for FastModels to top of the test
2018-08-23 22:30:55 +01:00
Cruz Monrreal
deb905da1d
Merge pull request #7815 from donatieng/shared_ptr
...
Re-add Shared Pointer Class into platform features
2018-08-23 10:09:02 -05:00
Cruz Monrreal
e530939f47
Merge pull request #7744 from davidsaada/david_threads_test_fix
...
RTOS threads test: Handle out of memory cases
2018-08-23 10:08:39 -05:00
Ben Cooke
42a49a5022
Increase max func exec time to allow slower sys clock
2018-08-22 11:49:26 -05:00
Qinghao Shi
0ad1934f32
move test skipping macro to case array section
2018-08-22 17:48:03 +01:00
Maciej Bocianski
883ea2f1d1
astyle fixes on QSPI API/driver/tests
2018-08-22 15:02:15 +02:00
Maciej Bocianski
c94f22c7ad
mbed_hal-qspi test code refactoring after PR 7783 review
...
- refactoring of status/config register logging code,
- make QspiCommand a class,
2018-08-22 15:02:14 +02:00
Maciej Bocianski
e6923342ef
hal-qspi test: add F413ZH support
2018-08-22 15:02:12 +02:00
Maciej Bocianski
948d1a3013
hal-qspi test: code refactoring
2018-08-22 15:02:12 +02:00
Maciej Bocianski
893cf2a5f5
hal-qspi_test: remove STM workaround
...
after feature-qspi branch rebase, everything works fine and workaround is not needed anymore
2018-08-22 15:02:10 +02:00
Maciej Bocianski
e5e05df66c
hal-qspi test: fix QSPI preprocessor guard
2018-08-22 15:02:07 +02:00
Maciej Bocianski
de46a547fa
hal-qspi test refactoring
...
Main idea of introduced changes is to ease adding support for new flash chips
Major changes:
- move implementation of all memory chip specific functions to memory config file (no weak functions)
- add support for 1-2-2 write
2018-08-22 15:02:06 +02:00
Maciej Bocianski
443273785f
add hal-qspi test
2018-08-22 15:02:06 +02:00
deepikabhavnani
986411ccb0
Add thread safety to CRC class
...
Thread safety is added to serialize the hardware CRC and will not
impact the software CRC.
2018-08-21 15:26:05 -05:00
Cruz Monrreal
e02466a77a
Merge pull request #7524 from c1728p9/tickless_fix
...
Fixes for tickless and LPTICKER_DELAY_TICKS
2018-08-21 10:03:41 -05:00
Cruz Monrreal
c10ad7f544
Merge pull request #7212 from davidsaada/david_flashiap_test_small_flash
...
FlashIAP & NVStore tests: Skip test if overwriting code in flash
2018-08-21 09:41:51 -05:00
Mika Leppänen
93eb0c2872
Fixed emac test function parameter errors
2018-08-21 10:55:49 +03:00
Mika Leppänen
06302cb10e
Set greentea wifi tests to set channel back to any after channel tests
2018-08-21 10:55:49 +03:00
Mika Leppänen
970a21fa9a
Updated greentea Wifi tests to use default interface
2018-08-21 10:55:49 +03:00
Mika Leppänen
3c03feff08
Updated greentea UDP tests to use default interface
2018-08-21 10:55:49 +03:00
Mika Leppänen
3f47963aff
Updated greentea TCP tests to use default interface
2018-08-21 10:55:49 +03:00
Mika Leppänen
aa80d6d14b
Updated greentea DNS tests to use default interface
2018-08-21 10:55:49 +03:00
Mika Leppänen
5fa2edc73f
Updated greentea EMAC tests to use default interface
2018-08-21 10:55:49 +03:00
Donatien Garnier
3c599feee7
Add Greentea tests for shared pointer
2018-08-20 18:49:26 +01:00
Russ Butler
00b8e24446
Fix rollover handling in ticker frequency test
...
To handle timer rollovers the test tests-mbed_hal-common_tickers_freq
calls intf->set_interrupt(0). For this to work correctly the ticker
implementation must fire an interrupt on every rollover event though
intf->set_interrupt(0) was called only once. Whether an interrupt will
fire only once or multiple times is undefined behavior which
cannot be relied upon.
To avoid this undefined behavior this patch continually schedules an
interrupt and performs overflow detection on every read. This also
removes the possibility of race conditions due to overflowCounter
incrementing at the wrong time.
2018-08-17 11:59:01 -05:00
Russ Butler
f68958df4e
Fix tests to work with LPTICKER_DELAY_TICKS
...
Fix the HAL common_tickers and sleep tests so they work correctly when
the define LPTICKER_DELAY_TICKS is set.
2018-08-17 11:58:55 -05:00
Qinghao Shi
3c302d9d9b
Increase the thread stack size on FastModel targets
...
The thread stack size was restricted due to some boards have really limited RAM sizes,
and out of heap memory on multiple threads tests.
The side effect was on the debug profile build, the tests will get stack overflow.
We need the build the test with debug profile in order to do the code coverage analysis.
So increased the thread stack size on FastModel targets.
2018-08-17 17:46:29 +01:00
Qinghao Shi
891c4ed244
Skip time drifting test on FastModels targets
...
FastModels targets are simulator running on the x86 hosts.
As the nature of non-RealTime x86 OS and FastModels, timing accuracy is not guaranteed
So skipping the time drifting tests on FastModel targets
2018-08-17 17:46:28 +01:00
Russ Butler
472ababfef
Update deep sleep lock check in tests
...
When the define LPTICKER_DELAY_TICKS is set deep sleep can be randomly
disallowed when using the low power ticker. This is because a Timer
object, which locks deep sleep, is used to protect from back-to-back
writes to lp tickers which can't support that. This causes tests which
assert that deep sleep is allowed to intermittently fail.
To fix this intermittent failure this patch adds the function
sleep_manager_can_deep_sleep_test_check() which checks if deep sleep
is allowed over a duration. It updates all the tests to use
sleep_manager_can_deep_sleep_test_check() rather
than sleep_manager_can_deep_sleep() so the tests work even if deep
sleep is spuriously blocked.
2018-08-17 09:29:41 -05:00
Russ Butler
1bbf43ad38
Add test for ticker suspend and resume
...
Unit test the functions ticker_suspend and ticker_resume.
2018-08-17 09:29:40 -05:00
Cruz Monrreal
3c25b96441
Merge pull request #7786 from mikaleppanen/dns_repeat_to_ext
...
Moved ASYNCHRONOUS_DNS_SIMULTANEOUS_REPEAT under mbed extended tests
2018-08-16 17:57:36 -05:00
David Saada
876b5f755b
FlashIAP & NVStore tests: Skip test if overwriting code in flash.
2018-08-16 21:59:45 +03:00
Cruz Monrreal
3795d394e5
Merge pull request #7741 from mprse/disable_ticker_free_tests
...
tests-mbed_hal-common_tickers: disable ticker free test cases.
2018-08-16 09:07:09 -05:00
Seppo Takalo
0bb791ed0d
Add Socket test plan
...
I'm submitting a test plan for Mbed OS sockets, so that we have
reference that describes wanted behaviour, required test environment,
and priorities of test cases.
This servers as a both documentation and specification. It needs to live
with source code, as opposed to Handbook, because it will be extend, modified
and fixed for faster cycle than what should be done for Handbook.
Part of this document (How to run -section) will be submitted to Handbook
with links to this.
2018-08-16 13:13:47 +03:00
Nir Sonnenschein
2b8eb5ec0e
Merge pull request #7752 from maciejbocianski/timer_test_fix
...
tests-mbed_drivers-timer: change delay method
2018-08-14 19:42:43 +03:00
Mika Leppänen
199244cf9c
Moved ASYNCHRONOUS_DNS_SIMULTANEOUS_REPEAT under mbed extended tests
...
Test is giving problems in some networks. Could be that DNS server
is regarding repeated DNS enquiries on the test to be caused by
malfunctioning device.
2018-08-14 10:21:48 +03:00
Maciej Bocianski
efe9e44208
tests-mbed_drivers-timer: change delay method
2018-08-10 09:52:07 +02:00
David Saada
75bc3d36cc
RTOS threads test: Handle out of memory cases
2018-08-09 17:32:48 +03:00
Przemyslaw Stekiel
20f3d87283
tests-mbed_hal-common_tickers: disable ticker free test cases.
...
This is solution to issue #7724 .
Ticker free tests have been removed since ticker free function has been implemented only for CI boards.
Implementation for the remaining platforms will be done on feature branch feature-hal-ticker-free.
2018-08-09 14:27:05 +02:00
jeromecoutant
f532159b61
Timeout tests : unstable result
...
RTX waits, such as sem.wait(N), delays for between N-1 and N cycles.
As lp_ticker is not so accurate as us_ticker,
sometines, wait is expiring just before the lp_timeout.
2018-08-09 10:13:17 +02:00
kegilbert
9b53d1256f
Replace mbed_mem_tracing_enabled macro with config option
2018-08-06 13:44:12 -05:00
Martin Kojtal
5f3923250c
crc test: manual fix cases
...
Leave as it is for readability
2018-08-03 11:24:31 +01:00
Martin Kojtal
e52bb68f93
tests: astyle fix
...
All tests should comply to our coding standard now
2018-08-03 10:23:38 +01:00
Cruz Monrreal
8f7024a226
Merge pull request #7383 from davidsaada/david_flashiap_timing_test
...
FlashIAP: Add timing test
2018-08-02 23:08:54 -05:00
Cruz Monrreal
ae40a09036
Merge pull request #7508 from mprse/ticker_free
...
Ticker free() - requirements, pseudo code, tests, implementation
2018-08-02 23:05:14 -05:00
David Saada
7cf5b3a008
FlashIAP: Add timing test
2018-08-02 18:39:07 +03:00
Przemyslaw Stekiel
2fe6b98922
tests-mbed_hal-common_tickers: use low level ticker API for time measuring.
...
In `ticker speed` test case execution time of ticker API functions is measured using Timer object. Test replaces original ticker handler for testing purposes, so test should not relay on higher level ticker based features(like Timer).
Use low level ticker API for time measuring.
2018-08-02 15:24:29 +02:00
Przemyslaw Stekiel
6eb66ccd7a
TESTS-MBEDMICRO-RTOS-MBED-SYSTIMER: include ticker_free() function in the ticker interface.
2018-08-02 09:48:36 +02:00
Przemyslaw Stekiel
6874fde3d3
TESTS-MBED_DRIVERS-TIMER: include ticker_free() function in the ticker interface.
2018-08-02 09:48:36 +02:00
Martin Kojtal
d5f70f0d21
Merge pull request #7465 from davidsaada/david_tests_not_enough_memory
...
Skip a few tests if not enough memory can be allocated for them
2018-08-01 15:03:45 +02:00
Mika Leppänen
d35f5b08ec
Removed device emac check from emac greentea tests
...
DEVICE_EMAC is defined only for boards with default Ethernet emac.
It is not defined for example for Realtek RTL8195AM board that
does not have Ethernet. Removed the check for device emac from emac
greentea tests.
2018-07-31 13:18:17 +03:00
Cruz Monrreal
5d4f636bb1
Merge pull request #7578 from VeijoPesonen/conn_failure_tolerance
...
Makes Greentea TCP test cases to timeout less in connection errors
2018-07-26 10:29:48 -05:00
Veijo Pesonen
dd6ec037d7
Makes Greentea TCP test cases to timeout less in connection errors
...
Made to prevent timeout if a single test case fails. The goal is that
each test case might wait only half of the remaining time reserved for
running TCP test cases.
2018-07-26 09:39:04 +03:00
Przemyslaw Stekiel
239ce02142
tests-mbed_hal-common_tickers: add ticker_free() functional tests.
2018-07-25 08:54:51 +02:00
Cruz Monrreal
a252e5ed96
Merge pull request #7530 from jeromecoutant/PR_RTOS_TICKLESS
...
RTOS SYSTIMER test error in TICKLESS mode
2018-07-23 10:13:50 -05:00
jeromecoutant
2550f3d09e
Systimer test : compilation error with MBED_TICKLESS
...
Issue occurs when "MBED_TICKLESS" is added in mbed_app.json,
not when "MBED_TICKLESS" is added in targets.json
2018-07-19 15:50:16 +02:00
ccli8
49fe946b74
Fix some targets fail to pass ticker overflow test
...
In mbed-os-tests-mbed_hal-common_tickers/Microsecond ticker overflow test, some targets
would fail to catch specified ticker value near overflow in time and so fail. This commit
alleviates the issue by checking ticker value range rather than one exact ticker value near
overflow.
2018-07-19 10:05:16 +08:00
Cruz Monrreal
e9e1ff997d
Merge pull request #7302 from OpenNuvoton/nuvoton_m2351_v1.1
...
Support Nuvoton's NUMAKER_PFM_M2351 target
2018-07-18 08:49:55 -05:00
Jimmy Brisson
e9d56092c4
Remove unused storage api test
2018-07-16 14:12:00 -05:00
David Saada
a224ca764a
Skip a few tests if not enough memory can be allocated for them.
2018-07-16 17:21:21 +03:00
Cruz Monrreal
56dd4bfb24
Merge pull request #7436 from deepikabhavnani/update_sys
...
Update stats to fetch Mbed OS version info
2018-07-14 06:29:22 -05:00
Cruz Monrreal
def1ef2390
Merge pull request #7494 from mprse/lp_ticker_deep_sleep_delay_fix
...
tests-mbed_hal-lp_ticker: change implementation of the delay before deep-sleep.
2018-07-13 17:33:55 -05:00
Deepika
b05d105493
Update stats to fetch Mbed OS version info
2018-07-13 11:58:49 -05:00
Przemyslaw Stekiel
832e8b3f36
tests-mbed_hal-lp_ticker: change implementation of the delay before deep-sleep.
...
Serial buffer must be flushed before entering deep sleep mode. In the test this is done by the additional delay which is implemented on the busy loop which decrements given value down to 0 (`void wait_cycles(volatile unsigned int cycles)`). This solution is not appropriate since it is very target specific and the cycles value has been already increased few times. Additionally very big number of loop cycles which is suitable for fast targets may take much longer on slower boards and results in test timeout.
It has been verified that 20ms is sufficient delay for the green-tea transmission. In this test we cannot simply use `wait_ms(20)` since this potentially may put board to sleep and wake up using lp ticker. The test re-initialzies the lp ticker(disables ticker interrupt) and this operation may break the schedule and time tracing by the upper layer. But we can use us ticker which is not affected by this test. The solution is to add a delay routine based on busy loop and us ticker only. This way are able to wait exactly 20 ms.
2018-07-12 13:29:13 +02:00
ccli8
43b98cf405
Fix Greentea test code with Cortex-M23/M33
...
Enlarge stack size of forked thread for Cortex-M23/M33 targets
2018-07-12 18:01:27 +08:00
Przemyslaw Stekiel
b1b4f6e2ad
tests-mbed_drivers-lp_timer: change delay method
...
The test sometimes fails on NRF51_DK (test case: "Test: LowPowerTimer - time measurement 1 ms.") in morph tests.
The test verifies if LowPowerTimer class correctly counts elapsed time. Sometimes we got measured ~1600 us for delay 1000 us (delta 550 us).
The delay is performed using `wait_us()` function which for delays greater than or equal to 1 ms (our case) calls `Thread::wait((uint32_t)ms);`. This causes rescheduling and potentially can put board into sleep (deep sleep mode is disabled by `wait_us()`). For our test purposes we don't need rescheduling/sleep since this actions takes extra time and have influence on the time measurement accuracy.
The solution is to implement function for delay which is based on busy loop and uses us ticker. It has been verified that this solves the problem. With this fix when measurement of 1 ms is repeated 1000 times we got usually measured time equal to ~1080 us, and sometimes ~1300us (checked that this is caused by systick interrupt handling). Since this is test for drivers layer and the results are acceptable I decided to not disabling systick in the test).
2018-07-11 11:44:27 +02:00
Cruz Monrreal
93233c4f5d
Merge pull request #7364 from 0xc0170/fix_storage_rtos
...
Fix storage rtos types - remove including internal header file
2018-07-05 14:29:46 -05:00
Cruz Monrreal
a2376f0d3b
Merge pull request #7342 from maciejbocianski/kernel_tick_count_test
...
Add kernel ticker test
2018-07-05 10:36:58 -05:00
Maciej Bocianski
cc6f4c5a66
add kernel ticker test
2018-07-02 13:48:06 +02:00
Martin Kojtal
dd332471a8
test: fix os tick linkage
...
os_tick header file is C only, mangling would cause problems here
2018-06-29 11:43:26 +01:00
Martin Kojtal
fcadf0b4f7
tests: fix internal symbols from RTX
...
As we do not include rtx_lib header file anymore, these symbols are not available.
Use core util for if ISR is active. And for OS tick, pull in os_tick header file.
2018-06-29 11:43:25 +01:00
Martin Kojtal
df821aa483
test: fix thread storage size
2018-06-28 15:12:24 +01:00
ccli8
b18f690b39
Fix Greentea test code
...
Mark mbed-os-tests-mbed_hal-common_tickers/time_cpu_cycles not in-lined.
Otherwise, time_cpu_cycles may be in-lined somewhere and takes different
CPU cycles on invocation.
2018-06-26 13:47:24 +08:00
Cruz Monrreal
ea47342f81
Merge pull request #7214 from SenRamakri/sen_ErrorOptimAndConfig
...
Error handling configuration updates and Optimization for exception handling
2018-06-25 10:10:49 -05:00
Cruz Monrreal
1087c0a959
Merge pull request #7283 from juhaylinen/update-greentea-tests
...
Update Greentea netsocket and wifi tests
2018-06-21 10:05:26 -05:00
ccli8
9416a32636
Enlarge wait time for flushing serial buffer in Greentea test code
...
Original wait time is not enough for UART to flush out before deepsleep on some targets.
2018-06-21 15:55:14 +08:00
Juha Ylinen
3c32b3ada7
Update Greentea netsocket and wifi tests
...
Increase timeout for netsocket TCP and UDP tests. Old timeout
(240 seconds) was not enough for slower devices to complete the
tests.
Accept error codes NSAPI_ERROR_CONNECTION_TIMEOUT and
NSAPI_ERROR_NO_CONNECTION when running test wifi_connect_secure_fail
2018-06-21 09:01:15 +03:00
Senthil Ramakrishnan
baa44eb3f2
Limit error filename capture to 64 chars, wrapping tests with right configs and astyle fixes.
2018-06-20 11:56:32 -05:00
Senthil Ramakrishnan
cbb12e326d
Updates to configuration flags used in error handling implementation.
...
The new configuration make Error history tracking switched off by default and enabled by using the config flag MBED_CONF_PLATFORM_ERROR_HIST_ENABLED.
Config flag MBED_CONF_PLATFORM_ERROR_ALL_THREADS_INFO enables printing info of all threads. This will be turned off by default.
2018-06-20 11:56:31 -05:00
Cruz Monrreal
7b7dfc634b
Merge pull request #7216 from mikaleppanen/gt_async_dns
...
Asynchronous DNS greentea tests
2018-06-19 21:47:18 -05:00
Martin Kojtal
19c795c312
Merge pull request #7224 from OpenNuvoton/nuvoton_fix_greentea_deepsleep
...
Fix Greentea test code with deepsleep
2018-06-19 14:24:09 +02:00
Mika Leppänen
ef14f549e4
Asynchronous DNS greentea tests
...
Added tests for asynchronous DNS.
2018-06-19 11:18:22 +03:00
ccli8
39a6fa9609
Enlarge wait time in Greentea test function test_deepsleep
...
Original wait time is not enough for UART to flush out before deepsleep on some targets.
2018-06-19 09:23:53 +08:00
Cruz Monrreal
f54067d6c2
Merge pull request #7208 from mikaleppanen/add_long_emac_echo_test
...
Added long echo sequence test to EMAC tests
2018-06-18 10:08:13 -05:00
Cruz Monrreal
bfb43799af
Merge pull request #7209 from jarlamsa/udpsocket_echo_packetloss
...
Tolerate packet loss up to 30% in udp echo tests
2018-06-15 10:20:44 -05:00
Anna Bridge
d66dfcb13a
Merge pull request #7036 from maciejbocianski/hal_ticker_feature_merging
...
tests-mbed_hal-sleep fix
2018-06-15 12:12:31 +01:00
Anna Bridge
245a9aab4b
Merge pull request #7128 from davidsaada/david_lpc_flash_api_fix
...
Fix flash_program_page API in LPC boards.
2018-06-15 11:15:23 +01:00
Cruz Monrreal
8d88bb0ba5
Merge pull request #7202 from ARMmbed/cmonr-patch-error_handling-test
...
Corrected casting issue with an assert within the error_handling test
2018-06-14 19:22:38 -05:00
Jarno Lamsa
6bdefd3041
Tolerate packet loss up to 30% in udp echo tests
2018-06-14 10:16:26 +03:00
Cruz Monrreal
e93aaabff3
Only exclude RTOS-specifc tests in error_handling
...
Allows for other tests to run if no RTOS is present.
2018-06-13 10:33:37 -05:00
Cruz Monrreal
5fe241bac9
Wrapped test around MBED_CONF_RTOS_PRESENT
...
Wrapping a #define to prevent test from being run when no RTOS is present.
2018-06-13 09:28:53 -05:00
Cruz Monrreal
0a528ff558
Merge pull request #6831 from mprse/hal_crc_test
...
Add HAL CRC test and header file
2018-06-13 08:47:11 -05:00
Cruz Monrreal
6999d25f4d
Merge pull request #6935 from maciejbocianski/ticker_test_fix
...
ticker test improvement
2018-06-13 08:46:41 -05:00
Mika Leppänen
0334cd1679
Added long echo sequence test to EMAC tests
...
Test echoes 50000 random length ethernet frames between CTP echo
server and device.
2018-06-13 16:22:41 +03:00
Cruz Monrreal
6fa560930c
Corrected casting issue with an assert within the error_handling test
...
Discovered via https://github.com/ARMmbed/mbed-os/pull/7105 .
If both values are negative values, they are casted in such a way that -1 != -1. This small commit fixes that.
2018-06-12 22:09:51 -05:00
David Saada
9e5efbcfd5
Fix flash_program_page API in LPC boards.
...
This API allocates a program buffer of 256 on the stack to ensure alignment.
However, FlashIAP driver already ensures this alignment of the user data.
2018-06-12 15:09:05 +03:00
Cruz Monrreal
10b859779d
Merge pull request #7103 from mikaleppanen/test_updat_lpc17xx
...
Greentea test updated for NXP lpc17xx
2018-06-11 08:55:20 -05:00
Maciej Bocianski
53548e212b
fix and enable sleep_usticker_test
...
Increases tolerance value for sleep_usticker_test to cover extra time needed
for cpu stats computation (for more details see MBED_CPU_STATS_ENABLED).
Prevent scheduling interrupt during ticker initialization (in lp_ticker_init)
while test execution.
2018-06-11 10:07:34 +02:00
Maciej Bocianski
27bf6cff4f
ticker test improvement
...
Make multiticker test more reliable when scheduling very early interrupts.
When very early interrupt is scheduled (e.g now + 2[ticks]) then it's likely
that it won't be fired in some circumstances and as a result there is overdue
event in queue. That overdue event can be mistakenly scheduled again by
`Ticker::detach` (detach calls schedule if head was removed). That's why we
should check interrupts counter immediately after wait period and before detach loop
2018-06-08 15:37:59 +02:00
Przemyslaw Stekiel
511f3703c3
HAL CRC test: Fix out of memory issue on NULCLEO_F070RB, NULCLEO_F072RB/IAR
...
Allocate test case array on stack since memory limits on some boards.
2018-06-07 15:06:24 +02:00