X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Foptional_lighttpd-fastcgi.t;h=43a474e69cdcbfe77094e0e5e2de81748c23ee3f;hb=0787198669dd18050155c7cddd562d7da4537480;hp=6f2abbb986951849a6cbfa68c91fcd23bc9f322d;hpb=b71fcc0f6167d3de18c3b479c0299ab4155a286d;p=catagits%2FCatalyst-Runtime.git diff --git a/t/optional_lighttpd-fastcgi.t b/t/optional_lighttpd-fastcgi.t index 6f2abbb..43a474e 100644 --- a/t/optional_lighttpd-fastcgi.t +++ b/t/optional_lighttpd-fastcgi.t @@ -10,6 +10,9 @@ use Test::More; plan skip_all => 'set TEST_LIGHTTPD to enable this test' unless $ENV{TEST_LIGHTTPD}; + +eval "use FCGI"; +plan skip_all => 'FCGI required' if $@; eval "use Catalyst::Devel 1.0"; plan skip_all => 'Catalyst::Devel required' if $@; @@ -96,7 +99,7 @@ while ( check_port( 'localhost', $port ) != 1 ) { # run the testsuite against the server $ENV{CATALYST_SERVER} = "http://localhost:$port"; -my @tests = glob('t/live_*'); +my @tests = (shift) || glob('t/live_*'); eval { runtests(@tests); };