|
@@ -23,7 +23,7 @@
|
|
|
<sect2 role="package">
|
|
|
<title/>
|
|
|
|
|
|
- <para>Check is a unit testing framework for C.</para>
|
|
|
+ <para>Check 是一个 C 语言单元测试框架。</para>
|
|
|
|
|
|
<segmentedlist>
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
@@ -38,23 +38,21 @@
|
|
|
</sect2>
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
- <title>安装Check</title>
|
|
|
+ <title>安装 Check</title>
|
|
|
|
|
|
<para>准备安装 Check:</para>
|
|
|
|
|
|
<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
|
|
|
|
|
|
- <para>Build the package:</para>
|
|
|
+ <para>构建该软件包:</para>
|
|
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
|
|
- <para>Compilation is now complete. To run the Check test suite, issue the
|
|
|
- following command:</para>
|
|
|
+ <para>现在已经编译完成,执行下列命令执行 Check 测试套件:</para>
|
|
|
|
|
|
<screen><userinput remap="test">make check</userinput></screen>
|
|
|
|
|
|
- <para>Note that the Check test suite may take a relatively long
|
|
|
- (up to 4 SBU) time.</para>
|
|
|
+ <para>注意 Check 测试套件可能需要相对较长(高达 4 SBU)的时间。</para>
|
|
|
|
|
|
<para>安装该软件包:</para>
|
|
|
|
|
@@ -83,8 +81,8 @@
|
|
|
<varlistentry id="checkmk">
|
|
|
<term><command>checkmk</command></term>
|
|
|
<listitem>
|
|
|
- <para>Awk script for generating C unit tests for use with the Check
|
|
|
- unit testing framework</para>
|
|
|
+ <para>用于生成 C 语言单元测试的 awk 脚本,
|
|
|
+ 生成的单元测试可以和 Check 单元测试框架一起使用</para>
|
|
|
<indexterm zone="ch-tools-check checkmk">
|
|
|
<primary sortas="b-checmk">checkmk</primary>
|
|
|
</indexterm>
|
|
@@ -94,8 +92,7 @@
|
|
|
<varlistentry id="libcheck">
|
|
|
<term><filename class="libraryfile">libcheck.{a,so}</filename></term>
|
|
|
<listitem>
|
|
|
- <para>Contains functions that allow Check to be called from a test
|
|
|
- program</para>
|
|
|
+ <para>包含使得测试程序能够调用 Check 的函数</para>
|
|
|
<indexterm zone="ch-tools-check libcheck">
|
|
|
<primary sortas="c-libcheck">libcheck</primary>
|
|
|
</indexterm>
|