Update of /cvsroot/fink/scripts/installer/dmg/doc/packaging
In directory 
sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv6499/scripts/installer/dmg/doc/packaging

Modified Files:
        packaging.ja.html packaging.zh.html 
Log Message:
InfoTest (en 1.88)

Index: packaging.ja.html
===================================================================
RCS file: /cvsroot/fink/scripts/installer/dmg/doc/packaging/packaging.ja.html,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- packaging.ja.html   26 Jun 2006 21:15:09 -0000      1.35
+++ packaging.ja.html   19 Sep 2006 05:56:52 -0000      1.36
@@ -1,7 +1,7 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
 <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <!--
-Generated from $Fink: packaging.ja.xml,v 1.39 2006/04/11 23:52:29 
babayoshihiko Exp $
+Generated from $Fink: packaging.ja.xml,v 1.40 2006/09/19 05:54:30 
babayoshihiko Exp $
 -->
 <title>Fink Documentation - Fink 
パッケージの作成方法</title></head><body>
 <table width="100%" cellspacing="0">
@@ -1234,6 +1234,8 @@
                                <b>コンパイル段階</b>ではソースの 
configure とコンパイルが行われます.
                                普通はスクリプト <tt 
style="white-space: nowrap;">configure</tt> 
を適切な引数で起動し,コマンド <tt style="white-space: 
nowrap;">make</tt> を実行することになります.
                                詳細はフィールド CompileScript 
を参照して下さい.
+                               
ビルドに対しテストスイートが有効な場合 (fink 0.25 
の新しい機能で,現在メンテナモードでビルド中に適用される),
+                               CompileScript の直後に TestScript 
が実行される.
                        </p>
                        <p>
                                
<b>インストール段階</b>では,パッケージは仮ディレクトリ
@@ -1577,6 +1579,9 @@
                                                        
ビルド時のみに適用される依存性のリスト.
                                                        
ビルド時には必要だが,実行時には使われないツール 
(flexなど) を示すのに使う.
                                                        書式は Depends 
と同じ.
+                                                       
ビルドされる際にテストスイートが有効であれば,
+                                                       <tt style="white-space: 
nowrap;">TestDepends</tt>
+                                                       
がこのリストに追加される.
                                                </p>
                                        </td></tr><tr 
valign="top"><td>Provides</td><td>
                                                <p>
@@ -1613,6 +1618,7 @@
 
当該パッケージがコンパイル中にインストールされてはいけないパッケージの一覧.
 これは, <tt style="white-space: nowrap;">./configure</tt> 
やコンパイラが,望ましくないライブラリヘッダを見たり,
 壊れることが分かっているツール 
(例えば,特定のバージョンの sed にあるバグ) 
のバージョンを使用することを避けるために使います.
+ビルド時にテストスイートが有効な場合, <tt 
style="white-space: nowrap;">TestConflicts</tt> 
フィールド内のパッケージはこのリストに追加されます.
 </p>
 </td></tr><tr valign="top"><td>Replaces</td><td>
                                                <p>
@@ -1707,6 +1713,9 @@
                                                        <tt style="white-space: 
nowrap;">gnome</tt> という値は <tt style="white-space: 
nowrap;">mirror:gnome:stable/sources/%n/%n-%v.tar.gz</tt> の省略形.
                                                        デフォルト値は 
<tt style="white-space: nowrap;">%n-%v.tar.gz</tt>  
(すなわちマニュアル・ダウンロード) になっている.
                                                        暗示的に <tt 
style="white-space: nowrap;">Source</tt> 
を指定するのは廃止予定である 
(明示的に簡単なファイル名指定/手動ダウンロードするのは可).
+</p><p>
+テストスイートを実行するためだけに必要なソースは,<tt 
style="white-space: nowrap;">TestSource</tt>
+および <tt style="white-space: nowrap;">InfoTest</tt> 
内の関連フィールドを使ってください.
                                                </p>
                                        </td></tr><tr 
valign="top"><td>Source<b>N</b></td><td>
                                                <p>
@@ -1978,6 +1987,8 @@
                                                <p>
                                                        configure 
スクリプトに渡す付加的なパラメータ.
                                                        (詳細は 
CompileScript を参照)
+                                                       
ビルド時にテストスイートが有効な場合,<tt 
style="white-space: nowrap;">TestConfigureParams</tt>
+                                                       
の値がここに追加されます.
 
                                                        バージョン 0.13.7 
