From a93a9dd26d8c104ac481dd8d9c762dfa5a5545dc Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Wed, 13 Aug 2014 11:41:29 +0100 Subject: [PATCH] add test dependencies to Makefile.PL --- Netdisco/META.yml | 3 +++ Netdisco/Makefile.PL | 3 +++ Netdisco/t/11-portsort.t | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Netdisco/META.yml b/Netdisco/META.yml index eea17dbc..3baac1e8 100644 --- a/Netdisco/META.yml +++ b/Netdisco/META.yml @@ -3,7 +3,9 @@ abstract: 'An open source web-based network management tool.' author: - 'Oliver Gorwits ' 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 diff --git a/Netdisco/Makefile.PL b/Netdisco/Makefile.PL index 92226919..8e818eb4 100644 --- a/Netdisco/Makefile.PL +++ b/Netdisco/Makefile.PL @@ -3,6 +3,9 @@ use inc::Module::Install; 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; diff --git a/Netdisco/t/11-portsort.t b/Netdisco/t/11-portsort.t index 3563f3b6..6d34e6ec 100755 --- a/Netdisco/t/11-portsort.t +++ b/Netdisco/t/11-portsort.t @@ -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"; }