From e3f4756a2b901d1f1a6e8514d3b01dbf30a7c89b Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Sun, 3 Oct 2010 17:10:31 +0000 Subject: - use old script --- script/mga_mirrors_test.pl | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'script/mga_mirrors_test.pl') diff --git a/script/mga_mirrors_test.pl b/script/mga_mirrors_test.pl index 7229b7d..d7e52d8 100755 --- a/script/mga_mirrors_test.pl +++ b/script/mga_mirrors_test.pl @@ -1,7 +1,20 @@ #!/usr/bin/env perl -use Catalyst::ScriptRunner; -Catalyst::ScriptRunner->run('MGA::Mirrors', 'Test'); +use strict; +use warnings; +use Getopt::Long; +use Pod::Usage; +use FindBin; +use lib "$FindBin::Bin/../lib"; +use Catalyst::Test 'MGA::Mirrors'; + +my $help = 0; + +GetOptions( 'help|?' => \$help ); + +pod2usage(1) if ( $help || !$ARGV[0] ); + +print request($ARGV[0])->content . "\n"; 1; @@ -14,7 +27,7 @@ mga_mirrors_test.pl - Catalyst Test mga_mirrors_test.pl [options] uri Options: - --help display this help and exits + -help display this help and exits Examples: mga_mirrors_test.pl http://localhost/some_action -- cgit v1.2.1