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 Foo`;
12$out =~ s{\s+}{ }gs;
13$out =~ s{^\s+|\s+$}{}gs;
14is($out, 'Foo: This is foo', 'selection of Foo section');
15
16$out = `$^X $blib $pl Bar`;
17$out =~ s{\s+}{ }gs;
18$out =~ s{^\s+|\s+$}{}gs;
19is($out, 'Bar: This is bar.', 'selection of Bar section');
20
21