X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=t%2F007broken_links.t;h=fbe5ea21b5e3f3a49332f5dc7005acac089f661f;hb=30b4a78c4100ebdcd6e6917fbcbf1d12f4f7b4d6;hp=5ac03bca6d0b6d65a493266f5fe9d72f6d98c13e;hpb=a0144a09218bddaedb0e26df6b8839cc00c641d8;p=kivitendo-erp.git diff --git a/t/007broken_links.t b/t/007broken_links.t index 5ac03bca6..fbe5ea21b 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; @@ -33,8 +37,8 @@ find(sub { $finder->find(\$text); - }, "." -); + }, "./templates", "./doc", + ); if (@fails) { ok(0, join "\n", @fails);