File: 08-base-subdir-subonly.t

package info (click to toggle)
libfindbin-libs-perl 1.64-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 180 kB
  • sloc: perl: 389; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 352 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package Testophile;

use v5.8;

use Test::More tests => 2;

BEGIN   { mkdir './blib/foo', 0555  }
END     { rmdir './blib/foo'        }

require FindBin::libs;

FindBin::libs->import( qw( base=blib subdir=foo subonly ) );

ok $INC[0] =~ m{/blib/foo$}, 'Found only foo subdir';

FindBin::libs->import;

ok $INC[0] =~ m{/lib$}, 'Added lib dir';

__END__