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