Dustin Crossman
006adf3592
Fixed byte string related TypeError if using python3.
2019-08-29 13:28:43 -07:00
Martin Kojtal
ccb63d771e
Merge pull request #10857 from ARMmbed/feature-watchdog
...
Add Watchdog and ResetReason
2019-07-03 11:43:52 +01:00
Martin Kojtal
e40a76575f
watchdog: fix copyright
2019-06-26 09:43:21 +01:00
Maciej Bocianski
4378c141df
usb_device-msd test: disable host side unmount on windows machines
2019-06-19 14:32:21 +02:00
Maciej Bocianski
18285168fd
usb_device-msd test: fix powershell unmount script issue
...
Running PowerShell script on some windows machines is blocked.
To avoid this problem script was replace by the code run directly in PowerShell console.
2019-06-19 14:32:20 +02:00
Filip Jagodzinski
337b394048
Tests: Watchdog: Update the reset-to-sync delay
...
Change the config parameter used as a delay before sending the sync
packet after the device reset in watchdog and reset_reason tests. Use
'forced_reset_timeout' instead of 'program_cycle_s'.
2019-05-24 12:23:38 +02:00
Filip Jagodzinski
a37d03d640
Tests: Watchdog: Fix config access in the host script
...
Move the calls to get_config_item() to the setup() method. The config is
not available in the initializer yet.
2019-05-24 12:23:38 +02:00
Donatien Garnier
3ab0fbc7cf
Update license headers
2019-05-24 12:23:35 +02:00
Filip Jagodzinski
76f7ca613a
Tests: Drivers: Reset_reason: Add tests
2019-05-24 11:35:34 +02:00
Filip Jagodzinski
f9497e5ed4
Tests: HAL API: Reset_reason: Add tests
2019-05-24 11:35:33 +02:00
Filip Jagodzinski
c4d9300f9d
Tests: HAL API: Watchdog: Add time accuracy tests
2019-05-24 11:35:28 +02:00
Filip Jagodzinski
f1e744d4a0
Tests: HAL API: Watchdog: Add dev reset tests
2019-05-24 11:35:27 +02:00
Filip Jagodzinski
484b716c6e
Tests: HAL API: Watchdog: Add tests
2019-05-24 11:35:26 +02:00
Olli-Pekka Puolitaival
842d145d91
Py3 fixes for test scripts
2019-05-08 13:46:01 +03:00
Filip Jagodzinski
852390fcdc
Tests: USBHID: Make report test optional on Linux
...
This test case uses `hidapi` -- a cross-platform Python module.
To keep the initial Mbed setup as simple as possible, the `hidapi`
module is skipped on Linux hosts because of its external dependancies
for this platform.
The module can be easily installed following instructions from the
README file.
The test case is skipped if the host machine lacks `hidapi` module.
2019-04-09 17:03:22 +02:00
Filip Jagodzinski
36eb700ede
Tests: USBHID: Handle variable driver setup time
...
Wait for the host driver to finish setup before sending any HID reports
from the device.
USBHID::wait_ready() blocks until the device reaches 'configured' state,
but the state of the host HID driver remains unknown to the device.
2019-04-09 17:03:22 +02:00
Filip Jagodzinski
572beb6731
Tests: USBHID: Add tests
2019-04-09 17:03:21 +02:00
Maciej Bocianski
7ff689be20
Add USB mass storage test
2019-02-27 17:18:41 +01: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
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
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
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
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
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
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
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
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
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
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
Maciej Bocianski
33bef331e6
USB generic tests
2019-02-22 10:52:35 -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
Senthil Ramakrishnan
62d6eb5673
Increase the timeout for the host side script and the test
2019-01-22 16:04:47 -06:00