以降の Fink では,
                                                        
このパラメータは <tt style="white-space: nowrap;">Type: Perl</tt> 
となっている perl モジュールにも使えます.
@@ -2090,6 +2101,48 @@
                                                        その perl 
モジュールのパッケージでは無視されます.
                                                </p>
                                        </td></tr></table>
+                       
+<p><b>テストスイート:</b></p>
+<table border="0" cellpadding="0" cellspacing="10"><tr valign="bottom"><th 
align="left">Field</th><th align="left">Value</th></tr><tr 
valign="top"><td>InfoTest</td><td>
+<p>
+<b>fink 0.25 にて導入.</b>
+当フィールドは,テストスイートが有効な場合のビルド実行時にのみ使用される情報を包んだものです.
+ここには他のフィールドが含まれます.
+現在のところ,この中に  <tt style="white-space: 
nowrap;">TestScript</tt> がなければ<b>なりません</b>.
+他のフィールドはオプションです.
+以下のフィールドが <tt style="white-space: nowrap;">InfoTest</tt> 
にて許可されています:
+</p><ul>
+<li><tt style="white-space: nowrap;">TestScript</tt>: 
+    テストスイートを実行するスクリプト.
+    このスクリプトは,スイートが終了するときは status 
を返します.
+    0 の場合は通ったことを示し,
+    1 の場合は警告があり,
+    
他の値の場合は致命的と考えられる重大な問題があったことを示します.
+    
この3状態のため,スクリプト内で終了値を明示的に設定しなければなりません.
+    例えば, <tt style="white-space: nowrap;">make check</tt> 
は悪いスクリプトです.
+    これは終了時に,check のターゲットが存在しなければ 
status 1 を返すからです.
+    <tt style="white-space: nowrap;">make check || exit 2</tt> 
は比較的良いスクリプトです.
+    </li>
+<li><tt style="white-space: nowrap;">TestConfigureParams</tt>: 
+    
テストスイートを実行するために必要な追加ソースです.
+    関連する全てのフィールドもサポートされています.
+    <tt style="white-space: 
nowrap;">TestSource-MD5</tt>は指定されなければ<b>なりません</b>.
+    <tt style="white-space: nowrap;">TestSourceN</tt> や対応する <tt 
style="white-space: nowrap;">TestSourceN-MD5</tt> , <tt style="white-space: 
nowrap;">TestTarFilesRename</tt> 
などを追加することも可能です.</li>
+<li><tt style="white-space: nowrap;">TestSuiteSize</tt>: 
+    
テストスイートどの程度かかるかのおよその時間を示します.
+    値は,<tt style="white-space: nowrap;">small</tt>, <tt 
style="white-space: nowrap;">medium</tt>, と <tt style="white-space: 
nowrap;">large</tt> です.
+    このフィールドは現在のところ無視されます.
+    </li>
+<li>
+その他のフィールド.<tt style="white-space: nowrap;">InfoTest</tt> 
内と外で定義されるフィールドに関して,
+スイートが有効な場合,<tt style="white-space: 
nowrap;">InfoTest</tt> 内の値が他の値を書き換えます.</li>
+</ul><p>例:
+</p><pre>InfoTest: &lt;&lt;
+    TestScript: make check || exit 2
+    TestConfigureParams: --enable-tests
+&lt;&lt;</pre>
+</td></tr></table>
+                       
                        <p>
                                <b>インストール段階関連:</b>
                        </p>
@@ -2540,4 +2593,4 @@
 provided the document and this copyright notice remain complete and
 unmodified. Any commercial reproduction and any online publication
 requires the explicit consent of the author.</p><hr>
-<p>Generated from <i>$Fink: packaging.ja.xml,v 1.39 2006/04/11 23:52:29 
babayoshihiko Exp $</i></p></body></html>
+<p>Generated from <i>$Fink: packaging.ja.xml,v 1.40 2006/09/19 05:54:30 
babayoshihiko Exp $</i></p></body></html>

Index: packaging.zh.html
===================================================================
RCS file: /cvsroot/fink/scripts/installer/dmg/doc/packaging/packaging.zh.html,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- packaging.zh.html   26 Jun 2006 21:15:09 -0000      1.35
+++ packaging.zh.html   19 Sep 2006 05:56:52 -0000      1.36
@@ -1,7 +1,7 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
 <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <!--
