X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Foptional_apache-cgi-rewrite.pl;h=8ce1d6b85e4c7fb112818f958e35a2c394008785;hb=f91554831ad9972ba44453f69a6b633fd3dfa710;hp=40073303cce9bb96b36b7f14759bb4c9338f80ec;hpb=0bcb98c7b698a94fe472f92509beb55f30010f18;p=catagits%2FCatalyst-Runtime.git diff --git a/t/optional_apache-cgi-rewrite.pl b/t/optional_apache-cgi-rewrite.pl index 4007330..8ce1d6b 100755 --- a/t/optional_apache-cgi-rewrite.pl +++ b/t/optional_apache-cgi-rewrite.pl @@ -5,7 +5,7 @@ # Note, to get this to run properly, you may need to give it the path to your # httpd.conf: # -# perl t/optional/apache-cgi.pl -httpd_conf /etc/apache/httpd.conf +# perl t/optional_apache-cgi.pl -httpd_conf /etc/apache/httpd.conf use strict; use warnings; @@ -33,6 +33,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