X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Foptional_apache-cgi.pl;h=fd2d9a66527bc4379d72376eef652c9c17f4001e;hp=2191a34d7345f415bc3e4bd0fc3eaf6e293750a1;hb=85781ad7ed72409d08127c0c23610ecb2de5663a;hpb=50cc3183118f1056427ab314b84b91fd0d9e1383 diff --git a/t/optional_apache-cgi.pl b/t/optional_apache-cgi.pl index 2191a34..fd2d9a6 100755 --- a/t/optional_apache-cgi.pl +++ b/t/optional_apache-cgi.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/cgi'; +if ( !-e 't/optional_apache-cgi.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