From: Sven Schöling Date: Fri, 10 Feb 2012 15:58:09 +0000 (+0100) Subject: Test skippen wenn nötige Pakete nicht installiert sind. X-Git-Tag: release-2.7.0beta2~5^2~31 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=68a7345e6627abdce3554d0e94e5ff70dcb8ed97;p=kivitendo-erp.git Test skippen wenn nötige Pakete nicht installiert sind. --- diff --git a/t/007broken_links.t b/t/007broken_links.t index 5ac03bca6..93148f4d4 100644 --- a/t/007broken_links.t +++ b/t/007broken_links.t @@ -8,9 +8,13 @@ use strict; use File::Find; -use LWP::Simple; -use Test::More tests => 1; -use URI::Find; +use Test::More; + +if (eval " use LWP::Simple; use URI::Find; 1 ") { + plan tests => 1; +} else { + plan skip_all => "LWP::Simple or URI::Find not installed"; +} my @fails;