source: general/genlib/umockdev.xml@ 63a2d8d0

trunk
Last change on this file since 63a2d8d0 was 4f2fd7ac, checked in by Bruce Dubbs <bdubbs@…>, 2 weeks ago

Update to umockdev-0.18.4.

  • Property mode set to 100644
File size: 6.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY umockdev-download-http "https://github.com/martinpitt/umockdev/releases/download/&umockdev-version;/umockdev-&umockdev-version;.tar.xz">
8 <!ENTITY umockdev-download-ftp " ">
9 <!ENTITY umockdev-md5sum "1693e5e20a2e0bdaa3904a44a85a28b0">
10 <!ENTITY umockdev-size "484 KB">
11 <!ENTITY umockdev-buildsize "6.9 MB (with tests)">
12 <!ENTITY umockdev-time "0.1 SBU (with tests)">
13]>
14
15<sect1 id="umockdev" xreflabel="umockdev-&umockdev-version;">
16 <?dbhtml filename="umockdev.html"?>
17
18
19 <title>Umockdev-&umockdev-version;</title>
20
21 <indexterm zone="umockdev">
22 <primary sortas="a-umockdev">umockdev</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to Umockdev</title>
27
28 <para>
29 The <application>Umockdev</application> package contains a framework
30 that allows a developer to mock devices for use in unit testing.
31 </para>
32
33 &lfs122_checked;
34
35 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>
39 Download (HTTP): <ulink url="&umockdev-download-http;"/>
40 </para>
41 </listitem>
42 <listitem>
43 <para>
44 Download (FTP): <ulink url="&umockdev-download-ftp;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download MD5 sum: &umockdev-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &umockdev-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &umockdev-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &umockdev-time;
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect3">Umockdev Dependencies</bridgehead>
70
71 <bridgehead renderas="sect4">Required</bridgehead>
72 <para role="required">
73 <xref linkend="libgudev"/>,
74 <xref linkend="libpcap"/>, and
75 <xref linkend="vala"/>
76 </para>
77
78 <bridgehead renderas="sect4">Optional</bridgehead>
79 <para role="optional">
80 <xref linkend="gtk-doc"/>,
81 <xref linkend="valgrind"/> (for tests), and
82 <ulink url="http://www.gphoto.org/">libgphoto2</ulink> (for tests)
83 </para>
84
85 </sect2>
86
87 <sect2 role="installation">
88 <title>Installation of Umockdev</title>
89
90 <para>
91 Install <application>Umockdev</application> by running the following
92 commands:
93 </para>
94
95<screen><userinput>mkdir build &amp;&amp;
96cd build &amp;&amp;
97
98meson setup --prefix=/usr --buildtype=release .. &amp;&amp;
99ninja</userinput></screen>
100
101 <para>
102 To test the results, issue as the &root; user: <command>ninja test</command>.
103 One test needs to be run in an X session.
104 </para>
105
106 <para>
107 Now, as the &root; user:
108 </para>
109
110<screen role="root"><userinput>ninja install</userinput></screen>
111 </sect2>
112
113 <sect2 role="commands">
114 <title>Command Explanations</title>
115
116 <para>
117 <option>-D gtk_doc=true</option>: Use this switch if you have
118 <xref linkend="gtk-doc" role="nodep"/> installed and wish to rebuild and
119 install the API documentation.
120 </para>
121
122 </sect2>
123
124 <sect2 role="content">
125 <title>Contents</title>
126
127 <segmentedlist>
128 <segtitle>Installed Programs</segtitle>
129 <segtitle>Installed Libraries</segtitle>
130 <segtitle>Installed Directories</segtitle>
131
132 <seglistitem>
133 <seg>
134 umockdev-record,
135 umockdev-run, and
136 umockdev-wrapper
137 </seg>
138 <seg>
139 libumockdev-preload.so <!-- Only intended for use by
140 umockdev-wrapper. Don't put in a short description for this--> and
141 libumockdev.so
142 </seg>
143 <seg>
144 /usr/include/umockdev-1.0
145 </seg>
146 </seglistitem>
147 </segmentedlist>
148
149 <variablelist>
150 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
151 <?dbfo list-presentation="list"?>
152 <?dbhtml list-presentation="table"?>
153
154 <varlistentry id="umockdev-record">
155 <term><command>umockdev-record</command></term>
156 <listitem>
157 <para>
158 records Linux devices and their ancestors from sysfs/udev or
159 records ioctls for a device
160 </para>
161 <indexterm zone="umockdev umockdev-record">
162 <primary sortas="b-umockdev-record">umockdev-record</primary>
163 </indexterm>
164 </listitem>
165 </varlistentry>
166
167 <varlistentry id="umockdev-run">
168 <term><command>umockdev-run</command></term>
169 <listitem>
170 <para>
171 runs a program under an <application>umockdev</application>
172 testbed
173 </para>
174 <indexterm zone="umockdev umockdev-run">
175 <primary sortas="b-umockdev-run">umockdev-run</primary>
176 </indexterm>
177 </listitem>
178 </varlistentry>
179
180 <varlistentry id="umockdev-wrapper">
181 <term><command>umockdev-wrapper</command></term>
182 <listitem>
183 <para>
184 wraps a program around
185 <filename class="libraryfile">libumockdev-preload.so.0</filename>
186 through LD_PRELOAD
187 </para>
188 <indexterm zone="umockdev umockdev-wrapper">
189 <primary sortas="b-umockdev-wrapper">umockdev-wrapper</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193
194 <varlistentry id="libumockdev">
195 <term><filename class="libraryfile">libumockdev.so</filename></term>
196 <listitem>
197 <para>
198 provides API functions that allow mocking hardware devices for unit
199 testing
200 </para>
201 <indexterm zone="umockdev libumockdev">
202 <primary sortas="c-libumockdev">libumockdev.so</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206 </variablelist>
207 </sect2>
208
209</sect1>
Note: See TracBrowser for help on using the repository browser.