abouttestsuites.xml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <sect1 id="ch-prepare-abouttestsuites">
  2. <title>About the test suites</title>
  3. <?dbhtml filename="abouttestsuites.html" dir="chapter02"?>
  4. <para>Most packages provide a test suite. Running the test suite for a newly
  5. built package is generally a good idea, as it can provide a nice sanity check
  6. that everything compiled correctly. A test suite that passes its set of checks
  7. usually proves that the package is functioning mostly as the developer
  8. intended. It does not, however, guarantee that the package is totally bug
  9. free.</para>
  10. <para>Some test suites are more important than others. For example, the test
  11. suites for the core toolchain packages -- GCC, Binutils, and Glibc (the C
  12. library) -- are of the utmost importance due to their central role in a
  13. properly functioning system. But be warned, the test suites for GCC and Glibc
  14. can take a very long time to complete, especially on slower hardware.</para>
  15. <para>Experience has shown us that there is little to be gained from running
  16. the test suites in <xref linkend="chapter-temporary-tools"/>. There can be no escaping the
  17. fact that the host system always exerts influence on the tests in that chapter,
  18. often causing weird and inexplicable failures. Not only that, the tools built
  19. in <xref linkend="chapter-temporary-tools"/> are temporary and eventually discarded. For the
  20. average reader of this book we recommend <emphasis>not</emphasis> to run the
  21. test suites in <xref linkend="chapter-temporary-tools"/>. The instructions for running those
  22. test suites are still provided for the benefit of testers and developers, but
  23. they are strictly optional for everyone else.</para>
  24. <para>As you progress through the book and encounter the commands to run the
  25. various test suites, we'll guide you on the relative importance of the test
  26. suite in question, so that you can decide for yourself whether to run that one
  27. or not.</para>
  28. <note><para>A common problem when running the test suites for Binutils and GCC
  29. is running out of pseudo terminals (PTYs for short). The symptom is an
  30. unusually high number of failing tests. This can happen for a number of
  31. reasons. Most likely is that the host system doesn't have the
  32. <emphasis>devpts</emphasis> file system set up correctly. We'll discuss this in
  33. more detail later on in <xref linkend="chapter-temporary-tools"/>.</para></note>
  34. </sect1>