X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=t%2F01.httpd-basic.t;h=cbf62d5cc448fcc0b01320340f637b78d421f6ac;hb=679a04e3cc028f727579d67882ddbfba71f18ec2;hp=fe323513ff033eea8a631195d925b55ec81940ee;hpb=0232e035ee79b921a4f5538ddefc89c8392e1b2d;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"); +};