Catalyst-Controller-WrapCGI

 view release on metacpan or  search on metacpan

t/cgibin.t  view on Meta::CPAN


ok request '/my-bin/sigs.pl';

is_deeply \%SIG, \%orig_sig, '%SIG is preserved';

SKIP: {
    skip "Can't run shell scripts on non-*nix", 1
        if $^O eq 'MSWin32' || $^O eq 'VMS';

# for some reason the +x is not preserved in the dist
    system "chmod +x $Bin/lib/TestCGIBin/root/cgi-bin/test.sh";
    system "chmod +x $Bin/lib/TestCGIBin/root/cgi-bin/exit_nonzero.sh";

    is(get('/my-bin/test.sh'), "Hello!\n", 'Non-Perl CGI File');

    $response = request GET '/my-bin/exit_nonzero.sh';
    is $response->code, 500, 'Non-Perl CGI with non-zero exit dies';
}

{ $response = get('/my-bin/time.pl');
  sleep 1;
  my $response_2 =  get('/my-bin/time.pl');



( run in 0.227 second using v1.01-cache-2.11-cpan-8d75d55dd25 )