Martin Kojtal
cd8753a1bd
Merge pull request #11540 from fkjagodzinski/test_update-usb_device-basic
...
Tests: USB: Update error handling in basic tests
2019-09-30 15:28:05 +02:00
Filip Jagodzinski
5432bb9c36
Tests: USB: Remove outdated docs from basic test
2019-09-30 11:56:51 +02:00
Filip Jagodzinski
e0c87fccbe
Tests: USB: Update error formatting in basic test
2019-09-30 11:56:51 +02:00
Filip Jagodzinski
3c37831521
Tests: USB: Extract common code in basic test
2019-09-30 11:56:50 +02:00
Filip Jagodzinski
d4ef5f72e7
Tests: USB: Distinguish failure/error in basic test
2019-09-30 11:56:34 +02:00
Filip Jagodzinski
bfcfb6cf4a
Tests: USB: Clean up test failure output
...
Catch all pyusb errors and report failures to the device. Printing full
tracebacks was more confusing than useful.
2019-09-30 11:51:07 +02:00
Filip Jagodzinski
2b4b64fafd
Tests: USB: Fix Python 3 compatibility
...
Use integer division explicitly in basic test.
Convert bytes to str for Python 3 in serial test.
2019-09-30 10:21:16 +02:00
Filip Jagodzinski
db2995052f
Tests: USB: Use libusb0 backend on Windows
...
libusb0 supports all features used for testing. A newer version
(libusb1) does not have a complete implementation for Windows.
2019-09-11 14:00:22 +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
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
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