libx52/lib/libusbx52
nirenjan 543aec85b1 Add config header to all C files 2020-06-05 15:19:56 -07:00
..
util Update libusbx52 to address code-inspector violations 2020-06-04 17:03:02 -07:00
Makefile.am Clear warning when linking x52test_log_actions 2020-06-02 07:50:51 -07:00
README.md Reorganize source layout 2017-07-27 17:56:51 -07:00
libusbx52.h Revert hotplug support in libx52 2020-05-22 00:42:01 -07:00
usb_x52_stub.c Add config header to all C files 2020-06-05 15:19:56 -07:00

README.md

LibUSB mocker library

This folder contains a convenience library to mock the API of libusb. This is intended to be used as an LD_PRELOAD library when used by automated tests to verify the library without needing actual hardware to verify the tests.

While a manual test using real hardware is valuable, running some automated tests in an environment where the hardware is not available is equally valuable, especially if the source code is changing frequently.

Note that the API exported by the mocker is limited to the API used by libx52, as writing a complete USB simulator stack in software is not an easy job, nor is it necessary for the purposes of this project.