use strict;
use warnings;
+use Test::More;
+BEGIN {
+ plan skip_all => 'set TEST_HTTP to enable this test' unless $ENV{TEST_HTTP};
+}
+
use File::Path;
use FindBin;
use LWP::Simple;
use IO::Socket;
use IPC::Open3;
-use Test::More;
use Time::HiRes qw/sleep/;
eval "use Catalyst::Devel 1.0;";
-plan skip_all => 'set TEST_HTTP to enable this test' unless $ENV{TEST_HTTP};
plan skip_all => 'Catalyst::Devel required' if $@;
plan skip_all => 'Catalyst::Devel >= 1.04 required' if $Catalyst::Devel::VERSION <= 1.03;
eval "use File::Copy::Recursive";
use strict;
use warnings;
+use Test::More;
+BEGIN {
+ plan skip_all => 'set TEST_HTTP to enable this test' unless $ENV{TEST_HTTP};
+}
+
use File::Path;
use FindBin;
use IPC::Open3;
use IO::Socket;
-use Test::More;
-plan skip_all => 'set TEST_HTTP to enable this test' unless $ENV{TEST_HTTP};
eval "use Catalyst::Devel 1.0";
plan skip_all => 'Catalyst::Devel required' if $@;
eval "use File::Copy::Recursive";
use strict;
use warnings;
+use Test::More;
+BEGIN {
+ plan skip_all => 'set TEST_LIGHTTPD to enable this test'
+ unless $ENV{TEST_LIGHTTPD};
+}
+
use File::Path;
use FindBin;
use IO::Socket;
-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 $@;
use strict;
use warnings;
+use Test::More;
+BEGIN {
+ plan skip_all => 'set TEST_LIGHTTPD to enable this test'
+ unless $ENV{TEST_LIGHTTPD};
+}
+
use File::Path;
use FindBin;
use IO::Socket;
-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 $@;
use strict;
use warnings;
+use Test::More;
+BEGIN {
+ plan skip_all => 'set TEST_MEMLEAK to enable this test'
+ unless $ENV{TEST_MEMLEAK};
+}
+
use FindBin;
use lib "$FindBin::Bin/lib";
-
-use Test::More;
use Catalyst::Test 'TestApp';
-plan skip_all => 'set TEST_MEMLEAK to enable this test'
- unless $ENV{TEST_MEMLEAK};
-
eval "use Proc::ProcessTable";
plan skip_all => 'Proc::ProcessTable required for this test' if $@;
use strict;
use warnings;
+use Test::More;
+BEGIN {
+ plan skip_all => 'set TEST_STRESS to enable this test'
+ unless $ENV{TEST_STRESS};
+}
+
use FindBin;
use lib "$FindBin::Bin/lib";
-
-use Test::More;
use Catalyst::Test 'TestApp';
our ( $iters, $tests );
BEGIN {
- plan skip_all => 'set TEST_STRESS to enable this test'
- unless $ENV{TEST_STRESS};
-
eval "use YAML";
plan skip_all => 'YAML is required for this test' if $@;
use strict;
use warnings;
+use Test::More;
+BEGIN {
+ plan skip_all => 'set TEST_THREADS to enable this test'
+ unless $ENV{TEST_THREADS};
+}
+
use FindBin;
use lib "$FindBin::Bin/lib";
-
-use Test::More;
use Catalyst::Test 'TestApp';
use Catalyst::Request;
use Config;
use HTTP::Response;
-plan skip_all => 'set TEST_THREADS to enable this test'
- unless $ENV{TEST_THREADS};
-
if ( $Config{useithreads} && !$ENV{CATALYST_SERVER} ) {
require threads;
plan tests => 3;