Update of /cvsroot/fink/web/xml/packaging
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv5645
Modified Files:
packaging.ja.xml packaging.zh.xml
Log Message:
InfoTest (en 1.88)
Index: packaging.zh.xml
===================================================================
RCS file: /cvsroot/fink/web/xml/packaging/packaging.zh.xml,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- packaging.zh.xml 11 Apr 2006 23:52:29 -0000 1.27
+++ packaging.zh.xml 19 Sep 2006 05:54:30 -0000 1.28
@@ -1123,7 +1123,14 @@
è¿ä¸ä¸ªå段æ¥æ§å¶æå
³ç»èã</p>
<p>å¨<em>è¡¥ä¸é¶æ®µ</em>ï¼æºä»£ç ä¼è¢«æä¸è¡¥ä¸ï¼ä»¥ä½¿å¾å¯ä»¥å¨
Darwin ä¸é¢ç¼è¯ãç± UpdateConfigGuessï¼UpdateLibtoolï¼Patch å
PatchScrip è¿å 个å段æææçæä½å°è¢«æç
§é¡ºåºæ§è¡ã</p>
<p>å¨<em>ç¼è¯é¶æ®µ</em>ï¼æºä»£ç 被é
ç½®åç¼è¯ãé常è¿ä¼ä»¥æäºåæ°æ¥è°ç¨
<code>configure</code> èæ¬ï¼ç¶åæ§è¡ä¸ä¸ª <code>make</code> å½ä»¤ã
-详ç»ä¿¡æ¯è¯·æ¥ç CompileScript å段çæè¿°ã</p>
+详ç»ä¿¡æ¯è¯·æ¥ç CompileScript å段çæè¿°ã
+<!-- start translation -->
+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.
+<!-- end translation -->
+</p>
<p>å¨<em>å®è£
é¶æ®µ</em>ï¼è½¯ä»¶å
被å®è£
å°ä¸ä¸ªä¸´æ¶ç®å½ï¼<filename>/sw/src/fink.build/root-gimp-1.2.1-1</filename>
(= %d)ã(注æ "root-" é¨åã)
ææé常åºè¯¥å®è£
å° <filename>/sw</filename>
çæ件ç°å¨è¢«å®è£
å¨
<filename>/sw/src/fink.build/root-gimp-1.2.1-1/sw</filename> (= %i = %d%p)ã
@@ -1469,6 +1476,11 @@
<em>ä» fink 0.9.0 å¼å§ã</em>
åªå¨ç¼è¯æ¶éè¦çä¾èµå
³ç³»çæ¸
åã
è¿å¯ä»¥ç¨äºååºæ建软件å
å¿
须使ç¨å·¥å
·(æ¯å¦
flex)ãå®æ¯æå Depends ç¸åçè¯æ³ã
+<!-- start translation -->
+If a build is being done
+with test suites enabled, the dependencies in the <code>TestDepends</code>
+field will be added to this list.
+<!-- end translation -->
</p>
</itemd></item>
@@ -1510,7 +1522,9 @@
being compiled. This can be used to prevent <code>./configure</code>
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 <code>TestConflicts</code>
+field will be added to this list.
</p>
</itemd></item>
<!-- end translation -->
@@ -1622,6 +1636,10 @@
<!-- start translation -->
This implicitly-defined <code>Source</code> 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 <code>TestSource</code> and related fields, inside the
+<code>InfoTest</code> block.
</p>
<!-- end translation -->
</itemd></item>
@@ -1929,6 +1947,9 @@
<p>
ä¼ éç» configure èæ¬çé¢å¤åæ°(æ¥é
CompileScript å段ç说æè·å详ç»ä¿¡æ¯)ã
+If a build is being done
+with test suites enabled, the value of the <code>TestConfigureParams</code>
+field will be appended to this.
å¯¹äº < 0.13.7 ç fink çæ¬ï¼è¿ä¸ªåæ°ä¹å¯¹ perl 模å<code>Type:
Perl</code>ææï¼å¹¶ä¼æ·»å å°é»è®¤ç perl Makefile.PL
å符串ä¸ã
@@ -2043,7 +2064,6 @@
<p>where <code>$perlarchdir</code> is "darwin" for versions 5.8.0 and
earlier, and is
"darwin-thread-multi-2level" for versions 5.8.1 and later.</p>
-<!-- end translation -->
</itemd></item>
<item><itemt>NoPerlTests</itemt>
@@ -2055,6 +2075,48 @@
</itemd></item>
</itemtable>
+<p><em>Test Suites:</em></p>
+<itemtable>
+
+<item><itemt>InfoTest</itemt>
+<itemd>
+<p>
+<em>Introduced in fink 0.25.</em>
+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 <em>must</em> contain a <code>TestScript</code>.
+All other fields are optional. The following fields are allowed inside
+<code>InfoTest</code>:
+</p><ul>
+<li><code>TestScript</code>: 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, <code>make check</code> is a bad script,
+ since it will exit with status 1 if the check target doesn't exist.
+ <code>make check || exit 2</code> would be a better script.</li>
+<li><code>TestConfigureParams</code>: A value which will be appended to
<code>ConfigureParams</code>.</li>
+<li><code>TestDepends</code> and <code>TestConflicts</code>: Lists of packages
that will be added to the <code>BuildDepends</code> or
<code>BuildConflicts</code> lists.</li>
+<li><code>TestSource</code>: Extra sources necessary to run the test suite.
All of the
+ affiliated fields are also supported, so you <em>must</em> also specify
+ <code>TestSource-MD5</code>, and you may also have
+ <code>TestSourceN</code> and corresponding <code>TestSourceN-MD5</code>,
+ <code>TestTarFilesRename</code>, etc.</li>
+<li><code>TestSuiteSize</code>: Describes approximately how long the test
suite takes to
+ run. Valid values are <code>small</code>, <code>medium</code>, and
<code>large</code>.
+ This field is currently ignored.</li>
+<li>Any other standard field. If a field is specified both inside and outside
+<code>InfoTest</code>, the value inside <code>InfoTest</code> will replace
+the other value when test suites are active.</li>
+</ul><p>Here's an example:
+</p><codeblock>InfoTest: <<
+ TestScript: make check || exit 2
+ TestConfigureParams: --enable-tests
+<<</codeblock>
+</itemd></item>
+</itemtable>
+<!-- end translation -->
+
<p><em>å®è£
é¶æ®µï¼</em></p>
<itemtable>
Index: packaging.ja.xml
===================================================================
RCS file: /cvsroot/fink/web/xml/packaging/packaging.ja.xml,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- packaging.ja.xml 11 Apr 2006 23:52:29 -0000 1.39
+++ packaging.ja.xml 19 Sep 2006 05:54:30 -0000 1.40
@@ -1394,6 +1394,8 @@
<em>ã³ã³ãã¤ã«æ®µé</em>ã§ã¯ã½ã¼ã¹ã® configure
ã¨ã³ã³ãã¤ã«ãè¡ããã¾ãï¼
æ®éã¯ã¹ã¯ãªãã <code>configure</code>
ãé©åãªå¼æ°ã§èµ·åãï¼ã³ãã³ã <code>make</code>
ãå®è¡ãããã¨ã«ãªãã¾ãï¼
詳細ã¯ãã£ã¼ã«ã CompileScript
ãåç
§ãã¦ä¸ããï¼
+
ãã«ãã«å¯¾ããã¹ãã¹ã¤ã¼ããæå¹ãªå ´å (fink 0.25
ã®æ°ããæ©è½ã§ï¼ç¾å¨ã¡ã³ããã¢ã¼ãã§ãã«ãä¸ã«é©ç¨ããã)ï¼
+ CompileScript ã®ç´å¾ã« TestScript
ãå®è¡ãããï¼
</p>
<p>
<em>ã¤ã³ã¹ãã¼ã«æ®µé</em>ã§ã¯ï¼ããã±ã¼ã¸ã¯ä»®ãã£ã¬ã¯ããª
@@ -1786,6 +1788,9 @@
ãã«ãæã®ã¿ã«é©ç¨ãããä¾åæ§ã®ãªã¹ãï¼
ãã«ãæã«ã¯å¿
è¦ã ãï¼å®è¡æã«ã¯ä½¿ãããªããã¼ã«
(flexãªã©) ã示ãã®ã«ä½¿ãï¼
æ¸å¼ã¯ Depends
ã¨åãï¼
+
ãã«ããããéã«ãã¹ãã¹ã¤ã¼ããæå¹ã§ããã°ï¼
+ <code>TestDepends</code>
+
ããã®ãªã¹ãã«è¿½å ãããï¼
</p>
</itemd>
</item>
@@ -1834,6 +1839,7 @@
å½è©²ããã±ã¼ã¸ãã³ã³ãã¤ã«ä¸ã«ã¤ã³ã¹ãã¼ã«ããã¦ã¯ãããªãããã±ã¼ã¸ã®ä¸è¦§ï¼
ããã¯ï¼ <code>./configure</code>
ãã³ã³ãã¤ã©ãï¼æã¾ãããªãã©ã¤ãã©ãªããããè¦ããï¼
å£ãããã¨ãåãã£ã¦ãããã¼ã«
(ä¾ãã°ï¼ç¹å®ã®ãã¼ã¸ã§ã³ã® sed ã«ãããã°)
ã®ãã¼ã¸ã§ã³ã使ç¨ãããã¨ãé¿ããããã«ä½¿ãã¾ãï¼
+ãã«ãæã«ãã¹ãã¹ã¤ã¼ããæå¹ãªå ´åï¼
<code>TestConflicts</code>
ãã£ã¼ã«ãå
ã®ããã±ã¼ã¸ã¯ãã®ãªã¹ãã«è¿½å ããã¾ãï¼
</p>
</itemd></item>
<item>
@@ -1956,6 +1962,9 @@
<code>gnome</code>
ã¨ããå¤ã¯ <code>mirror:gnome:stable/sources/%n/%n-%v.tar.gz</code>
ã®çç¥å½¢ï¼
ããã©ã«ãå¤ã¯
<code>%n-%v.tar.gz</code> (ããªãã¡ããã¥ã¢ã«ã»ãã¦ã³ãã¼ã)
ã«ãªã£ã¦ããï¼
æ示çã«
<code>Source</code> ãæå®ããã®ã¯å»æ¢äºå®ã§ãã
(æ示çã«ç°¡åãªãã¡ã¤ã«åæå®/æåãã¦ã³ãã¼ãããã®ã¯å¯)ï¼
+</p><p>
+ãã¹ãã¹ã¤ã¼ããå®è¡ããããã ãã«å¿
è¦ãªã½ã¼ã¹ã¯ï¼<code>TestSource</code>
+ããã³ <code>InfoTest</code>
å
ã®é¢é£ãã£ã¼ã«ãã使ã£ã¦ãã ããï¼
</p>
</itemd>
</item>
@@ -2316,6 +2325,8 @@
<p>
configure
ã¹ã¯ãªããã«æ¸¡ãä»å çãªãã©ã¡ã¼ã¿ï¼
(詳細ã¯
CompileScript ãåç
§)
+
ãã«ãæã«ãã¹ãã¹ã¤ã¼ããæå¹ãªå ´åï¼<code>TestConfigureParams</code>
+
ã®å¤ãããã«è¿½å ããã¾ãï¼
ãã¼ã¸ã§ã³ 0.13.7
以éã® Fink ã§ã¯ï¼
ãã®ãã©ã¡ã¼ã¿ã¯ <code>Type: Perl</code> ã¨ãªã£ã¦ãã perl
ã¢ã¸ã¥ã¼ã«ã«ã使ãã¾ãï¼
@@ -2442,6 +2453,52 @@
</itemd>
</item>
</itemtable>
+
+<p><em>ãã¹ãã¹ã¤ã¼ã:</em></p>
+<itemtable>
+
+<item><itemt>InfoTest</itemt>
+<itemd>
+<p>
+<em>fink 0.25 ã«ã¦å°å
¥ï¼</em>
+å½ãã£ã¼ã«ãã¯ï¼ãã¹ãã¹ã¤ã¼ããæå¹ãªå ´åã®ãã«ãå®è¡æã«ã®ã¿ä½¿ç¨ãããæ
å ±ãå
ãã ãã®ã§ãï¼
+ããã«ã¯ä»ã®ãã£ã¼ã«ããå«ã¾ãã¾ãï¼
+ç¾å¨ã®ã¨ããï¼ãã®ä¸ã« <code>TestScript</code>
ããªããã°<em>ãªãã¾ãã</em>ï¼
+ä»ã®ãã£ã¼ã«ãã¯ãªãã·ã§ã³ã§ãï¼
+以ä¸ã®ãã£ã¼ã«ãã <code>InfoTest</code>
ã«ã¦è¨±å¯ããã¦ãã¾ã:
+</p><ul>
+<li><code>TestScript</code>:
+ ãã¹ãã¹ã¤ã¼ããå®è¡ããã¹ã¯ãªããï¼
+ ãã®ã¹ã¯ãªããã¯ï¼ã¹ã¤ã¼ããçµäºããã¨ã㯠status
ãè¿ãã¾ãï¼
+ 0 ã®å ´åã¯éã£ããã¨ã示ãï¼
+ 1 ã®å ´åã¯è¦åãããï¼
+
ä»ã®å¤ã®å ´åã¯è´å½çã¨èããããé大ãªåé¡ããã£ããã¨ã示ãã¾ãï¼
+
ãã®3ç¶æ
ã®ããï¼ã¹ã¯ãªããå
ã§çµäºå¤ãæ示çã«è¨å®ããªããã°ãªãã¾ããï¼
+ ä¾ãã°ï¼ <code>make check</code> ã¯æªãã¹ã¯ãªããã§ãï¼
+ ããã¯çµäºæã«ï¼check ã®ã¿ã¼ã²ãããåå¨ããªããã°
status 1 ãè¿ãããã§ãï¼
+ <code>make check || exit 2</code>
ã¯æ¯è¼çè¯ãã¹ã¯ãªããã§ãï¼
+ </li>
+<li><code>TestConfigureParams</code>:
+
ãã¹ãã¹ã¤ã¼ããå®è¡ããããã«å¿
è¦ãªè¿½å ã½ã¼ã¹ã§ãï¼
+ é¢é£ããå
¨ã¦ã®ãã£ã¼ã«ãããµãã¼ãããã¦ãã¾ãï¼
+
<code>TestSource-MD5</code>ã¯æå®ãããªããã°<em>ãªãã¾ãã</em>ï¼
+ <code>TestSourceN</code> ã対å¿ãã <code>TestSourceN-MD5</code> ,
<code>TestTarFilesRename</code>
ãªã©ã追å ãããã¨ãå¯è½ã§ãï¼</li>
+<li><code>TestSuiteSize</code>:
+
ãã¹ãã¹ã¤ã¼ãã©ã®ç¨åº¦ããããã®ãããã®æéã示ãã¾ãï¼
+ å¤ã¯ï¼<code>small</code>, <code>medium</code>, 㨠<code>large</code>
ã§ãï¼
+ ãã®ãã£ã¼ã«ãã¯ç¾å¨ã®ã¨ããç¡è¦ããã¾ãï¼
+ </li>
+<li>
+ãã®ä»ã®ãã£ã¼ã«ãï¼<code>InfoTest</code>
å
ã¨å¤ã§å®ç¾©ããããã£ã¼ã«ãã«é¢ãã¦ï¼
+ã¹ã¤ã¼ããæå¹ãªå ´åï¼<code>InfoTest</code>
å
ã®å¤ãä»ã®å¤ãæ¸ãæãã¾ãï¼</li>
+</ul><p>ä¾:
+</p><codeblock>InfoTest: <<
+ TestScript: make check || exit 2
+ TestConfigureParams: --enable-tests
+<<</codeblock>
+</itemd></item>
+</itemtable>
+
<p>
<em>ã¤ã³ã¹ãã¼ã«æ®µéé¢é£:</em>
</p>
-------------------------------------------------------------------------
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