Debian Codegraph @

t/podtoc.t

raw symbols SCIP
1 # podtoc testing
2
3 # ------ pragmas
4 use strict;
5 use warnings;
6 use Test::More tests => 2;
7
8 # ------ define variable
9 my $output = undef; # output from podtoc
10
11 # ------ add pmtools to PATH for testing, so we use the current pmtools
12 $ENV{"PATH"} = 'blib/script:' . $ENV{"PATH"};
13
14 eval {
15 $output = `bin/podtoc bin/podtoc 2>&1`;
16 };
17
18 is($?, 0, "podtoc runs");
19 like(
20 $output,
21 qr/NAME.*DESCRIPTION.*EXAMPLES.*SEE ALSO.*AUTHORS and COPYRIGHTS.*LICENSE/ms,
22 "found Table of Contents"
23 );