From: Andy Grundman Date: Mon, 13 Aug 2007 02:22:30 +0000 (+0000) Subject: Add globbing to Apache CGI tests X-Git-Tag: 5.7099_04~164 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=498a0db3d2c6de86ea2185be6620625785e14196 Add globbing to Apache CGI tests --- diff --git a/t/optional_apache-cgi-rewrite.pl b/t/optional_apache-cgi-rewrite.pl index 7a6cbf1..ce4d9c8 100755 --- a/t/optional_apache-cgi-rewrite.pl +++ b/t/optional_apache-cgi-rewrite.pl @@ -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/live_*' ); + Apache::TestRun->new->run(@ARGV); # clean up if the server has shut down diff --git a/t/optional_apache-cgi.pl b/t/optional_apache-cgi.pl index 8874f15..160ec7a 100755 --- a/t/optional_apache-cgi.pl +++ b/t/optional_apache-cgi.pl @@ -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/live_*' ); + Apache::TestRun->new->run(@ARGV); # clean up if the server has shut down