Add globbing to Apache CGI tests
Andy Grundman [Mon, 13 Aug 2007 02:22:30 +0000 (02:22 +0000)]
t/optional_apache-cgi-rewrite.pl
t/optional_apache-cgi.pl

index 7a6cbf1..ce4d9c8 100755 (executable)
@@ -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
index 8874f15..160ec7a 100755 (executable)
@@ -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