X-Git-Url: https://ruin.nu/git/?p=ndwebbie.git;a=blobdiff_plain;f=script%2Fndweb_test.pl;h=9b7ec40c67f46cd70c8128ce43486836998b4688;hp=adfe2f3d7a9c21f7a6ed51aff03e3e1c2f1caf86;hb=c018a7ccbb1fd8bdec5c8f97b151686ae933870b;hpb=e4bc2f39c57c25dacc316a602e8d0280b4fbcce7 diff --git a/script/ndweb_test.pl b/script/ndweb_test.pl index adfe2f3..9b7ec40 100755 --- a/script/ndweb_test.pl +++ b/script/ndweb_test.pl @@ -1,20 +1,7 @@ #!/usr/bin/env perl -use strict; -use warnings; -use Getopt::Long; -use Pod::Usage; -use FindBin; -use lib "$FindBin::Bin/../lib"; -use Catalyst::Test 'NDWeb'; - -my $help = 0; - -GetOptions( 'help|?' => \$help ); - -pod2usage(1) if ( $help || !$ARGV[0] ); - -print request($ARGV[0])->content . "\n"; +use Catalyst::ScriptRunner; +Catalyst::ScriptRunner->run('NDWeb', 'Test'); 1; @@ -27,7 +14,7 @@ ndweb_test.pl - Catalyst Test ndweb_test.pl [options] uri Options: - -help display this help and exits + --help display this help and exits Examples: ndweb_test.pl http://localhost/some_action