File: 05-export-subdir.t

package info (click to toggle)
libfindbin-libs-perl 4.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 704 kB
  • sloc: perl: 1,323; sh: 38; makefile: 7
file content (19 lines) | stat: -rw-r--r-- 334 bytes parent folder | download | duplicates (7)
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{\bfoo\b}, @lib;

ok $found, 'Found foo subdir';

__END__