⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abouttestsuites.html

📁 Linux From Scratch的中文指导,学习LINUX很有用
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=gb2312" />
    <title>
      4.6.&nbsp;About the Test Suites
    </title>
    <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.68.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type="text/css" media="print" />
  </head>
  <body id="lfs" class="6.1">
    <div class="navheader">
      <div class="headertitles">
        <h4>
          Linux From Scratch - Version 6.1
        </h4>
        <h3>
          Chapter&nbsp;4.&nbsp;最后的准备工作
        </h3>
      </div>
      <ul class="headerlinks">
        <li class="prev">
          <a accesskey="p" href="aboutsbus.html" title="About SBUs">后退</a>
          <p>
            About SBUs
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="../chapter05/chapter05.html" title="Constructing a Temporary System">前进</a>
          <p>
            Constructing a Temporary System
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter04.html" title="Chapter&nbsp;4.&nbsp;最后的准备工作">上一级</a>.
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title="Linux From Scratch - Version 6.1">回首页</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="zh_cn" xml:lang="zh_cn">
      <div class="titlepage">
        <h1 class="sect1">
          4.6. 关于软件包测试程序
        </h1>
      </div>
      <p>
        大多数软件包提供测试程序集。新编译了一个软件包之后就运行一下它提供的测试程序是个好主意,因为测试程序将进行一次“健全检查”来确认所有的代码是否都正确编译了。通过了测试程序集的一系列检查的话,通常意味着软件包在开发者的预期中工作,然而,这并不保证这个软件包就完全没有 bug 了。
      </p>
      <p>
        某些软件的测试程序集是极为重要的,例如核心工具链软件包 GCC、Binutils、Glibc 的测试程序,是因为这些软件包在一个良好工作的系统里的所处的中心角色。GCC 和 Glibc 的测试程序需要运行很长时间,尤其在速度慢的硬件上,但我们仍然强烈建议您运行这些测试程序。
      </p>
      <div class="note">
        <div class="admonhead">
          <img alt="[Note]" src="../images/note.png" />
          <h3 class="admontitle">
            注意
          </h3>
        </div>
        <div class="admonbody">
          <p>
            经验显示,运行 <a href="../chapter05/chapter05.html">Chapter 5</a>中的测试程序的时候会有点小问题。不可否认的是,宿主系统总是对这一章的测试程序施加了某些影响,常常导致无法解释的测试失败。因为 <a href="../chapter05/chapter05.html">Chapter 5</a> 中编译的工具是临时的,而且在最后会被丢弃,我们不推荐中等水平的读者运行 <a href="../chapter05/chapter05.html">Chapter 5</a> 中的测试程序,这些测试程序的指令是为开发和测试人员准备的,而不是必需的。
          </p>
        </div>
      </div>
      <p>
       Binutils 和 GCC 的测试程序一个常见的问题就是在伪终端(PTY)外运行,这样可能会出现大量的测试失败。可能的原因有几个,但最可能的因素就是宿主系统没有正确的设置 <tt class="systemitem">devpts</tt> 文件系统,这个问题在 <a href="../chapter05/chapter05.html">Chapter 5</a> 有详细的讨论。
      </p>
      <p>
        某些软件包测试程序可能会给出错误的失败信息,请参考 LFS Wiki <a href="http://www.linuxfromscratch.org/lfs/build-logs/6.1/"><i>http://www.linuxfromscratch.org/lfs/build-logs/6.1/</i></a>以确认您所遇到的测试失败是否是预期会出现的。这个站点的内容对于本书所有的测试都是正确的。
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="aboutsbus.html" title="About SBUs">后退</a>
          <p>
            About SBUs
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="../chapter05/chapter05.html" title="Constructing a Temporary System">前进</a>
          <p>
            Constructing a Temporary System
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter04.html" title="Chapter&nbsp;4.&nbsp;最后的准备工作">上一级</a>.
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title="Linux From Scratch - Version 6.1">回首页</a>.
        </li>
      </ul>
    </div>
  </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -