/usr/share/perl/5.14.2/ExtUtils/testlib.pm is in perl-modules 5.14.2-6ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | package ExtUtils::testlib;
use strict;
use warnings;
our $VERSION = 6.57_05;
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.
|