File: podtoc.t

package info (click to toggle)
pmtools 2.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 388 kB
  • sloc: perl: 803; makefile: 10
file content (23 lines) | stat: -rw-r--r-- 490 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# podtoc testing

# ------ pragmas
use strict;
use warnings;
use Test::More tests => 2;

# ------ define variable
my $output = undef;	# output from podtoc

# ------ add pmtools to PATH for testing, so we use the current pmtools
$ENV{"PATH"} = 'blib/script:' . $ENV{"PATH"};

eval {
    $output = `bin/podtoc bin/podtoc 2>&1`;
};

is($?, 0, "podtoc runs");
like(
    $output,
    qr/NAME.*DESCRIPTION.*EXAMPLES.*SEE ALSO.*AUTHORS and COPYRIGHTS.*LICENSE/ms,
    "found Table of Contents"
);