~ubuntu-branches/ubuntu/hardy/lighttpd/hardy

« back to all changes in this revision

Viewing changes to tests/mod-fastcgi.t

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2007-09-05 09:30:15 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070905093015-pm98jekbu9ylcd3w
Tags: 1.4.17-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Update maintainer field in debian/control.
  - Build against libgamin-dev rather than libfam-dev (fixes a warning
    during startup)
  - Make sure that upgrades succeed, even if we can't restart lighttpd.
  - Clean environment in init.d script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
}
8
8
 
9
9
use strict;
10
 
use Test::More tests => 47;
 
10
use Test::More tests => 46;
11
11
use LightyTest;
12
12
 
13
13
my $tf = LightyTest->new();
15
15
my $t;
16
16
 
17
17
SKIP: {
18
 
        skip "no PHP running on port 1026", 30 unless $tf->listening_on(1026);
 
18
        skip "no PHP running on port 1026", 29 unless $tf->listening_on(1026);
19
19
 
20
20
        ok($tf->start_proc == 0, "Starting lighttpd") or die();
21
21
 
60
60
        ok($tf->handle_http($t) == 0, '$_SERVER["PHP_SELF"]');
61
61
 
62
62
        $t->{REQUEST}  = ( <<EOF
63
 
GET /get-server-env.php/foo?env=PHP_SELF HTTP/1.0
 
63
GET /get-server-env.php/foo?env=SCRIPT_NAME HTTP/1.0
64
64
Host: www.example.org
65
65
EOF
66
66
 );
223
223
}
224
224
 
225
225
SKIP: {
226
 
        skip "no php found", 4 unless -x "/home/jan/Documents/php-5.1.0/sapi/cgi/php"; 
 
226
        skip "no php found", 4 unless -x "/usr/bin/php-cgi"; 
227
227
        $tf->{CONFIGFILE} = 'fastcgi-13.conf';
228
228
        ok($tf->start_proc == 0, "Starting lighttpd with $tf->{CONFIGFILE}") or die();
229
229
        $t->{REQUEST}  = ( <<EOF