source: general/prog/check.xml@ 410d9d0

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 410d9d0 was 410d9d0, checked in by Douglas R. Reno <renodr@…>, 7 years ago

Tags
update check testing information

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19057 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 4.6 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 check-download-http "https://github.com/libcheck/check/releases/download/&check-version;/check-&check-version;.tar.gz">
8 <!ENTITY check-download-ftp " ">
9 <!ENTITY check-md5sum "9b90522b31f5628c2e0f55dda348e558">
10 <!ENTITY check-size "736 KB">
11 <!ENTITY check-buildsize "9.5 MB (add 1.2 MB for the tests)">
12 <!ENTITY check-time "0.1 SBU (add 3.4 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 &lfs81_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 &amp;&amp;
88make</userinput></screen>
89
90<!-- Under LFS 8.1-rc2, the tests do not cause segfaults any longer. -->
91 <para>
92 To test the installation, issue <command>make check</command>.
93 <!-- Several tests cause segmentation faults that are harmless and can be
94 ignored. -->
95 </para>
96
97 <para>
98 Now, as the <systemitem class="username">root</systemitem> user:
99 </para>
100
101<screen role="root"><userinput>make docdir=/usr/share/doc/check-&check-version; install</userinput></screen>
102
103 </sect2>
104
105 <sect2 role="commands">
106 <title>Command Explanations</title>
107
108 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
109 href="../../xincludes/static-libraries.xml"/>
110
111 </sect2>
112
113 <sect2 role="content">
114 <title>Contents</title>
115
116 <segmentedlist>
117 <segtitle>Installed Program</segtitle>
118 <segtitle>Installed Library</segtitle>
119 <segtitle>Installed Directory</segtitle>
120
121 <seglistitem>
122 <seg>
123 checkmk
124 </seg>
125 <seg>
126 libcheck.so
127 </seg>
128 <seg>
129 /usr/share/doc/check-&check-version;
130 </seg>
131 </seglistitem>
132 </segmentedlist>
133
134 <variablelist>
135 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
136 <?dbfo list-presentation="list"?>
137 <?dbhtml list-presentation="table"?>
138
139 <varlistentry id="checkmk">
140 <term><command>checkmk</command></term>
141 <listitem>
142 <para>
143 is an <application>Awk</application> script used for
144 generating C unit tests for use with the
145 <application>Check</application> unit testing framework.
146 </para>
147 <indexterm zone="check checkmk">
148 <primary sortas="b-checkmk">checkmk</primary>
149 </indexterm>
150 </listitem>
151 </varlistentry>
152
153 <varlistentry id="libcheck">
154 <term><filename class="libraryfile">libcheck.so</filename></term>
155 <listitem>
156 <para>
157 contains the <application>Check</application> API functions.
158 </para>
159 <indexterm zone="check libcheck">
160 <primary sortas="c-libcheck">libcheck.so</primary>
161 </indexterm>
162 </listitem>
163 </varlistentry>
164
165 </variablelist>
166
167 </sect2>
168
169</sect1>
Note: See TracBrowser for help on using the repository browser.