add test dependencies to Makefile.PL

This commit is contained in:
Oliver Gorwits
2014-08-13 11:41:29 +01:00
parent 7f768b544f
commit a93a9dd26d
3 changed files with 7 additions and 1 deletions

View File

@@ -3,7 +3,9 @@ abstract: 'An open source web-based network management tool.'
author:
- 'Oliver Gorwits <oliver@cpan.org>'
build_requires:
Env::Path: 0
ExtUtils::MakeMaker: 6.59
Test::More: 0.88
configure_requires:
ExtUtils::MakeMaker: 6.59
distribution_type: module
@@ -67,6 +69,7 @@ requires:
Sereal: 0
Socket6: 0.23
Starman: 0.4008
Sys::Proctitle: 0
Template: 2.24
Template::Plugin::CSV: 0.04
Template::Plugin::Number::Format: 1.02

View File

@@ -4,6 +4,9 @@ name 'App-Netdisco';
license 'bsd';
all_from 'lib/App/Netdisco.pm';
test_requires 'Test::More' => 0.88;
test_requires 'Env::Path' => 0;
requires 'Algorithm::Cron' => 0.07;
requires 'AnyEvent' => 7.05;
requires 'AnyEvent::DNS::EtcHosts' => 0;

View File

@@ -9,7 +9,7 @@ use FindBin qw( $Bin );
my @phantomjs = Env::Path->PATH->Whence('phantomjs');
my $phantomjs = scalar @phantomjs ? $phantomjs[0] : $ENV{ND_PHANTOMJS};
if ( !-x $phantomjs ) {
if ( ! defined $phantomjs or !-x $phantomjs ) {
plan skip_all =>
"phantomjs not found, please set ND_PHANTOMJS or install phantomjs to the default location";
}