https://wiki.finkproject.org/index.php?title=Fink:Major_New_Feature_Plans:Test_suite&feed=atom&action=historyFink:Major New Feature Plans:Test suite - Revision history2024-03-28T22:45:02ZRevision history for this page on the wikiMediaWiki 1.35.13https://wiki.finkproject.org/index.php?title=Fink:Major_New_Feature_Plans:Test_suite&diff=80&oldid=prevDmacks: Reverted edit of RymWk6, changed back to last version by Dmacks2007-06-11T18:40:13Z<p>Reverted edit of RymWk6, changed back to last version by Dmacks</p>
<p><b>New page</b></p><div>{{Fink_Header}}<br />
<br />
It sounds like this feature needs to be able to do, at a minimum, <br />
the following in an info file:<br />
*Add extra dependencies for running the tests<br />
*Behave differently during compilation (ConfigureParams, CompileScript)<br />
*Specify a script which is run immediately after building and which will invoke the test suite and do some degree of interpretation of the results (exit status 0/1/2 for pass/warning/failure, for instance)<br />
<br />
Here's my idea for how to add this to the .info syntax in a backwards-compatible matter. Define a new field, InfoTest, which will be ignored unless running in test mode (either enabled as part of -m or with a new option). (Actually, dmacks says that unknown fields aren't considered a problem, so maybe we don't need these to be in a block.)<br />
<br />
Here's what this field can contain:<br />
*<tt>TestDepends</tt> (effectively appended to <tt>BuildDepends</tt>, probably also want a corresponding <tt>TestConflicts</tt> just in case)<br />
*<tt>TestConfigureParams</tt> (appended to <tt>ConfigureParams</tt>)<br />
*<s><tt>TestCompileScript</tt> (<b>replaces</b> <tt>CompileScript</tt>; appending to <tt>CompileScript</tt> isn't useful, that can just go in <tt>TestScript</tt>)</s> You can just specify a CompileScript inside the InfoTest instead.<br />
*<tt>TestScript</tt> (run the tests and exit with 0/1/&gt;1 for pass/warning/error)<br />
*<tt>TestSource</tt> and related fields (treated as "higher N than the highest <tt>Source'''N'''</tt>)<br />
*<tt>TestSuiteSize</tt>: Optional. Valid values are <tt>small</tt>, <tt>medium</tt>, and <tt>large</tt>. Some day we might want to provide a way for users to express "run the test suite by default if it won't take too long".<br />
It can also contain anything from the regular .info file and it would be interpreted normally, replacing the value outside the InfoTest.<br />
<br />
{{Fink_Header}}<br />
<br />
[[Category: Fink|New Feature Plans Test suite]]<br />
[[Category: Fink_Roadmap|New Feature Plans Test suite]]<br />
[[Category: Fink Infofile Syntax|New Feature Plans Test suite]]</div>Dmacks