abouttestsuites.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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-cross-tools"/>
  24. and <xref linkend="chapter-temporary-tools"/>
  25. is impossible, since the programs are compiled with a cross-compiler,
  26. so are not supposed to be able to run on the build host.</para>
  27. </note>
  28. <para>A common issue with running the test suites for binutils and GCC
  29. is running out of pseudo terminals (PTYs). This can result in a high
  30. number of failing tests. This may happen for several reasons, but the
  31. most likely cause is that the host system does not have the
  32. <systemitem class="filesystem">devpts</systemitem> file system set up
  33. correctly. This issue is discussed in greater detail at
  34. <ulink url="&lfs-root;lfs/faq.html#no-ptys"/>.</para>
  35. <para>Sometimes package test suites will fail, but for reasons which the
  36. developers are aware of and have deemed non-critical. Consult the logs located
  37. at <ulink url="&test-results;"/> to verify whether or not these failures are
  38. expected. This site is valid for all tests throughout this book.</para>
  39. </sect1>