File: 05-export-subdir.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 (19 lines) | stat: -rw-r--r-- 331 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package Testophile;

use v5.8;

use Test::More tests => 1;

$\ = "\n";
$, = "\n\t";

BEGIN { -d './lib/foo' || mkdir './lib/foo', 0555  or die $! }
END   { -d './lib/foo' && rmdir './lib/foo'        or die $! }

use FindBin::libs qw( export subdir=foo );

my $found   = grep m{/foo}, @lib;

ok $found, 'Found foo subdir';

__END__