abouttestsuites.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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-preps-abouttestsuites">
  8. <?dbhtml filename="abouttestsuites.html"?>
  9. <title>About the Test Suites</title>
  10. <para>Most packages provide a test suite. Running the test suite for a
  11. newly built package is a good idea because it can provide a <quote>sanity
  12. check</quote> indicating that everything compiled correctly. A test suite
  13. that passes its set of checks usually proves that the package is
  14. functioning as the developer intended. It does not, however, guarantee
  15. that the package is totally bug free.</para>
  16. <para>Some test suites are more important than others. For example,
  17. the test suites for the core toolchain packages&mdash;GCC, Binutils, and
  18. Glibc&mdash;are of the utmost importance due to their central role in a
  19. properly functioning system. The test suites for GCC and Glibc can
  20. take a very long time to complete, especially on slower hardware, but
  21. are strongly recommended.</para>
  22. <note>
  23. <para>Running the test suites in <xref linkend="chapter-temporary-tools"/>
  24. is impossible, since the programs are compiled with a cross-compiler,
  25. so are not supposed to be able to run on the build host.</para>
  26. </note>
  27. <para>A common issue with running the test suites for Binutils and GCC
  28. is running out of pseudo terminals (PTYs). This can result in a high
  29. number of failing tests. This may happen for several reasons, but the
  30. most likely cause is that the host system does not have the
  31. <systemitem class="filesystem">devpts</systemitem> file system set up
  32. correctly. This issue is discussed in greater detail at
  33. <ulink url="&lfs-root;lfs/faq.html#no-ptys"/>.</para>
  34. <para>Sometimes package test suites will fail, but for reasons which the
  35. developers are aware of and have deemed non-critical. Consult the logs located
  36. at <ulink url="&test-results;"/> to verify whether or not these failures are
  37. expected. This site is valid for all tests throughout this book.</para>
  38. </sect1>