check.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. <sect1 id="ch-tools-check" role="wrap">
  8. <?dbhtml filename="check.html"?>
  9. <sect1info condition="script">
  10. <productname>check</productname>
  11. <productnumber>&check-version;</productnumber>
  12. <address>&check-url;</address>
  13. </sect1info>
  14. <title>Check-&check-version;</title>
  15. <indexterm zone="ch-tools-check">
  16. <primary sortas="a-Check">Check</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>Check is a unit testing framework for C.</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&check-ch5-sbu;</seg>
  26. <seg>&check-ch5-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>Installation of Check</title>
  32. <para>Prepare Check for compilation:</para>
  33. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  34. <para>Build the package:</para>
  35. <screen><userinput remap="make">make</userinput></screen>
  36. <para>Compilation is now complete. To run the Check test suite, issue the
  37. following command:</para>
  38. <screen><userinput remap="test">make check</userinput></screen>
  39. <para>Note that the Check test suite may take a relatively long
  40. (up to 4 SBU) time.</para>
  41. <para>Install the package and fix a script:</para>
  42. <screen><userinput remap="install">make docdir=/usr/share/doc/check-&check-version; install &amp;&amp;
  43. sed -i '1 s/tools/usr/' /usr/bin/checkmk</userinput></screen>
  44. <!-- Removes a hardcoded call to /tools/bin/gawk at line 1 of checkmk. -->
  45. </sect2>
  46. <sect2 id="contents-check" role="content">
  47. <title>Contents of Check</title>
  48. <segmentedlist>
  49. <segtitle>Installed program</segtitle>
  50. <segtitle>Installed library</segtitle>
  51. <seglistitem>
  52. <seg>checkmk</seg>
  53. <seg>libcheck.{a,so}</seg>
  54. </seglistitem>
  55. </segmentedlist>
  56. <variablelist>
  57. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  58. <?dbfo list-presentation="list"?>
  59. <?dbhtml list-presentation="table"?>
  60. <varlistentry id="checkmk">
  61. <term><command>checkmk</command></term>
  62. <listitem>
  63. <para>Awk script for generating C unit tests for use with the Check
  64. unit testing framework</para>
  65. <indexterm zone="ch-tools-check checkmk">
  66. <primary sortas="b-checmk">checkmk</primary>
  67. </indexterm>
  68. </listitem>
  69. </varlistentry>
  70. <varlistentry id="libcheck">
  71. <term><filename class="libraryfile">libcheck.{a,so}</filename></term>
  72. <listitem>
  73. <para>Contains functions that allow Check to be called from a test
  74. program</para>
  75. <indexterm zone="ch-tools-check libcheck">
  76. <primary sortas="c-libcheck">libcheck</primary>
  77. </indexterm>
  78. </listitem>
  79. </varlistentry>
  80. </variablelist>
  81. </sect2>
  82. </sect1>