Integrate mainline
[p5sagit/p5-mst-13.2.git] / lib / ExtUtils / testlib.pm
1 package ExtUtils::testlib;
2 $VERSION = 1.13_01;
3
4 use Cwd;
5 use File::Spec;
6
7 # So the tests can chdir around and not break @INC.
8 # We use getcwd() because otherwise rel2abs will blow up under taint
9 # mode pre-5.8
10 use lib map File::Spec->rel2abs($_, getcwd()), qw(blib/arch blib/lib);
11 1;
12 __END__
13
14 =head1 NAME
15
16 ExtUtils::testlib - add blib/* directories to @INC
17
18 =head1 SYNOPSIS
19
20   use ExtUtils::testlib;
21
22 =head1 DESCRIPTION
23
24 After an extension has been built and before it is installed it may be
25 desirable to test it bypassing C<make test>. By adding
26
27     use ExtUtils::testlib;
28
29 to a test program the intermediate directories used by C<make> are
30 added to @INC.
31