[Catalyst-commits] r6653 - trunk/Catalyst-Runtime/t

andyg at dev.catalyst.perl.org andyg at dev.catalyst.perl.org
Mon Aug 13 03:22:30 GMT 2007


Author: andyg
Date: 2007-08-13 03:22:30 +0100 (Mon, 13 Aug 2007)
New Revision: 6653

Modified:
   trunk/Catalyst-Runtime/t/optional_apache-cgi-rewrite.pl
   trunk/Catalyst-Runtime/t/optional_apache-cgi.pl
Log:
Add globbing to Apache CGI tests

Modified: trunk/Catalyst-Runtime/t/optional_apache-cgi-rewrite.pl
===================================================================
--- trunk/Catalyst-Runtime/t/optional_apache-cgi-rewrite.pl	2007-08-13 02:20:12 UTC (rev 6652)
+++ trunk/Catalyst-Runtime/t/optional_apache-cgi-rewrite.pl	2007-08-13 02:22:30 UTC (rev 6653)
@@ -33,6 +33,12 @@
 
 $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

Modified: trunk/Catalyst-Runtime/t/optional_apache-cgi.pl
===================================================================
--- trunk/Catalyst-Runtime/t/optional_apache-cgi.pl	2007-08-13 02:20:12 UTC (rev 6652)
+++ trunk/Catalyst-Runtime/t/optional_apache-cgi.pl	2007-08-13 02:22:30 UTC (rev 6653)
@@ -33,6 +33,12 @@
 
 $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




More information about the Catalyst-commits mailing list