| 1 |
# pfcat testing |
| 2 |
|
| 3 |
# ------ pragmas |
| 4 |
use strictscip-perl cpan pmtools 2.2.0 strict/; |
| 5 |
use warningsscip-perl cpan pmtools 2.2.0 warnings/; |
| 6 |
use Test::Morescip-perl cpan pmtools 2.2.0 Test/More/ tests => 2; |
| 7 |
|
| 8 |
# ------ define variable |
| 9 |
my $output = undef; # output from pfcat |
| 10 |
|
| 11 |
# ------ add pmtools to PATH for testing, so we use the current pmtools |
| 12 |
$ENVscip-perl cpan pmtools 2.2.0 main/`%ENV`.{"PATH"} = 'blib/script:' . $ENVscip-perl cpan pmtools 2.2.0 main/`%ENV`.{"PATH"}; |
| 13 |
|
| 14 |
eval { |
| 15 |
$output = `bin/pfcat seek 2>&1`; |
| 16 |
}; |
| 17 |
|
| 18 |
isscip-perl cpan pmtools 2.2.0 main/is().($?scip-perl cpan pmtools 2.2.0 main/`$?`., 0, "pfcat runs"); |
| •19 |
likescip-perl cpan pmtools 2.2.0 main/like().($output, qr/There is no .*systell.* function.\s+Use\s.*sysseek/, "catted module function"); |