Added Cyg-Win
This commit is contained in:
parent
82cbc206eb
commit
413c315806
10586 changed files with 3806249 additions and 0 deletions
42
Agent-Windows/OGP64/usr/share/perl5/5.40/ExtUtils/testlib.pm
Normal file
42
Agent-Windows/OGP64/usr/share/perl5/5.40/ExtUtils/testlib.pm
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
package ExtUtils::testlib;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
our $VERSION = '7.70';
|
||||
$VERSION =~ tr/_//d;
|
||||
|
||||
use Cwd;
|
||||
use File::Spec;
|
||||
|
||||
# So the tests can chdir around and not break @INC.
|
||||
# We use getcwd() because otherwise rel2abs will blow up under taint
|
||||
# mode pre-5.8. We detaint is so @INC won't be tainted. This is
|
||||
# no worse, and probably better, than just shoving an untainted,
|
||||
# relative "blib/lib" onto @INC.
|
||||
my $cwd;
|
||||
BEGIN {
|
||||
($cwd) = getcwd() =~ /(.*)/;
|
||||
}
|
||||
use lib map { File::Spec->rel2abs($_, $cwd) } qw(blib/arch blib/lib);
|
||||
1;
|
||||
__END__
|
||||
|
||||
=head1 NAME
|
||||
|
||||
ExtUtils::testlib - add blib/* directories to @INC
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
use ExtUtils::testlib;
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
After an extension has been built and before it is installed it may be
|
||||
desirable to test it bypassing C<make test>. By adding
|
||||
|
||||
use ExtUtils::testlib;
|
||||
|
||||
to a test program the intermediate directories used by C<make> are
|
||||
added to @INC.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue