On 28 Aug 2006, at 23:50, Daniel Macks wrote:

> On Mon, Aug 28, 2006 at 05:42:08PM -0400, Chris Zubrzycki wrote:
>> On Aug 28, 2006, at 5:22 PM, Neil Tiffin wrote:
>>
>>> As a package maintainer I would like to see it invoked with  
>>> option "-
>>> T" like "fink -KkT rebuild <package_name>." Once I figure out how to
>>> run the tests and put the instructions in the .info file, I can then
>>> easily run them every time the package is upgraded.  This would be a
>>> lot simpler than having to go to the directory and figure out how to
>>> tun the test each time (even though it is usually "make test",
>>> sometimes there is other stuff that is required.
>
> Might make sense for this to be controlled by the existing -m
> (maintainer-mode build) flag.
>
>> As a maintainer it will be up to you to figure out what tests are
>> available and which ones to run, and any extra steps that need to be
>> done. Also, how will the tests be reported? Not all tests may exit
>> with a non-zero status, it may just report modules built, and what if
>> one didn't build for some reason, but the build finished ok? How will
>> the output be parsed?
>
> There are also several different standards for even what command runs
> the tests. I guess 'make check' is the autotools standard, but lots of
> auto*-using packagers don't know that and have custom-written 'make
> test'. And the perl world long ago standardized on 'make test' (and we
> have a specific NoPerlTests flag to control that). Plus who knows what
> other custom variants there are...have to cd somewhere first?
>
> Given the variety of commands needed to run tests and the different
> ways those results might need to be interpretted and the desire to be
> able to have this togglalble at the level of fink itself, it sounds
> like we're headed for a TestScript or MaintainerScript field.

Looking just at a couple of pkgs (in my exp dir), I see that running  
tests
involves for a number of them, in addition to the usual make [-i] [- 
k] check
or the like, also additional %c _ as, just grepping from the  
ConfigureParams
in that dir :
--enable-compile-warnings=yes
--enable-maintainer-mode
--enable-test
--enable-test-component=yes
--enable-tests

so it seems a flag ( "-m" _ which I didn't know...,; or whatever)  
might be
more convenient than an additional field...

JF Mertens

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to