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 check-download-http "&sourceforge-repo;/check/check-&check-version;.tar.gz">
|
---|
8 | <!ENTITY check-download-ftp " ">
|
---|
9 | <!ENTITY check-md5sum "38263d115d784c17aa3b959ce94be8b8">
|
---|
10 | <!ENTITY check-size "744 KB">
|
---|
11 | <!ENTITY check-buildsize "7.8 MB (additional 0.4 MB for the tests)">
|
---|
12 | <!ENTITY check-time "0.1 SBU (additional 2.1 SBU for the tests)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="check" xreflabel="Check-&check-version;">
|
---|
16 | <?dbhtml filename="check.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>Check-&check-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="check">
|
---|
26 | <primary sortas="a-Check">Check</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to Check</title>
|
---|
31 |
|
---|
32 | <para>
|
---|
33 | <application>Check</application> is a unit testing framework for C.
|
---|
34 | It was installed by LFS in the temporary /tools directory. These
|
---|
35 | instructions install it permanently.
|
---|
36 | </para>
|
---|
37 |
|
---|
38 | &lfs77_checked; &gcc5_checked;
|
---|
39 |
|
---|
40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
41 | <itemizedlist spacing="compact">
|
---|
42 | <listitem>
|
---|
43 | <para>
|
---|
44 | Download (HTTP): <ulink url="&check-download-http;"/>
|
---|
45 | </para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>
|
---|
49 | Download (FTP): <ulink url="&check-download-ftp;"/>
|
---|
50 | </para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>
|
---|
54 | Download MD5 sum: &check-md5sum;
|
---|
55 | </para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>
|
---|
59 | Download size: &check-size;
|
---|
60 | </para>
|
---|
61 | </listitem>
|
---|
62 | <listitem>
|
---|
63 | <para>
|
---|
64 | Estimated disk space required: &check-buildsize;
|
---|
65 | </para>
|
---|
66 | </listitem>
|
---|
67 | <listitem>
|
---|
68 | <para>
|
---|
69 | Estimated build time: &check-time;
|
---|
70 | </para>
|
---|
71 | </listitem>
|
---|
72 | </itemizedlist>
|
---|
73 |
|
---|
74 | <para condition="html" role="usernotes">User Notes:
|
---|
75 | <ulink url="&blfs-wiki;/check"/>
|
---|
76 | </para>
|
---|
77 | </sect2>
|
---|
78 |
|
---|
79 | <sect2 role="installation">
|
---|
80 | <title>Installation of Check</title>
|
---|
81 |
|
---|
82 | <para>
|
---|
83 | Install <application>Check</application> by running the following
|
---|
84 | commands:
|
---|
85 | </para>
|
---|
86 |
|
---|
87 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
88 | make</userinput></screen>
|
---|
89 |
|
---|
90 | <para>
|
---|
91 | To test the installation, issue <command>make check</command>.
|
---|
92 | </para>
|
---|
93 |
|
---|
94 | <para>
|
---|
95 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
96 | </para>
|
---|
97 |
|
---|
98 | <screen role="root"><userinput>make docdir=/usr/share/doc/check-&check-version; install</userinput></screen>
|
---|
99 |
|
---|
100 | </sect2>
|
---|
101 |
|
---|
102 | <sect2 role="commands">
|
---|
103 | <title>Command Explanations</title>
|
---|
104 |
|
---|
105 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
106 | href="../../xincludes/static-libraries.xml"/>
|
---|
107 |
|
---|
108 | </sect2>
|
---|
109 |
|
---|
110 | <sect2 role="content">
|
---|
111 | <title>Contents</title>
|
---|
112 |
|
---|
113 | <segmentedlist>
|
---|
114 | <segtitle>Installed Program</segtitle>
|
---|
115 | <segtitle>Installed Library</segtitle>
|
---|
116 | <segtitle>Installed Directory</segtitle>
|
---|
117 |
|
---|
118 | <seglistitem>
|
---|
119 | <seg>
|
---|
120 | checkmk
|
---|
121 | </seg>
|
---|
122 | <seg>
|
---|
123 | libcheck.so
|
---|
124 | </seg>
|
---|
125 | <seg>
|
---|
126 | /usr/share/doc/check-&check-version;
|
---|
127 | </seg>
|
---|
128 | </seglistitem>
|
---|
129 | </segmentedlist>
|
---|
130 |
|
---|
131 | <variablelist>
|
---|
132 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
133 | <?dbfo list-presentation="list"?>
|
---|
134 | <?dbhtml list-presentation="table"?>
|
---|
135 |
|
---|
136 | <varlistentry id="checkmk">
|
---|
137 | <term><command>checkmk</command></term>
|
---|
138 | <listitem>
|
---|
139 | <para>
|
---|
140 | is an <application>Awk</application> script used for
|
---|
141 | generating C unit tests for use with the
|
---|
142 | <application>Check</application> unit testing framework.
|
---|
143 | </para>
|
---|
144 | <indexterm zone="check checkmk">
|
---|
145 | <primary sortas="b-checkmk">checkmk</primary>
|
---|
146 | </indexterm>
|
---|
147 | </listitem>
|
---|
148 | </varlistentry>
|
---|
149 |
|
---|
150 | <varlistentry id="libcheck">
|
---|
151 | <term><filename class="libraryfile">libcheck.so</filename></term>
|
---|
152 | <listitem>
|
---|
153 | <para>
|
---|
154 | contains the <application>Check</application> API functions.
|
---|
155 | </para>
|
---|
156 | <indexterm zone="check libcheck">
|
---|
157 | <primary sortas="c-libcheck">libcheck.so</primary>
|
---|
158 | </indexterm>
|
---|
159 | </listitem>
|
---|
160 | </varlistentry>
|
---|
161 |
|
---|
162 | </variablelist>
|
---|
163 |
|
---|
164 | </sect2>
|
---|
165 |
|
---|
166 | </sect1>
|
---|