X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=script%2Fndweb_test.pl;h=9b7ec40c67f46cd70c8128ce43486836998b4688;hb=e1450c026acb6bff904eb5a3b893dc5f270ba0a1;hp=adfe2f3d7a9c21f7a6ed51aff03e3e1c2f1caf86;hpb=b49322dc8ac6ddc3d988caa5cd92b397fb8d0c31;p=ndwebbie.git 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