Umockdev-0.19.8

#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-1303

### Chapter 9. General Libraries

- Prev

  Uchardet-0.0.8

- Next

  utfcpp-4.1.1

- Up
- Home

# Umockdev-0.19.8

## Introduction to Umockdev

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

### Note

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

### Package Information

- Download (HTTP): https://github.com/martinpitt/umockdev/releases/download/0.19.8/umockdev-0.19.8.tar.xz

- Download MD5 sum: 7f94b1bc1bcb16165ebe4773a40642d6

- Download size: 488 KB

- Estimated disk space required: 8.2 MB (with tests)

- Estimated build time: 0.1 SBU (with tests)

### Umockdev Dependencies

#### Required

libgudev-238, libpcap-1.10.6, and Vala-0.56.19

#### Optional

GTK-Doc-1.36.1, PyGObject-3.56.3 (for tests), Valgrind-3.27.1 (for tests), Which-2.25 (for one test), and libgphoto2 (for tests)

## Installation of Umockdev

Install Umockdev by running the following commands:

    mkdir build &&
    cd    build &&

    meson setup --prefix=/usr --buildtype=release .. &&
    ninja

To test the results, issue as the `root` user: ninja test. One test needs to be run in an X session.

Now, as the `root` user:

    ninja install

## Command Explanations

`-D gtk_doc=true`: Use this switch if you have GTK-Doc-1.36.1 installed and wish to rebuild and install the API documentation.

## Contents

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

### 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

- Prev

  Uchardet-0.0.8

- Next

  utfcpp-4.1.1

- Up
- Home