check.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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">PKG_CONFIG= ./configure --prefix=/tools</userinput></screen>
  34. <variablelist>
  35. <title>The meaning of the configure parameter:</title>
  36. <varlistentry>
  37. <term><parameter>PKG_CONFIG=</parameter></term>
  38. <listitem>
  39. <para>This tells the configure script to ignore any
  40. pkg-config options that may cause the system to try to link
  41. with libraries not in the <filename class="directory">/tools</filename>
  42. directory.</para>
  43. </listitem>
  44. </varlistentry>
  45. </variablelist>
  46. <para>Build the package:</para>
  47. <screen><userinput remap="make">make</userinput></screen>
  48. <para>Compilation is now complete. As discussed earlier, running the test
  49. suite is not mandatory for the temporary tools here in this chapter. To run
  50. the Check test suite anyway, issue the following command:</para>
  51. <screen><userinput remap="test">make check</userinput></screen>
  52. <para>Note that the Check test suite may take a relatively long
  53. (up to 4 SBU) time.</para>
  54. <para>Install the package:</para>
  55. <screen><userinput remap="install">make install</userinput></screen>
  56. </sect2>
  57. <sect2 id="contents-check" role="content">
  58. <title>Contents of Check</title>
  59. <segmentedlist>
  60. <segtitle>Installed program</segtitle>
  61. <segtitle>Installed library</segtitle>
  62. <seglistitem>
  63. <seg>checkmk</seg>
  64. <seg>libcheck.{a,so}</seg>
  65. </seglistitem>
  66. </segmentedlist>
  67. <variablelist>
  68. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  69. <?dbfo list-presentation="list"?>
  70. <?dbhtml list-presentation="table"?>
  71. <varlistentry id="checkmk">
  72. <term><command>checkmk</command></term>
  73. <listitem>
  74. <para>Awk script for generating C unit tests for use with the Check
  75. unit testing framework</para>
  76. <indexterm zone="ch-tools-check checkmk">
  77. <primary sortas="b-checmk">checkmk</primary>
  78. </indexterm>
  79. </listitem>
  80. </varlistentry>
  81. <varlistentry id="libcheck">
  82. <term><filename class="libraryfile">libcheck.{a,so}</filename></term>
  83. <listitem>
  84. <para>Contains functions that allow Check to be called from a test
  85. program</para>
  86. <indexterm zone="ch-tools-check libcheck">
  87. <primary sortas="c-libcheck">libcheck</primary>
  88. </indexterm>
  89. </listitem>
  90. </varlistentry>
  91. </variablelist>
  92. </sect2>
  93. </sect1>