source: general/genlib/umockdev.xml@ 3f2db3a6

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 3f2db3a6 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 17 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 6.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
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 "734cecaaace239a34d451f6085927d08">
10 <!ENTITY umockdev-size "480 KB">
11 <!ENTITY umockdev-buildsize "6.6 MB (with tests)">
12 <!ENTITY umockdev-time "0.2 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 &lfs112_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"/> and
81 <ulink url="http://www.gphoto.org/">libgphoto2</ulink> (optional for tests)
82 </para>
83
84 <para condition="html" role="usernotes">
85 User Notes: <ulink url="&blfs-wiki;/umockdev"/>
86 </para>
87 </sect2>
88
89 <sect2 role="installation">
90 <title>Installation of Umockdev</title>
91
92 <para>
93 Install <application>Umockdev</application> by running the following
94 commands:
95 </para>
96
97<screen><userinput>mkdir build &amp;&amp;
98cd build &amp;&amp;
99
100meson --prefix=/usr --buildtype=release .. &amp;&amp;
101ninja</userinput></screen>
102
103 <para>
104 To test the results, issue: <command>PATH=$PATH:/usr/sbin ninja
105 test</command>. The addition to <envar>PATH</envar> is needed if you
106 use the starting scripts in <xref linkend="postlfs-config-profile"/>,
107 because some tests need to run <command>udevadm</command>. One test
108 needs to be run in an X session.
109 </para>
110
111 <para>
112 Now, as the <systemitem class="username">root</systemitem> user:
113 </para>
114
115<screen role="root"><userinput>ninja install</userinput></screen>
116 </sect2>
117
118 <sect2 role="commands">
119 <title>Command Explanations</title>
120
121<!--
122 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
123 href="../../xincludes/static-libraries.xml"/>
124
125 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
126 href="../../xincludes/gtk-doc-rebuild.xml"/>
127-->
128 <para>
129 <option>-Dgtk_doc=true</option>: Use this switch if you have
130 <xref linkend="gtk-doc" role="nodep"/> installed and wish to rebuild and
131 install the API documentation.
132 </para>
133
134 </sect2>
135
136 <sect2 role="content">
137 <title>Contents</title>
138
139 <segmentedlist>
140 <segtitle>Installed Programs</segtitle>
141 <segtitle>Installed Libraries</segtitle>
142 <segtitle>Installed Directories</segtitle>
143
144 <seglistitem>
145 <seg>
146 umockdev-record,
147 umockdev-run, and
148 umockdev-wrapper
149 </seg>
150 <seg>
151 libumockdev-preload.so <!-- Only intended for use by
152 umockdev-wrapper. Don't put in a short description for this--> and
153 libumockdev.so
154 </seg>
155 <seg>
156 /usr/include/umockdev-1.0
157 </seg>
158 </seglistitem>
159 </segmentedlist>
160
161 <variablelist>
162 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
163 <?dbfo list-presentation="list"?>
164 <?dbhtml list-presentation="table"?>
165
166 <varlistentry id="umockdev-record">
167 <term><command>umockdev-record</command></term>
168 <listitem>
169 <para>
170 records Linux devices and their ancestors from sysfs/udev or
171 records ioctls for a device
172 </para>
173 <indexterm zone="umockdev umockdev-record">
174 <primary sortas="b-umockdev-record">umockdev-record</primary>
175 </indexterm>
176 </listitem>
177 </varlistentry>
178
179 <varlistentry id="umockdev-run">
180 <term><command>umockdev-run</command></term>
181 <listitem>
182 <para>
183 runs a program under an <application>umockdev</application>
184 testbed
185 </para>
186 <indexterm zone="umockdev umockdev-run">
187 <primary sortas="b-umockdev-run">umockdev-run</primary>
188 </indexterm>
189 </listitem>
190 </varlistentry>
191
192 <varlistentry id="umockdev-wrapper">
193 <term><command>umockdev-wrapper</command></term>
194 <listitem>
195 <para>
196 wraps a program around
197 <filename class="libraryfile">libumockdev-preload.so.0</filename>
198 through LD_PRELOAD
199 </para>
200 <indexterm zone="umockdev umockdev-wrapper">
201 <primary sortas="b-umockdev-wrapper">umockdev-wrapper</primary>
202 </indexterm>
203 </listitem>
204 </varlistentry>
205
206 <varlistentry id="libumockdev">
207 <term><filename class="libraryfile">libumockdev.so</filename></term>
208 <listitem>
209 <para>
210 provides API functions that allow mocking hardware devices for unit
211 testing
212 </para>
213 <indexterm zone="umockdev libumockdev">
214 <primary sortas="c-libumockdev">libumockdev.so</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218 </variablelist>
219 </sect2>
220
221</sect1>
Note: See TracBrowser for help on using the repository browser.