X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=t%2F01.httpd-basic.t;h=cbf62d5cc448fcc0b01320340f637b78d421f6ac;hb=0e62abcbcaa42ab927cc252bd96b3a0e2e1a0408;hp=fe323513ff033eea8a631195d925b55ec81940ee;hpb=28823167d12d4cd1419cc6a58900c0fc5819e1af;p=maypole.git diff --git a/t/01.httpd-basic.t b/t/01.httpd-basic.t index fe32351..cbf62d5 100644 --- a/t/01.httpd-basic.t +++ b/t/01.httpd-basic.t @@ -1,5 +1,10 @@ use Test::More tests=>2; - -use_ok("Maypole::HTTPD"); -use_ok("Maypole::HTTPD::Frontend"); +SKIP: { + no warnings 'all'; + my $have_httpd = eval ' use HTTP::Server::Simple::Static; $HTTP::Server::Simple::Static::VERSION; '; + warn "have_httpd : $have_httpd\n"; + skip ('Maypole::HTTPD tests', 2) unless ( $have_httpd ); + use_ok("Maypole::HTTPD"); + use_ok("Maypole::HTTPD::Frontend"); +};