Commit | Line | Data |
b0c8af80 |
1 | package ExtUtils::testlib; |
a4530404 |
2 | $VERSION = 1.13_01; |
d713330a |
3 | |
a4530404 |
4 | use Cwd; |
f6d6199c |
5 | use File::Spec; |
a4530404 |
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); |
b0c8af80 |
11 | 1; |
12 | __END__ |
13 | |
14 | =head1 NAME |
15 | |
16 | ExtUtils::testlib - add blib/* directories to @INC |
17 | |
18 | =head1 SYNOPSIS |
19 | |
39234879 |
20 | use ExtUtils::testlib; |
b0c8af80 |
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 | |