-Generated from $Fink: packaging.zh.xml,v 1.27 2006/04/11 23:52:29 
babayoshihiko Exp $
+Generated from $Fink: packaging.zh.xml,v 1.28 2006/09/19 05:54:30 
babayoshihiko Exp $
 -->
 <title>Fink Documentation - 创建 Fink 软件包</title></head><body>
 <table width="100%" cellspacing="0">
@@ -999,7 +999,14 @@
 这三个字段来控制有关细节。</p>
 <p>在<b>补丁阶段</b>,源代码会被打上补丁,以使得可以在 
Darwin 下面编译。由 UpdateConfigGuess,UpdateLibtool,Patch 和 
PatchScrip 这几个字段所指明的操作将被按照顺序执行。</p>
 
<p>在<b>编译阶段</b>,源代码被配置和编译。通常这会以某些参数来调用
 <tt style="white-space: nowrap;">configure</tt> 脚本,然后执行一个 
<tt style="white-space: nowrap;">make</tt> 命令。
-详细信息请查看 CompileScript 字段的描述。</p>
+详细信息请查看 CompileScript 字段的描述。
+
+If test suites are enabled
+for the build (a new feature in fink 0.25, currently achieved by building in
+maintainer mode), the TestScript will be run immediately after the
+CompileScript.
+
+</p>
 <p>在<b>安装阶段</b>,软件包被安装到一个临时目录,<tt 
style="white-space: nowrap;">/sw/src/fink.build/root-gimp-1.2.1-1</tt> (= 
%d)。(注意 "root-" 部分。)
 所有通常应该安装到 <tt style="white-space: nowrap;">/sw</tt> 
的文件现在被安装在
 <tt style="white-space: nowrap;">/sw/src/fink.build/root-gimp-1.2.1-1/sw</tt> 
(= %i = %d%p)。 
@@ -1306,6 +1313,11 @@
 <b>从 fink 0.9.0 开始。</b>
 只在编译时需要的依赖关系的清单。
 这可以用于列出构建软件包必须使用工具(比如 
flex)。它支持和 Depends 相同的语法。
+
+If a build is being done
+with test suites enabled, the dependencies in the <tt style="white-space: 
nowrap;">TestDepends</tt>
+field will be added to this list.
+
 </p>
 </td></tr><tr valign="top"><td>Provides</td><td>
 <p>
@@ -1337,7 +1349,9 @@
 being compiled. This can be used to prevent <tt style="white-space: 
nowrap;">./configure</tt>
 or the compiler from seeing undesired library headers or to avoid use
 of a version of a tool that is known to be broken (for example, a bug
-in a certain version of sed).
+in a certain version of sed).  If a build is being done
+with test suites enabled, the packages in the <tt style="white-space: 
nowrap;">TestConflicts</tt>
+field will be added to this list.
 </p>
 </td></tr><tr valign="top"><td>Replaces</td><td>
 <p>
@@ -1424,6 +1438,10 @@
 
 This implicitly-defined <tt style="white-space: nowrap;">Source</tt> form is 
deprecated
 (explicitly-stated simple filename/manual download is still okay).
+</p><p>
+Sources that are only needed in order to run test suites should
+use <tt style="white-space: nowrap;">TestSource</tt> and related fields, 
inside the
+<tt style="white-space: nowrap;">InfoTest</tt> block.
 </p>
 
 </td></tr><tr valign="top"><td>Source<b>N</b></td><td>
@@ -1656,6 +1674,9 @@
 <p>
 传递给 configure 脚本的额外参数(查阅
 CompileScript 字段的说明获取详细信息)。
+If a build is being done
+with test suites enabled, the value of the <tt style="white-space: 
nowrap;">TestConfigureParams</tt>
+field will be appended to this.
 
 对于 &lt; 0.13.7 的 fink 版本,这个参数也对 perl 模块<tt 
style="white-space: nowrap;">Type: Perl</tt>有效,并会添加到默认的 
perl Makefile.PL
 字符串中。
@@ -1764,13 +1785,50 @@
 <p>where <tt style="white-space: nowrap;">$perlarchdir</tt> is "darwin" for 
versions 5.8.0 and 
 earlier, and is 
 "darwin-thread-multi-2level" for versions 5.8.1 and later.</p>
