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