[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mandatory support for -nocheck in DEB_BUILD_OPTIONS



On Tue, 6 Nov 2007 19:13:48 +0100
Kurt Roeckx <kurt@roeckx.be> wrote:

> On Tue, Nov 06, 2007 at 05:47:17PM +0000, Neil Williams wrote:
> > 
> > Making the last stage optional means that -nocheck achieves nothing,
> > IMHO. If the maintainer chooses to allow 'make check' during the build,
> > I believe that Policy should stipulate that the maintainer must ensure
> > that 'make check' can be skipped when appropriate. I use make check in
> > some of my own packages, it is useful on things like the autobuilders.
> > However, if Debian is ever to cross-build successfully, EVERY test
> > suite that executes compiled code MUST be skipped when cross-building.
> > The simplest way to do that is to specify that cross-building must
> > pass -nocheck in DEB_BUILD_OPTIONS and that all packages must obey
> > -nocheck.
> 
> Atleast some packages now don't run the testsuite when
> DEB_BUILD_GNU_TYPE != DEB_HOST_GNU_TYPE.
> 
> Are there any other reasons why testsuites shouldn't be run?

As Bernd Zeimetz pointed out, omitting the test suite can be very
useful during debugging, testing minor tweaks to the rules and other
stages during packaging when you just need a shortened build, prior to
a full build prior to upload.

-- 

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgpfOXnog1tMf.pgp
Description: PGP signature


Reply to: