9 use Test::More tests => 4;
11 use Catalyst::Test 'TestCGIBin';
12 use HTTP::Request::Common;
14 # this should be ignored
15 $ENV{MOD_PERL} = "mod_perl/2.0";
17 my $response = request POST '/my-bin/path/test.pl', [
22 is($response->content, 'foo:bar bar:baz', 'POST to Perl CGI File');
24 $response = request POST '/cgihandler/dongs', [
29 is($response->content, 'foo:bar bar:baz',
30 'POST to Perl CGI File through a forward');
32 $response = request POST '/cgihandler/mtfnpy', [
37 is($response->content, 'foo:bar bar:baz',
38 'POST to Perl CGI File through a forward via cgi_action');
41 skip "Can't run shell scripts on non-*nix", 1
42 if $^O eq 'MSWin32' || $^O eq 'VMS';
44 is(get('/my-bin/test.sh'), "Hello!\n", 'Non-Perl CGI File');