check.xml 3.1 KB

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