-
 </td></tr><tr valign="top"><td>NoPerlTests</td><td> 
 <p>
 <b>从 fink 0.13.7 之后开始。</b>
 一个针对 perl 模块软件包的布尔值。如果为真的话,<tt 
style="white-space: nowrap;">CompileScript</tt> 的 <tt style="white-space: 
nowrap;">make test</tt> 部分会对那些指定的 perl 模块忽略。
 </p>
 </td></tr></table>
+<p><b>Test Suites:</b></p>
+<table border="0" cellpadding="0" cellspacing="10"><tr valign="bottom"><th 
align="left">Field</th><th align="left">Value</th></tr><tr 
valign="top"><td>InfoTest</td><td>
+<p>
+<b>Introduced in fink 0.25.</b>
+This field encapsulates information that will only be used when performing
+a build with test suites enabled.  It contains other fields.
+If present, this field <b>must</b> contain a <tt style="white-space: 
nowrap;">TestScript</tt>.
+All other fields are optional.  The following fields are allowed inside
+<tt style="white-space: nowrap;">InfoTest</tt>:
+</p><ul>
+<li><tt style="white-space: nowrap;">TestScript</tt>: A script which runs the 
test suite.  This script should exit
+    with status 0 if the suite passes, 1 to indicate warnings, or any other
+    value to indicate failures serious enough to be considered fatal.
+    Because of this tri-state logic, you should explicitly set an exit value in
+    this script.  For instance, <tt style="white-space: nowrap;">make 
check</tt> is a bad script,
+    since it will exit with status 1 if the check target doesn't exist.
+    <tt style="white-space: nowrap;">make check || exit 2</tt> would be a 
better script.</li>
+<li><tt style="white-space: nowrap;">TestConfigureParams</tt>: A value which 
will be appended to <tt style="white-space: nowrap;">ConfigureParams</tt>.</li>
+<li><tt style="white-space: nowrap;">TestDepends</tt> and <tt 
style="white-space: nowrap;">TestConflicts</tt>: Lists of packages that will be 
added to the <tt style="white-space: nowrap;">BuildDepends</tt> or <tt 
style="white-space: nowrap;">BuildConflicts</tt> lists.</li>
+<li><tt style="white-space: nowrap;">TestSource</tt>: Extra sources necessary 
to run the test suite.  All of the
+    affiliated fields are also supported, so you <b>must</b> also specify
+    <tt style="white-space: nowrap;">TestSource-MD5</tt>, and you may also have
+    <tt style="white-space: nowrap;">TestSourceN</tt> and corresponding <tt 
style="white-space: nowrap;">TestSourceN-MD5</tt>,
+    <tt style="white-space: nowrap;">TestTarFilesRename</tt>, etc.</li>
+<li><tt style="white-space: nowrap;">TestSuiteSize</tt>: Describes 
approximately how long the test suite takes to
+    run.  Valid values are <tt style="white-space: nowrap;">small</tt>, <tt 
style="white-space: nowrap;">medium</tt>, and <tt style="white-space: 
nowrap;">large</tt>.
+    This field is currently ignored.</li>
+<li>Any other standard field.  If a field is specified both inside and outside
+<tt style="white-space: nowrap;">InfoTest</tt>, the value inside <tt 
style="white-space: nowrap;">InfoTest</tt> will replace
+the other value when test suites are active.</li>
+</ul><p>Here's an example:
+</p><pre>InfoTest: &lt;&lt;
+    TestScript: make check || exit 2
+    TestConfigureParams: --enable-tests
+&lt;&lt;</pre>
+</td></tr></table>
+
+
 <p><b>安装阶段:</b></p>
 <table border="0" cellpadding="0" cellspacing="10"><tr valign="bottom"><th 
align="left">Field</th><th align="left">Value</th></tr><tr 
valign="top"><td>UpdatePOD</td><td>
 <p>
@@ -2134,4 +2192,4 @@
 provided the document and this copyright notice remain complete and
 unmodified. Any commercial reproduction and any online publication
 requires the explicit consent of the author.</p><hr>
-<p>Generated from <i>$Fink: packaging.zh.xml,v 1.27 2006/04/11 23:52:29 
babayoshihiko Exp $</i></p></body></html>
+<p>Generated from <i>$Fink: packaging.zh.xml,v 1.28 2006/09/19 05:54:30 
babayoshihiko Exp $</i></p></body></html>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to