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