mbed-os/TESTS/usb_device/hid
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
..
README.md Tests: USBHID: Make report test optional on Linux 2019-04-09 17:03:22 +02:00
main.cpp Tests: USBHID: Make report test optional on Linux 2019-04-09 17:03:22 +02:00
requirements.txt Tests: USBHID: Make report test optional on Linux 2019-04-09 17:03:22 +02:00

README.md

Testing the USB HID device with a Linux host

Before running tests-usb_device-hid test suite on a Linux machine, please make sure to install the hidapi Python module first, otherwise some test cases will be skipped. Due to external dependencies for Linux, this module is not installed during the initial setup, to keep the process as simple as possible.

For Debian-based Linux distros, the dependencies can be installed as follows (based on module's README):

apt-get install python-dev libusb-1.0-0-dev libudev-dev
pip install --upgrade setuptools

To install the hidapi module itself, please use the attached TESTS/usb_device/hid/requirements.txt file:

pip install -r requirements.txt