X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Foptional_apache-cgi-rewrite.pl;h=abf467efe5ca6f54f1e7aec85c8f53766d3cba00;hp=7a6cbf15b666ff5d1ee514c79f914964501090fb;hb=efc1a69b1e03a40bc721aa745846d45f855b9511;hpb=130ebb114034ef8895f0e0f62caa47c0d2b62d16 diff --git a/t/optional_apache-cgi-rewrite.pl b/t/optional_apache-cgi-rewrite.pl index 7a6cbf1..abf467e 100755 --- a/t/optional_apache-cgi-rewrite.pl +++ b/t/optional_apache-cgi-rewrite.pl @@ -1,5 +1,3 @@ -#!perl - # Run all tests against CGI mode under Apache # # Note, to get this to run properly, you may need to give it the path to your @@ -33,6 +31,12 @@ rmtree 't/tmp/TestApp/t'; $ENV{CATALYST_SERVER} = 'http://localhost:8529/rewrite'; +if ( !-e 't/optional_apache-cgi-rewrite.pl' ) { + die "ERROR: Please run test from the Catalyst-Runtime directory\n"; +} + +push @ARGV, glob( 't/aggregate/live_*' ); + Apache::TestRun->new->run(@ARGV); # clean up if the server has shut down