File: plxload.t

package info (click to toggle)
pmtools 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 384 kB
  • ctags: 17
  • sloc: perl: 752; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 531 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
# plxload testing

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

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

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

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

is($output, "", "modules loaded");

# TODO: Add tests after I get plxload working again
#is($?,        0,                "plxload runs");
#like($output, qr/Tie.*Hash.pm/, "listed loaded modules");