Umockdev-0.14.2

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-10.0 platform.

Package Information

Umockdev Dependencies

Required

libgudev-233 and Vala-0.48.9

Optional

libgphoto2 (optional for tests)

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/umockdev

Installation of Umockdev

Install Umockdev by running the following commands:

./configure --prefix=/usr    \
            --disable-static \
            --docdir=/usr/share/doc/umockdev-0.14.2&&
make

To test the results, issue: PATH=$PATH:/sbin:/usr/sbin make check. The addition to PATH is needed if you use the starting scripts in The Bash Shell Startup Files, because some tests need to run udevadm.

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.

Contents

Installed Programs: umockdev-record, umockdev-run, and umockdev-wrapper
Installed Libraries: libumockdev-preload.so.0 and libumockdev.so
Installed Directories: /usr/include/umockdev-1.0 and /usr/share/doc/umockdev-0.14.2

Short Descriptions

umockdev-record

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

umockdev-run

runs a program under an umockdev testbed.

umockdev-wrapper

wraps a program around libumockdev-preload.so.0 through LD_PRELOAD.

libumockdev.so

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

Last updated on 2020-08-16 21:26:53 -0700