Introduction to Umockdev

The Umockdev package contains a framework that allows a developer to mock devices for use in unit testing.

This package is known to build and work properly using an LFS-9.1 platform.

Package Information

Umockdev Dependencies


libgudev-233 and Vala-0.48.7


libgphoto2 (optional for tests)

User Notes:

Installation of Umockdev

Install Umockdev by running the following commands:

./configure --prefix=/usr --disable-static &&

To test the results, issue: make check.

Now, as the root user:

make install

Command Explanations

--disable-static: This switch prevents installation of static versions of the libraries.

--enable-gtk-doc: Use this parameter if GTK-Doc is installed and you wish to rebuild and install the API documentation.


Installed Programs: umockdev-record, umockdev-run, and umockdev-wrapper
Installed Libraries: and
Installed Directories: /usr/include/umockdev-1.0 and /usr/share/doc/umockdev

Short Descriptions


records Linux devices and their ancestors from sysfs/udev or records ioctls for a device.


runs a program under an umockdev testbed.


wraps a program around through LD_PRELOAD.

provides API functions that allow mocking hardware devices for unit testing.

Last updated on 2020-04-02 13:07:58 -0500