check.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 library</segtitle>
  49. <seglistitem>
  50. <seg>libcheck.{a,so}</seg>
  51. </seglistitem>
  52. </segmentedlist>
  53. <variablelist>
  54. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  55. <?dbfo list-presentation="list"?>
  56. <?dbhtml list-presentation="table"?>
  57. <varlistentry id="libcheck">
  58. <term><filename class="libraryfile">libcheck.{a,so}</filename></term>
  59. <listitem>
  60. <para>Contains functions that allow Check to be called from a test
  61. program</para>
  62. <indexterm zone="ch-tools-check libcheck">
  63. <primary sortas="c-libcheck">libcheck</primary>
  64. </indexterm>
  65. </listitem>
  66. </varlistentry>
  67. </variablelist>
  68. </sect2>
  69. </sect1>