logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: [Module::Build] Ready for 0.27_02?: msg#00072

Subject: Re: [Module::Build] Ready for 0.27_02?
Yitzchak Scott-Thoennes wrote:
I'm not very up on the M::B api; if these tests just need an M::B
object to work on, would changing to the t/Sample directory and doing
new_from_context be the way to get one?  Is there any additional
cleanup call needed to restore the Sample directory to a pristine
state before using it to test with (in case some other test using it
left it in a bad state of some kind)?

You can use t/lib/DistGen.pm for this.

use lib 't/lib';
require DistGen;

my $dist = DistGen->new();
$dist->regen();
...
$dist->remove();

see perldoc t/lib/DistGen.pm


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click


<Prev in Thread] Current Thread [Next in Thread>