Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Ryan Hill <dirtyepic@g.o>
Subject: Re: [RFC] Handling of test USE flag in ebuilds
Date: Thu, 16 Sep 2010 21:37:09 -0600
On Thu, 16 Sep 2010 22:42:02 +0200
Thomas Sachau <tommy@g.o> wrote:

> Controling the test USE flag alone without the test FEATURE is useless, since it wont run the
> src_test phase.

...then don't do that? :P

> And being able to disable the test USE flag with FEATURES=test will result in
> missing deps or build-system args.

Add something like this to the beginning of the default src_test:

	hasq test $USE || return 0

I'm sure there's a reason it won't work I'm not thinking of, but that's
the jist of the idea.

> Can you tell me any reason, why you want to expose and control
> the test USE flag independently of FEATURES=test?
 
So it can be controlled on a per-package basis?  Circular dependencies,
unwanted dependencies, excessive testsuites, perpetually failing testsuites
that no one bothers to fix...  You can mask the flag but it's inconsistant
and unintuitive.  FWIW I currently have 22 packages that have the test flag
masked in package.use.mask, and probably a dozen more I just haven't gotten
around to masking.

In any case, this is straying off topic.  I believe the current policy is
this: if your package's test suite requires extra dependencies, add a test
USE flag and make them conditional on that.  I don't think there's any reason
it should change.


-- 
fonts, gcc-porting,             we hold our breath, we spin around the world
toolchain, wxwidgets            you and me cling to the outside of the earth
@ gentoo.org                EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662
Attachment:
signature.asc (PGP signature)
References:
[RFC] Handling of test USE flag in ebuilds
-- Thomas Sachau
Re: [RFC] Handling of test USE flag in ebuilds
-- Ryan Hill
Re: Re: [RFC] Handling of test USE flag in ebuilds
-- Thomas Sachau
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: [RFC] Handling of test USE flag in ebuilds
Next by thread:
Re: [RFC] Handling of test USE flag in ebuilds
Previous by date:
Re: [gentoo-commits] gentoo-x86 commit in net-zope/zope-dublincore: ChangeLog zope-dublincore-3.8.0.ebuild
Next by date:
Re: RFC: fox.eclass update


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.