Silence the warning "Can't locate auto/POSIX/autosplit.ix in @INC"
[p5sagit/p5-mst-13.2.git] / lib / CPANPLUS / t / 07_CPANPLUS-Internals-Extract.t
CommitLineData
6aaee015 1### make sure we can find our conf.pl file
2BEGIN {
3 use FindBin;
4 require "$FindBin::Bin/inc/conf.pl";
5}
6
7use strict;
8
9use CPANPLUS::Configure;
10use CPANPLUS::Backend;
11use CPANPLUS::Internals::Constants;
12use Test::More 'no_plan';
13use Data::Dumper;
14
15my $conf = gimme_conf();
16
17my $cb = CPANPLUS::Backend->new( $conf );
18
19### XXX SOURCEFILES FIX
20my $mod = $cb->module_tree( TEST_CONF_MODULE );
21
22isa_ok( $mod, 'CPANPLUS::Module' );
23
24my $where = $mod->fetch;
25ok( $where, "Module fetched" );
26
27my $dir = $cb->_extract( module => $mod );
28ok( $dir, "Module extracted" );
29ok( DIR_EXISTS->($dir), " Dir exists" );
30
31# Local variables:
32# c-indentation-style: bsd
33# c-basic-offset: 4
34# indent-tabs-mode: nil
35# End:
36# vim: expandtab shiftwidth=4: