2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-03-21 18:42:58 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2006-01-15 12:10:43 +00:00
|
|
|
|
2020-02-09 20:50:38 +00:00
|
|
|
<sect1 id="ch-preps-abouttestsuites">
|
2006-01-15 12:10:43 +00:00
|
|
|
<?dbhtml filename="abouttestsuites.html"?>
|
2004-12-19 19:50:52 +00:00
|
|
|
|
2006-01-15 12:10:43 +00:00
|
|
|
<title>About the Test Suites</title>
|
|
|
|
|
|
|
|
<para>Most packages provide a test suite. Running the test suite for a
|
|
|
|
newly built package is a good idea because it can provide a <quote>sanity
|
|
|
|
check</quote> indicating that everything compiled correctly. A test suite
|
|
|
|
that passes its set of checks usually proves that the package is
|
|
|
|
functioning as the developer 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,
|
2020-06-09 22:26:11 +01:00
|
|
|
the test suites for the core toolchain packages—GCC, binutils, and
|
|
|
|
glibc—are of the utmost importance due to their central role in a
|
|
|
|
properly functioning system. The test suites for GCC and glibc can
|
2006-01-15 12:10:43 +00:00
|
|
|
take a very long time to complete, especially on slower hardware, but
|
|
|
|
are strongly recommended.</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-01-15 12:10:43 +00:00
|
|
|
<note>
|
2020-06-09 22:26:11 +01:00
|
|
|
<para>Running the test suites in <xref linkend="chapter-cross-tools"/>
|
|
|
|
and <xref linkend="chapter-temporary-tools"/>
|
2022-09-27 19:42:07 +01:00
|
|
|
is pointless; since the test programs are compiled with a cross-compiler,
|
|
|
|
they probably can't run on the build host.</para>
|
2006-01-15 12:10:43 +00:00
|
|
|
</note>
|
|
|
|
|
2020-06-09 22:26:11 +01:00
|
|
|
<para>A common issue with running the test suites for binutils and GCC
|
2022-09-27 19:42:07 +01:00
|
|
|
is running out of pseudo terminals (PTYs). This can result in a large
|
2006-01-15 12:10:43 +00:00
|
|
|
number of failing tests. This may happen for several reasons, but the
|
|
|
|
most likely cause is that the host system does not have the
|
|
|
|
<systemitem class="filesystem">devpts</systemitem> file system set up
|
2009-07-18 13:42:44 +01:00
|
|
|
correctly. This issue is discussed in greater detail at
|
2013-03-24 19:23:53 +00:00
|
|
|
<ulink url="&lfs-root;lfs/faq.html#no-ptys"/>.</para>
|
2006-01-15 12:10:43 +00:00
|
|
|
|
2022-09-27 19:42:07 +01:00
|
|
|
<para>Sometimes package test suites will fail for reasons which the
|
2006-01-15 12:10:43 +00:00
|
|
|
developers are aware of and have deemed non-critical. Consult the logs located
|
|
|
|
at <ulink url="&test-results;"/> to verify whether or not these failures are
|
2022-09-27 19:42:07 +01:00
|
|
|
expected. This site is valid for all test suites throughout this book.</para>
|
2006-01-15 12:10:43 +00:00
|
|
|
|
|
|
|
</sect1>
|