Gentoo Archives: gentoo-perl

From: Yuval Yaari <yyuval@××××××××××.com>
To: gentoo-perl@l.g.o
Subject: Re: [gentoo-perl] Testing modules
Date: Fri, 27 Jan 2006 14:13:22
Message-Id: 43DA2A6D.40207@checkpoint.com
In Reply to: Re: [gentoo-perl] Testing modules by "Beau E. Cox"
1 Beau E. Cox wrote:
2 > On Friday 27 January 2006 02:30 am, Yuval Yaari wrote:
3 >
4 >> Beau E. Cox wrote:
5 >>
6 >>> Hi -
7 >>>
8 >>> I want to run the 'src_test' routine by default for the
9 >>> 40+ ebuilds I have made for the CPAN modules I use. The
10 >>> only way I could figure out how to do it was to make a
11 >>> new eclass (a copy of perl-module) that calls 'src_test'
12 >>> at the end of the 'src_compile' routine. How can I do this
13 >>> in a more *standard* way?
14 >>>
15 >>> The docs mention:
16 >>>
17 >>> env FEATURES=maketest ebuild XML-Simple-2.14.ebuild test
18 >>>
19 >>> Is there any way to set the use flag so this happens
20 >>> automatically? I have tried changing /etc/portage/package.use
21 >>> like this:
22 >>>
23 >>> XML-Simple maketest
24 >>>
25 >>> but the emerge still says 'test phase not enabled'.
26 >>> I am missing something...
27 >>>
28 >> Yup, you're missing something; maketest is not a USE flag.
29 >> I think it's:
30 >> echo dev-perl/XML-Simple maketest >> /etc/portage/package.features
31 >>
32 >
33 > Thanks Yuval - but I tried it and sill get 'test phase not enabled'
34
35 Sorry, I've been using this:
36 http://forums.gentoo.org/viewtopic.php?t=280748
37
38 So either use it, too, or set the global FEATURES in /etc/make.conf
39
40 I'm sorry I can't think of anything better ;-)
41
42 --Yuval