X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Foptional_apache-cgi-rewrite.pl;fp=t%2Foptional_apache-cgi-rewrite.pl;h=ebfe69c91e550cfc011a21d9d6fa4a0102d83e0e;hp=abf467efe5ca6f54f1e7aec85c8f53766d3cba00;hb=964bf130533c001789a80ef193f03d5c5f3817eb;hpb=59b3e4d0df63749ee601113ce44be5b4340be2a8 diff --git a/t/optional_apache-cgi-rewrite.pl b/t/optional_apache-cgi-rewrite.pl index abf467e..ebfe69c 100644 --- a/t/optional_apache-cgi-rewrite.pl +++ b/t/optional_apache-cgi-rewrite.pl @@ -16,18 +16,10 @@ use File::Copy::Recursive; use FindBin; use IO::Socket; -# clean up -rmtree "$FindBin::Bin/../t/tmp" if -d "$FindBin::Bin/../t/tmp"; - -# create a TestApp and copy the test libs into it -mkdir "$FindBin::Bin/../t/tmp"; -chdir "$FindBin::Bin/../t/tmp"; -system "$FindBin::Bin/../script/catalyst.pl TestApp"; -chdir "$FindBin::Bin/.."; -File::Copy::Recursive::dircopy( 't/lib', 't/tmp/TestApp/lib' ); - -# remove TestApp's tests so Apache::Test doesn't try to run them -rmtree 't/tmp/TestApp/t'; +use lib 't/lib'; +use MakeTestApp; + +make_test_app; $ENV{CATALYST_SERVER} = 'http://localhost:8529/rewrite';