Mocking USB input

前端 未结 5 818
庸人自扰
庸人自扰 2020-12-03 20:08

Our product includes some custom hardware, that connects to a PC via USB. We\'ve started looking into automatic testing, but so far I\'m unable to find a tool that can recor

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-03 20:30

    Mocking usb devices using umockdev

    Umockdev is a linux based application which record the behaviour as well as properties of hardware and run the software independent of actual hardware it is running on. Hardware devices can be simulated in virtual environments without disturbing the whole system.It currently supports sysfs, uevents, basic support for /dev devices, and recording/mocking usbdevfs ioctls (for PtP/MTP devices). It helps for creating integration test for hardware related libraries.

    source code and examples

    umockdev home page

提交回复
热议问题