libx52/libusbx52
nirenjan 74eeb27ad4 Fix build breakage on Travis-CI
Travis uses an older version of GCC which doesn't seem to support C99
mode by default. This fixes it by moving the variable declarations out
of the for loop and to the beginning of the function.
2017-07-27 17:22:36 -07:00
..
util Fix build breakage on Travis-CI 2017-07-27 17:22:36 -07:00
Makefile.am Fix distcheck breakage 2017-07-27 17:05:06 -07:00
README.md Add stub routines for mocking libusb 2017-07-26 17:34:29 -07:00
libusbx52.h Add implementation of stub libusb library 2017-07-27 16:43:01 -07:00
usb_x52_stub.c Fix build breakage on Travis-CI 2017-07-27 17:22:36 -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.