Testing an application using libusb without real hardware

One part of the application that I am writing uses libusb to communicate with the device, and it is difficult for me to test my code. Is there a framework for creating fake USB devices or another way to mock libusb in order to better automate testing, be able to test on CI, play back boundary cases, etc.?

+5
source share
1 answer

umockdev provides tools for recording the properties and behavior of specific devices and for running a program or a set of tests on a test bench with previously loaded devices loaded.

Homepage , source code and example

0
source

Source: https://habr.com/ru/post/1213141/


All Articles