33< html xmlns ="http://www.w3.org/1999/xhtml ">
44 < head >
55 < meta http-equiv ="Content-Type " content =
6- "application/xhtml+xml; charset=iso-8859-1 " />
6+ "application/xhtml+xml; charset=utf-8 " />
77 < title >
8- 4.6. About the Test Suites
8+ 4.6. 关于测试套件
99 </ title >
1010 < link rel ="stylesheet " type ="text/css " href ="../stylesheets/lfs.css " />
1111 < meta name ="generator " content ="DocBook XSL Stylesheets V1.78.1 " />
@@ -19,118 +19,83 @@ <h4>
1919 Linux From Scratch - Version 8.0-systemd
2020 </ h4 >
2121 < h3 >
22- Chapter 4. Final Preparations
22+ 第四章 最后的准备工作
2323 </ h3 >
2424 < ul >
2525 < li class ="prev ">
26- < a accesskey ="p " href ="aboutsbus.html " title ="About SBUs " > Prev </ a >
26+ < a accesskey ="p " href ="aboutsbus.html " title ="关于时间单位 SBU " > 上一页 </ a >
2727 < p >
28- About SBUs
28+ 关于时间单位 SBU
2929 </ p >
3030 </ li >
3131 < li class ="next ">
3232 < a accesskey ="n " href ="../chapter05/chapter05.html " title =
33- "Constructing a Temporary System " > Next </ a >
33+ "构建临时系统 " > 下一页 </ a >
3434 < p >
35- Constructing a Temporary System
35+ 构建临时系统
3636 </ p >
3737 </ li >
3838 < li class ="up ">
3939 < a accesskey ="u " href ="chapter04.html " title =
40- "Chapter 4. Final Preparations " > Up </ a >
40+ "第四章 最后的准备工作 " > 返回 </ a >
4141 </ li >
4242 < li class ="home ">
4343 < a accesskey ="h " href ="../index.html " title =
44- "Linux From Scratch - Version 8.0-systemd " > Home </ a >
44+ "Linux From Scratch - Version 8.0-systemd " > 主页 </ a >
4545 </ li >
4646 </ ul >
4747 </ div >
4848 < div class ="sect1 " lang ="en " xml:lang ="en ">
4949 < h1 class ="sect1 ">
5050 < a id ="prepare-abouttestsuites " name =
51- "prepare-abouttestsuites "> </ a > 4.6. About the Test Suites
51+ "prepare-abouttestsuites "> </ a > 4.6. 关于测试套件
5252 </ h1 >
5353 < p >
54- Most packages provide a test suite. Running the test suite for a
55- newly built package is a good idea because it can provide a
56- < span class ="quote "> “< span class ="quote "> sanity
57- check</ span > ”</ span > indicating that everything compiled
58- correctly. A test suite that passes its set of checks usually proves
59- that the package is functioning as the developer intended. It does
60- not, however, guarantee that the package is totally bug free.
54+ 大多数软件包都提供了一个测试套件。运行相应的测试套件,可以提供 “正确性检查” ,即检查所有的编译是否正确。这个检查是验证该软件包是否正在以开发者的意图编译运行,并不能保证这个包没有 bug 。
6155 </ p >
6256 < p >
63- Some test suites are more important than others. For example, the
64- test suites for the core toolchain packages—GCC, Binutils, and
65- Glibc—are of the utmost importance due to their central role in
66- a properly functioning system. The test suites for GCC and Glibc can
67- take a very long time to complete, especially on slower hardware, but
68- are strongly recommended.
57+ 有些测试套件比其他测试套件更重要,比如说核心工具链软件包 GCC, Binutils, 和 Glibc 。这些软件包在系统中处于非常重要的地位,因此进行测试是非常有必要的。 GCC 和 Glibc 的测试可能要花很长时间才能完成,特别是硬件运行速度较慢时,但依旧强烈推荐进行测试。
6958 </ p >
7059 < div class ="admon note ">
7160 < img alt ="[Note] " src ="../images/note.png " />
7261 < h3 >
73- Note
62+ 注意
7463 </ h3 >
7564 < p >
76- Experience has shown that there is little to be gained from running
77- the test suites in < a class ="xref " href =
78- "../chapter05/chapter05.html " title =
79- "Chapter 5. Constructing a Temporary System "> Chapter
80- 5</ a > . There can be no escaping the fact that the host system
81- always exerts some influence on the tests in that chapter, often
82- causing inexplicable failures. Because the tools built in < a class =
83- "xref " href ="../chapter05/chapter05.html " title =
84- "Chapter 5. Constructing a Temporary System "> Chapter
85- 5</ a > are temporary and eventually discarded, we do not recommend
86- running the test suites in < a class ="xref " href =
87- "../chapter05/chapter05.html " title =
88- "Chapter 5. Constructing a Temporary System "> Chapter
89- 5</ a > for the average reader. The instructions for running those
90- test suites are provided for the benefit of testers and developers,
91- but they are strictly optional.
65+ 经验表明,在 < a class ="xref " href ="../chapter05/chapter05.html " title ="第五章 构建临时系统 "> 第五章</ a > 中运行测试套件几乎不能完全通过。主机系统总是会对测试产生一定得影响,这极有可能会导致一些莫名其妙的错误。因为 < a class ="xref " href ="../chapter05/chapter05.html " title ="第五章 构建临时系统 "> 第五章</ a > 构建的工具都是临时的,最后会被删掉,所以我们不建议普通读者在 < a class ="xref " href ="../chapter05/chapter05.html " title ="第五章 构建临时系统 "> 第五章</ a > 运行测试套件。这些测试套件是为测试人员和开发者准备的,并不是必须要运行的。
9266 </ p >
93- </ div >
67+ </ div >
9468 < p >
95- A common issue with running the test suites for Binutils and GCC is
96- running out of pseudo terminals (PTYs). This can result in a high
97- number of failing tests. This may happen for several reasons, but the
98- most likely cause is that the host system does not have the
99- < code class ="systemitem "> devpts</ code > file system set up correctly.
100- This issue is discussed in greater detail at < a class ="ulink " href =
101- "http://www.linuxfromscratch.org/lfs/faq.html#no-ptys "> http://www.linuxfromscratch.org/lfs/faq.html#no-ptys</ a > .
69+ 运行 Binutils 和 GCC 的测试套件时,一个常见的问题是缺少伪终端 ( PTYs ) ,这有可能会导致在测试中出现大量的错误。有多种原因可能引起这种错误,最常见的原因是 “主机系统没能正确的配置 devpts 文件系统。关于这个问题在以下链接有更详细的讨论:
70+ < p >
71+ < a class ="ulink " href ="http://www.linuxfromscratch.org/lfs/faq.html#no-ptys "> http://www.linuxfromscratch.org/lfs/faq.html#no-ptys</ a >
10272 </ p >
10373 < p >
104- Sometimes package test suites will fail, but for reasons which the
105- developers are aware of and have deemed non-critical. Consult the
106- logs located at < a class ="ulink " href =
107- "http://www.linuxfromscratch.org/lfs/build-logs/8.0/ "> http://www.linuxfromscratch.org/lfs/build-logs/8.0/</ a >
108- to verify whether or not these failures are expected. This site is
109- valid for all tests throughout this book.
74+ 有时,测试套件会报告错误,但是开发者知道并认为这是非关键性问题。请参阅位于 < a class ="ulink " href ="http://www.linuxfromscratch.org/lfs/build-logs/8.0/ "> http://www.linuxfromscratch.org/lfs/build-logs/8.0/</ a > 的安装日志,以便验证这些错误是否是预期性的错误。此网站适用于本书中所有的测试。
11075 </ p >
11176 </ div >
11277 < div class ="navfooter ">
11378 < ul >
11479 < li class ="prev ">
115- < a accesskey ="p " href ="aboutsbus.html " title ="About SBUs " > Prev </ a >
80+ < a accesskey ="p " href ="aboutsbus.html " title ="关于时间单位 SBU " > 上一页 </ a >
11681 < p >
117- About SBUs
82+ 关于时间单位 SBU
11883 </ p >
11984 </ li >
12085 < li class ="next ">
12186 < a accesskey ="n " href ="../chapter05/chapter05.html " title =
122- "Constructing a Temporary System " > Next </ a >
87+ "构建临时系统 " > 下一页 </ a >
12388 < p >
124- Constructing a Temporary System
89+ 构建临时系统
12590 </ p >
12691 </ li >
12792 < li class ="up ">
12893 < a accesskey ="u " href ="chapter04.html " title =
129- "Chapter 4. Final Preparations " > Up </ a >
94+ "第四章 最后的准备工作 " > 返回 </ a >
13095 </ li >
13196 < li class ="home ">
13297 < a accesskey ="h " href ="../index.html " title =
133- "Linux From Scratch - Version 8.0-systemd " > Home </ a >
98+ "Linux From Scratch - Version 8.0-systemd " > 主页 </ a >
13499 </ li >
135100 </ ul >
136101 </ div >
0 commit comments