=head1 SYNOPSIS
-See L<Catalyst>.
+ myapp_cgi.pl [options]
+
+ Options:
+ -h --help display this help and exits
=head1 DESCRIPTION
-d --debug force debug mode
-f --fork handle each request in a new process
(defaults to false)
- -h --help display this help and exits
- --host host (defaults to all)
+ --help display this help and exits
+ -h --host host (defaults to all)
-p --port port (defaults to 3000)
-k --keepalive enable keep-alive connections
-r --restart restart when files get modified
Catalyst::Test->import($self->application_name);
print request($ARGV[0])->content . "\n";
-
}
=head1 SYNOPSIS
-See L<Catalyst>.
+ myapp_test.pl [options] /path
+
+ Options:
+ -h --help display this help and exits
=head1 DESCRIPTION
-FIXME
+Script to perform a test hit against your application and display the output.
=head1 AUTHORS
# spawn the standalone HTTP server
my $port = 30000 + int rand(1 + 10000);
my @cmd = ($^X, "-I$FindBin::Bin/../../lib",
- "$FindBin::Bin/../../t/tmp/TestApp/script/testapp_server.pl", '-port', $port );
+ "$FindBin::Bin/../../t/tmp/TestApp/script/testapp_server.pl", '--port', $port );
my $pid = open3( undef, my $server, undef, @cmd)
or die "Unable to spawn standalone HTTP server: $!";