Russ Butler
6688857247
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-01-29 12:27:28 -06:00
Maciej Bocianski
6959485857
USB basic test documentation update
2019-01-29 12:27:27 -06:00
Maciej Bocianski
8df154bfe5
USB basic test update
...
disable suspend/resume test
disable sync frame test
improve reset test
2019-01-29 12:27:26 -06:00
Maciej Bocianski
1d82a78bed
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-01-29 12:27:26 -06:00
Russ Butler
f1c21c1796
Fix typo in USBTester.h
...
Fix the spelling of product_release.
2019-01-29 12:27:26 -06:00
Maciej Bocianski
3c46367634
pyusb_basic test update
...
test code refactoring
align test to use device multiconfiguration
2019-01-29 12:27:26 -06:00
Maciej Bocianski
9c067409da
pyusb_basic test add helper functions
2019-01-29 12:27:25 -06:00
Maciej Bocianski
4bd67af6ea
pyusb_basic test formatting fixes
2019-01-29 12:27:25 -06:00
Maciej Bocianski
54f21c3526
Extend USB test class configuration
2019-01-29 12:27:25 -06:00
Russ Butler
af5c99d5c1
Explicitly specify USBPhy used for testing
...
Add a parameter to the USBPhy class so mock or wrapper USBPhy classes
can be used.
2019-01-29 12:27:25 -06:00
Russ Butler
da46ea2b9c
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-01-29 12:27:25 -06:00
Maciej Bocianski
5d40f34c33
code formatting fixes
2019-01-29 12:27:25 -06:00
Maciej Bocianski
e515a52ffa
USBDevice - add multiconfiguration support
2019-01-29 12:27:25 -06:00
Maciej Bocianski
bfa3dc4962
USBDevice - add support for deconfiguration
2019-01-29 12:27:24 -06:00
Maciej Bocianski
2cacae9411
USB reset test fix
2019-01-29 12:27:24 -06:00
Russ Butler
977c571606
Fix USB tests
...
Change the direction used in set interface to match the USB
specification. This allows USB tests to pass on OSX.
2019-01-29 12:27:24 -06:00
Russ Butler
c85f0dc249
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-01-29 12:27:24 -06:00
Maciej Bocianski
75a7e38e9e
Fix for USB set_clear_feature_test for OSX
2019-01-29 12:27:24 -06:00
Russ Butler
4b4cea9f59
Update USBTester product name
...
Change the name reported by USBTester from CDC DEVICE to
MBED TEST DEVICE.
2019-01-29 12:27:24 -06:00
Maciej Bocianski
5f4e84a726
USB generic tests
2019-01-29 12:27:23 -06:00
Russ Butler
9b09f43f04
Update USBTester for the new USB API
...
Update the class USBTester so it works with the new zero-copy
USBDevice API.
2019-01-29 12:27:22 -06:00
Russ Butler
2c202ac224
Update USBTester for simplified read handling
...
Remove read_start and replace read_finish with read to match the new
USBDevice API.
2019-01-29 12:27:21 -06:00
Russ Butler
a9dccd4c94
Add USBDevice test code
...
Add a USB test and the class USBTester.cpp to go along with it.
2019-01-29 12:27:21 -06: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
Martin Kojtal
a09b5f5c6b
Merge pull request #9416 from fkjagodzinski/test_update-systimer
...
RTOS: SysTimer: Fix test timing issues
2019-01-21 13:44:53 +01:00
Martin Kojtal
7b29593a41
Merge pull request #9415 from SeppoTakalo/ONME-4140
...
Allow NSAPI_ERROR_UNSUPPORTED from Socket::setsockopt()
2019-01-21 13:43:37 +01:00
Martin Kojtal
5c46faeb86
Merge pull request #9417 from jeromecoutant/PR_DNSTIMEOUT
...
Netsocket DNS test: increase timeout value
2019-01-21 13:42:24 +01:00
Martin Kojtal
27cce81580
Merge pull request #9258 from jeromecoutant/PR_FLASHSKIP
...
FLASH test: skip test if test region overlaps code
2019-01-21 13:15:51 +01:00
Filip Jagodzinski
5840281682
ROTS: SysTimer: Fix test timing issues
...
Use a busy loop with non-blocking Semaphore::wait(0) calls instead of a
single Semaphore::wait(osWaitForever) to improve time measurement
accuracy. Looping in Semaphore::wait(0) prevents the board from entering
sleep or deepsleep modes while waiting for the semaphore. By skipping
the overhead wakeup time, we get more accurate timings.
2019-01-18 17:10:39 +01:00
Cruz Monrreal
68deb05d1b
Merge pull request #9376 from michalpasztamobica/tcpsocket_greentea
...
TCP/UDP greentea tests refactoring and cleanup
2019-01-17 21:52:40 -06:00
Cruz Monrreal
436d3d043d
Merge pull request #9257 from jeromecoutant/PR_FLASHIAP_TIMING
...
FLASHIAP test: skip test if test region overlaps code
2019-01-17 21:50:20 -06:00
jeromecoutant
3a190656fa
Netsocket DNS test: increase timeout value
2019-01-17 17:39:43 +01:00
Seppo Takalo
26dcd0d90a
Allow NSAPI_ERROR_UNSUPPORTED from Socket::setsockopt()
2019-01-17 18:02:04 +02:00
Michal Paszta
6e629e1ba6
Gemalto Crinterion UDP test adjustments
...
Adjusting the tests to match the cellular modems ELS61-E2 and BGS2-W requirements.
2019-01-15 12:38:48 +01:00
Michal Paszta
59e8dedb67
TCP/UDP greentea tests refactoring and cleanup
2019-01-15 10:00:35 +01:00
Alexander Zilberkant
435d944dd0
fix its_reset test
2019-01-13 18:30:22 +02:00
Przemyslaw Stekiel
ef681bf18d
Add SPDX-License-Identifier and Copyright in new files
2019-01-08 15:32:08 +01:00
Przemyslaw Stekiel
01ca8443a8
Add stack size unification test
...
Test checks stack sizes:
- ISR stack: exactly 1KB (with exception for NORDIC - 2KB and RENESAS - Cortex A targets not supported for this test)
- Main thread stack: exactly 4KB (with some exceptions - 3KB)
- Thread stack: exactly 4KB
2019-01-08 15:32:01 +01:00
jeromecoutant
482396ce7d
FLASH test: skip test if test region overlaps code
2019-01-04 16:50:54 +01:00
jeromecoutant
b712e71194
FLASHIAP test: skip test if test region overlaps code
2019-01-04 16:38:32 +01:00
Martin Kojtal
acd69ae7e1
Merge pull request #9229 from maciejbocianski/qspi_hal_test_k82f_fix
...
hal-qspi_test: move frequency setting before flash init
2019-01-04 08:56:54 +00:00
Brian Daniels
5625b6964d
Fix Python 3 syntax in rtc host test
2019-01-03 12:04:36 -06:00
Martin Kojtal
cc89c20abc
Merge pull request #9175 from michalpasztamobica/greentea_ignore_unsupported
...
Greentea tests ignore bind returning UNSUPPORTED
2019-01-03 14:59:50 +00:00
Maciej Bocianski
fc593d2d6f
hal-qspi_test: move frequency setting before flash init
...
Frequency setting just after erase operation was causing some data
inconsistencies during write/read operations on some targets (frdm-k82f).
To fix this, frequency setting was moved before flash memory init.
2019-01-03 12:17:23 +01:00
Martin Kojtal
d7497a82dd
Merge pull request #9128 from orenc17/spm_hal_test_fix
...
Fix SPM HAL test
2019-01-02 09:18:02 +00:00
Alexander Zilberkant
b409267883
Update TESTS/mbed_hal/spm/main.cpp
...
Use r3 instead of r4
Co-Authored-By: orenc17 <oren.cohen@arm.com>
2018-12-23 11:37:29 +02:00
Martin Kojtal
aceeb269d1
Merge pull request #9159 from SeppoTakalo/unflag_extented
...
Drop MBED_EXTENTED_TESTS flagging from network tests.
2018-12-20 16:29:51 +00:00
Michal Paszta
a2110d5411
Greentea tests ignore bind returning UNSUPPORTED
2018-12-20 15:38:07 +01:00
Martin Kojtal
ab1c2be997
Merge pull request #8957 from InfernoEmbedded/fix-8913
...
Fix incorrect #ifdefs on DEVICE_FOO macros
2018-12-20 10:52:06 +00:00