Hi,

Ciaran McCreesh <[EMAIL PROTECTED]>:

> On Wed, 19 Mar 2008 18:32:41 -0600
> Ryan Hill <[EMAIL PROTECTED]> wrote:
> > > * 174335: Some ebuild use FEATURES. Can we get them to stop doing
> > > that, or do we have to force package managers to emulate it?
> > 
> > We seriously need a PM-independent way of saying "run the
> > testsuite", "run the testsuite with user privledges", and "run the
> > testsuite with root privledges if you can, otherwise forget it".
> > Also required is the ability to make test failures non-fatal on a
> > per-package basis, though this probably has nothing to do with the
> > PMS.
> 
> Sounds like you need to write your own src_test for these situations.

 
if has userpriv ${FEATURES} && ! has usersandbox ${FEATURES};then
        make check-local || die "test suite failed"
else
        ewarn "Activate FEATURES=userpriv and deactivate \
                FEATURES=usersandbox to run testsuite."
fi

^ That's mlocate, mysql also tests for FEATURES.

V-Li

-- 
Christian Faulhammer, Gentoo Lisp project
<URL:http://www.gentoo.org/proj/en/lisp/>, #gentoo-lisp on FreeNode

<URL:http://www.faulhammer.org/>

Attachment: signature.asc
Description: PGP signature

Reply via email to