-#!/usr/bin/env perl
use strict;
use warnings;
use FindBin;
use IO::Socket;
use Test::More;
-use Test::WWW::Mechanize;
eval <<_DEPS_;
- use Catalyst::Runtime 5.7;
- use Catalyst::Devel 1.0;
+ use Test::WWW::Mechanize;
+ use Catalyst::Runtime;
+ use Catalyst::Devel;
use Cache::FastMmap;
use Catalyst::Authentication::User::Hash;
use Catalyst::Plugin::Session::State::Cookie;
use Net::OpenID::Consumer;
use Net::OpenID::Server;
use Test::WWW::Mechanize;
+ use Net::DNS;
+ use IO::Socket::INET;
_DEPS_
-plan skip_all => 'Test application dependencies not satisfied' if $@;
-
-plan tests => 21;
+if ( $@ )
+{
+ plan skip_all => 'Test application dependencies not satisfied';
+}
+elsif ( not $ENV{TEST_HTTP} )
+{
+ plan skip_all => 'Set TEST_HTTP to enable this test';
+}
+else
+{
+ plan tests => 21;
+}
# One port for consumer app, one for provider.
my $consumer_port = 10000 + int rand(1 + 10000);