testing p5-bar that is a depndency of p5-foo

Mark E. Perkins mep1 at sixshooterpeaks.net
Sat Dec 4 15:24:53 PST 2010


On 2010/12/04 14:08, Bradley Giesbrecht wrote:
> 
> On Dec 4, 2010, at 11:06 AM, Mark E. Perkins wrote:
> 
>> Greetings. I'm bringing up a new system and decided to give MacPorts a go
>> for package management. I use quite a few Perl modules, and I always run
>> the included test suite when I install a new module. It's nice that
>> MacPorts provides 'port -v test p5-foo' to run the test suite and show me
>> the results. But if p5-foo depends on p5-bar (which is built and
>> installed
>> before building p5-foo), the test suite for p5-bar is not run with that
>> command.
>>
>> Is there a way to run the 'test' phase on p5-bar "automatically" before
>> moving on to p5-foo?  Or must I always sort out the dependencies
>> (e.g., via
>> 'port -vy') and run the tests of dependent modules by hand?
> 
> Not exactly what you are looking for but you might be able to use other
> port functions in a script to get close to what you desire.
> 
> for p5 in `port -q rdeps p5-xml-sax-writer | grep p5-`;do port -v test
> $p5;done
> 
> or
> 
> for p5 in `port -q echo active | grep ^p5-`;do port -v test $p5;done
> 
> 
> Brad

No, not exactly, but certainly good enough.  Rolling my own was the next
option on my list.  Thanks for the pointers at other useful port functions.

Cheers,
Mark


More information about the macports-users mailing list