1use Test::More tests => 2;
2
3use strict;
4use warnings;
5
6my $blib = $ENV{PERL_CORE} ? '-I../../lib' : '-Mblib';
7
8my $pl = $0;
9$pl =~ s{t$}{pl};
10
11my $out = `$^X $blib $pl 0`;
12$out =~ s{\s+}{ }gs;
13$out =~ s{^\s+|\s+$}{}gs;
14is($out, 'Name: trypodi - pod sections usage test Actions: Para for actions. help: Help text.', 'selection of specific sections');
15
16$out = `$^X $blib $pl 1`;
17$out =~ s{\s+}{ }gs;
18$out =~ s{^\s+|\s+$}{}gs;
19is($out, 'Caveats: Description caveat text. Caveats: Options caveat text. Caveats: Environment caveat text.', 'selection of caveats sections');
20
21