Fixed http server test scripts to run catalyst.pl without Cat installed
Andy Grundman [Thu, 20 Oct 2005 15:02:15 +0000 (15:02 +0000)]
t/optional/http-server-restart.t
t/optional/http-server.t

index de618ae..f9d4a9e 100644 (file)
@@ -24,7 +24,7 @@ rmtree "$FindBin::Bin/../../t/var" if -d "$FindBin::Bin/../../t/var";
 # create a TestApp and copy the test libs into it\r
 mkdir "$FindBin::Bin/../../t/var";\r
 chdir "$FindBin::Bin/../../t/var";\r
-system "perl $FindBin::Bin/../../script/catalyst.pl TestApp";\r
+system "perl -I$FindBin::Bin/../../lib $FindBin::Bin/../../script/catalyst.pl TestApp";\r
 chdir "$FindBin::Bin/../..";\r
 File::Copy::Recursive::dircopy( 't/live/lib', 't/var/TestApp/lib' );\r
 \r
index 7296973..202954d 100644 (file)
@@ -19,7 +19,7 @@ rmtree "$FindBin::Bin/../../t/var" if -d "$FindBin::Bin/../../t/var";
 # create a TestApp and copy the test libs into it
 mkdir "$FindBin::Bin/../../t/var";
 chdir "$FindBin::Bin/../../t/var";
-system "perl $FindBin::Bin/../../script/catalyst.pl TestApp";
+system "perl -I$FindBin::Bin/../../lib $FindBin::Bin/../../script/catalyst.pl TestApp";
 chdir "$FindBin::Bin/../..";
 File::Copy::Recursive::dircopy( 't/live/lib', 't/var/TestApp/lib' );
 
@@ -34,6 +34,8 @@ print "Waiting for server to start...\n";
 while ( check_port( 'localhost', $port ) != 1 ) {
     sleep 1;
 }
+
+sleep 60;
     
 # run the testsuite against the HTTP server
 $ENV{CATALYST_SERVER} = "http://localhost:$port";